code: function getSites ($data) {
              if ($data['mobileSites'].length === 0 && $data['sites'].length) {
                  $data['mobileSites'] = $data['sites'];
              };
  
              var $sites = (isMobileScreen() ? $data['mobileSites'] : ($data['sites'].length ? $data['sites']: [])).slice(0);
              var $disabled = $data['disabled'];
  
              if (typeof $sites == 'string') { $sites = $sites.split(/\s*,\s*/); }
              if (typeof $disabled == 'string') { $disabled = $disabled.split(/\s*,\s*/); }
  
              if (runningInWeChat()) {
                  $disabled.push('wechat');
              }
              // Remove elements
              $disabled.length && $.each($disabled, function (i, el) {
                  var removeItemIndex = $.inArray(el, $sites);
                  if (removeItemIndex !== -1) {
                      $sites.splice(removeItemIndex, 1);
                  }
              });
  
              return $sites;
          }
docs: Get available site lists.
  
  @param {Array} $data
  
  @return {Array}