diff --git a/Refreshed.skin.php b/Refreshed.skin.php
index 7b831ce..a278570 100644
--- a/Refreshed.skin.php
+++ b/Refreshed.skin.php
@@ -1,522 +1,507 @@
addMeta( 'viewport', 'width=device-width' );
$min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '.src' : '.min';
- // Add CSS @media support for older browsers (such as Internet Explorer
- // 8) that do not support it natively
- // @see https:// github.com/Brickimedia/brickimedia/issues/224
- // @todo FIXME: add Respond into the resources directory
- // (skins/Refreshed/refreshed) and load it from there instead of from GitHub
- // Remember to use the global variable $wgLocalStylePath, just like how
- // Vector does!
- $out->addHeadItem( 'css3mediaquerypolyfill',
- ''
- );
// add jQuery Mobile touch events
$out->addHeadItem( 'jquerymobiletouchevents',
Html::element( 'script', array(
'src' => htmlspecialchars( $wgLocalStylePath ) . "/Refreshed/refreshed/jquery.mobile.custom{$min}.js",
'type' => 'text/javascript'
) )
);
// prevent iOS from zooming out when the sidebar is opened
$out->addHeadItem( 'viewportforios',
Html::element( 'meta', array(
'name' => 'viewport',
'content' => 'width=device-width, initial-scale=1.0'
) )
);
// Add JavaScript via ResourceLoader
$out->addModules( 'skins.refreshed.js' );
}
function setupSkinUserCss( OutputPage $out ) {
global $wgStylePath;
parent::setupSkinUserCss( $out );
// Add CSS via ResourceLoader
$out->addModuleStyles( array(
'mediawiki.skinning.interface',
'mediawiki.skinning.content.externallinks',
'skins.refreshed'
) );
// Internet Explorer fixes
- $out->addStyle( $wgStylePath . '/Refreshed/refreshed/ie8.css', 'screen', 'IE 8' );
$out->addStyle( $wgStylePath . '/Refreshed/refreshed/iefontfix.css', 'screen', 'IE' );
$out->addStyle( $wgStylePath . '/Refreshed/refreshed/wikifont/WikiFontLoader.css', 'screen' ); /* IE 10+ */
}
}
class RefreshedTemplate extends BaseTemplate {
public function execute() {
global $wgStylePath, $wgRefreshedHeader, $wgMemc;
$skin = $this->getSkin();
$user = $skin->getUser();
// Title processing
$titleBase = $skin->getTitle();
$title = $titleBase->getSubjectPage();
$titleNamespace = $titleBase->getNamespace();
$refreshedImagePath = "$wgStylePath/Refreshed/refreshed/images";
$key = wfMemcKey( 'refreshed', 'header' );
$headerNav = $wgMemc->get( $key );
if ( !$headerNav ) {
$headerNav = array();
$skin->addToSidebar( $headerNav, 'refreshed-navigation' );
$wgMemc->set( $key, $headerNav , 60 * 60 * 24 ); // 24 hours
}
// Output the tag and whatnot
$this->html( 'headelement' );
?>
data['sitenotice'] ) {
?>
html( 'sitenotice' ) ?>
html( 'newtalk' ) ?>
msg( 'tagline' ) ?>
data['subtitle'] || $this->data['undelete'] ) {
?>
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>html( 'undelete' ) ?>
getIndicators();
}
?>