diff --git a/CHANGELOG.md b/CHANGELOG.md index 797b683..9e5c687 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## Version 2.0.0 + +* [bug fix] Addressed serveral W3C validation errors with HTML output. +* [bug fix] update JavaScript of Foundation.js to stop deprecation warnings. Now version matches Foundation branch of Foundation 5.5.3 not released. +* [CSS, bug fix] various changes to CSS to fix bugs and address MediaWiki hidden CSS loading +* [enhancement] ability to preload Font Awesome and bypass server setup errors, added as a feature setting +* [enhancement] move all Font Awesome icons to `::before` CSS from JS pivot.js +* [b/c changes] remove feature `'IeEdgeCode'` feature set to send a compatibility header +* [b/c changes] removing support for IE 9 and earlier + ## Version 1.0.5 * [bug fix] Search link was not follow $wgScript path diff --git a/Pivot.skin.php b/Pivot.skin.php index 07bf802..73384ba 100644 --- a/Pivot.skin.php +++ b/Pivot.skin.php @@ -13,6 +13,7 @@ class SkinPivot extends SkinTemplate { public function setupSkinUserCss(OutputPage $out) { parent::setupSkinUserCss($out); + global $wgLocalStylePath; global $wgPivotFeatures; $wgPivotFeaturesDefaults = array( 'showActionsForAnon' => true, @@ -23,7 +24,7 @@ class SkinPivot extends SkinTemplate { 'wikiName' => &$GLOBALS['wgSitename'], 'wikiNameDesktop' => &$GLOBALS['wgSitename'], 'navbarIcon' => false, - 'IeEdgeCode' => 1, + 'preloadFontAwesome' => false, 'showFooterIcons' => false, 'addThisPUBID' => '', 'useAddThisShare' => '', @@ -34,25 +35,13 @@ class SkinPivot extends SkinTemplate { $wgPivotFeatures[$fgOption] = $fgOptionValue; } } - switch ($wgPivotFeatures['IeEdgeCode']) { - case 1: - $out->addHeadItem('ie-meta', ''); - break; - case 2: - if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) - header('X-UA-Compatible: IE=edge'); - break; - } $out->addModuleStyles('skins.pivot.styles'); - } - - public function initPage(OutputPage $out) { - global $wgLocalStylePath; - parent::initPage($out); - - $viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0'; + $viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0'; $out->addMeta('viewport', $viewport_meta); $out->addModuleScripts('skins.pivot.js'); + if ( $wgPivotFeatures['preloadFontAwesome'] ) { + $out->addHeadItem('font', ''); + } } } @@ -222,7 +211,7 @@ class pivotTemplate extends BaseTemplate { data['isarticle'] ) { ?>