# Skin
#
- global $wgAllowUserCss, $wgAllowUserJs;
- $wgOut->addHTML(
- Xml::openElement( 'fieldset' ) .
- Xml::element( 'legend', null, wfMsg( 'skin' ) ) . "\n"
- );
- $wgOut->addWikiMsg( 'skin-header' );
- if ( $wgAllowUserCss )
- $wgOut->addWikiMsg( 'skin-header-css' );
-
- if ( $wgAllowUserJs )
- $wgOut->addWikiMsg( 'skin-header-js' );
-
+ $wgOut->addHTML( "<fieldset>\n<legend>\n" . wfMsg('skin') . "</legend>\n" );
$mptitle = Title::newMainPage();
- $previewtext = wfMsg('skin-preview');
+ $previewtext = wfMsg('skinpreview');
# Only show members of Skin::getSkinNames() rather than
# $skinNames (skins is all skin names from Language.php)
$validSkinNames = Skin::getSkinNames();
if ( in_array( $skinkey, $wgSkipSkins ) ) {
continue;
}
-
- $linkToCSS = $linkToJS = '';
- if ( $wgAllowUserCss ) {
- $pageCSS = Title::makeTitle( NS_USER, $wgUser->getName() . '/' . $skinkey . '.css' );
- $linkToCSS = ' | ' . $sk->link( $pageCSS, wfMsg( 'skin-link-to-css' ) );
- }
- if ( $wgAllowUserJs ) {
- $pageJS = Title::makeTitle( NS_USER, $wgUser->getName() . '/' . $skinkey . '.js' );
- $linkToJS = ' | ' . $sk->link( $pageJS, wfMsg( 'skin-link-to-js' ) );
- }
-
$checked = $skinkey == $this->mSkin ? ' checked="checked"' : '';
$mplink = htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey"));
- $linkLine = " (<a target='_blank' href=\"$mplink\">$previewtext</a>" . $linkToCSS . $linkToJS . ')';
- if( $skinkey == $wgDefaultSkin ) {
+ $previewlink = "<a target='_blank' href=\"$mplink\">$previewtext</a>";
+ if( $skinkey == $wgDefaultSkin )
$sn .= ' (' . wfMsg( 'default' ) . ')';
- }
- $wgOut->addHTML( "<input type='radio' name='wpSkin' id=\"wpSkin$skinkey\" value=\"$skinkey\"$checked /> <label for=\"wpSkin$skinkey\">{$sn}</label>$linkLine<br />\n" );
+ $wgOut->addHTML( "<input type='radio' name='wpSkin' id=\"wpSkin$skinkey\" value=\"$skinkey\"$checked /> <label for=\"wpSkin$skinkey\">{$sn}</label> $previewlink<br />\n" );
}
- $wgOut->addHTML( Xml::closeElement( 'fieldset' ) );
+ $wgOut->addHTML( "</fieldset>\n\n" );
# Math
#
'underline-never' => 'Never',
'underline-default' => 'Browser default',
+'skinpreview' => '(Preview)',
+
# Dates
'sunday' => 'Sunday',
'monday' => 'Monday',
'qbsettings-floatingright' => 'Floating right',
'changepassword' => 'Change password',
'skin' => 'Skin',
-'skin-header' => 'Available skins.',
-'skin-header-css' => '* With the associated cascading style sheets (CSS) pages you can customize each skin.',
-'skin-header-js' => '* With the associated JavaScript (JS) pages you can add own scripts to each skin.',
-'skin-preview' => 'Preview',
-'skin-link-to-css' => 'associated CSS',
-'skin-link-to-js' => 'associated JS',
'math' => 'Math',
'dateformat' => 'Date format',
'datedefault' => 'No preference',