[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/skins/Modern/ -> Modern.php (source)

   1  <?php
   2  /**
   3   * Modern skin
   4   *
   5   * @file
   6   * @ingroup Skins
   7   *
   8   * This program is free software; you can redistribute it and/or modify
   9   * it under the terms of the GNU General Public License as published by
  10   * the Free Software Foundation; either version 2 of the License, or
  11   * (at your option) any later version.
  12   *
  13   * This program is distributed in the hope that it will be useful,
  14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16   * GNU General Public License for more details.
  17   *
  18   * You should have received a copy of the GNU General Public License along
  19   * with this program; if not, write to the Free Software Foundation, Inc.,
  20   * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21   * http://www.gnu.org/copyleft/gpl.html
  22   */
  23  
  24  $wgExtensionCredits['skin'][] = array(
  25      'path' => __FILE__,
  26      'name' => 'Modern',
  27      'namemsg' => 'skinname-modern',
  28      'descriptionmsg' => 'modern-desc',
  29      'url' => 'https://www.mediawiki.org/wiki/Skin:Modern',
  30      'author' => array( 'River Tarnell', '...' ),
  31      'license-name' => 'GPLv2+',
  32  );
  33  
  34  // Register files
  35  $wgAutoloadClasses['SkinModern'] = __DIR__ . '/SkinModern.php';
  36  $wgAutoloadClasses['ModernTemplate'] = __DIR__ . '/SkinModern.php';
  37  $wgMessagesDirs['Modern'] = __DIR__ . '/i18n';
  38  
  39  // Register skin
  40  $wgValidSkinNames['modern'] = 'Modern';
  41  
  42  // Register modules
  43  $wgResourceModules['skins.modern'] = array(
  44      'styles' => array(
  45          'resources/main.css' => array( 'media' => 'screen' ),
  46          'resources/print.css' => array( 'media' => 'print' ),
  47      ),
  48      'remoteBasePath' => $GLOBALS['wgStylePath'] . '/Modern',
  49      'localBasePath' => __DIR__,
  50  );


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1