Browse Source

Merge pull request #143 from Hutchy68/feature/navbar-icon-switch

Ah, forgot to pull down the true/false switch to display icon in navbar....
Jamie Thingelstad 11 years ago
parent
commit
28d196568b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Foreground.skin.php

+ 4 - 1
Foreground.skin.php

@@ -20,6 +20,7 @@ class Skinforeground extends SkinTemplate {
 			'showHelpUnderTools' => true,
 			'showHelpUnderTools' => true,
 			'showRecentChangesUnderTools' => true,
 			'showRecentChangesUnderTools' => true,
 			'wikiName' => &$GLOBALS['wgSitename'],
 			'wikiName' => &$GLOBALS['wgSitename'],
+			'navbarIcon' => false,
 			'IeEdgeCode' => 1
 			'IeEdgeCode' => 1
 		);
 		);
 		foreach ($wgForegroundFeaturesDefaults as $fgOption => $fgOptionValue) {
 		foreach ($wgForegroundFeaturesDefaults as $fgOption => $fgOptionValue) {
@@ -73,7 +74,9 @@ class foregroundTemplate extends BaseTemplate {
 				<li class="name">
 				<li class="name">
 					<h1 class="title-name">
 					<h1 class="title-name">
 					<a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>">
 					<a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>">
-					<img alt="<?php echo $this->text('sitename'); ?>" src="<?php echo $this->text('logopath') ?>" style="max-width: 64px;height:auto; max-height:36px; display: inline-block; vertical-align:middle;">
+					<?php if ($wgForegroundFeatures['navbarIcon'] != '0') { ?>
+						<img alt="<?php echo $this->text('sitename'); ?>" src="<?php echo $this->text('logopath') ?>" style="max-width: 64px;height:auto; max-height:36px; display: inline-block; vertical-align:middle;">
+					<?php } ?>					
 					<div class="title-name" style="display: inline-block;"><?php echo $wgForegroundFeatures['wikiName']; ?></div>
 					<div class="title-name" style="display: inline-block;"><?php echo $wgForegroundFeatures['wikiName']; ?></div>
 					</a>
 					</a>
 					</h1>
 					</h1>