Forráskód Böngészése

forcing Toolbox not to render in the lefthand menu and putting RecentChanges and Help under the Toolbox menu in the righthand menu

Garrick van Buren 12 éve
szülő
commit
d15e398726
3 módosított fájl, 13 hozzáadás és 5 törlés
  1. 6 0
      assets/stylesheets/foreground.css
  2. 1 2
      foreground.php
  3. 6 3
      foreground.skin.php

+ 6 - 0
assets/stylesheets/foreground.css

@@ -277,6 +277,12 @@ select {
   padding: 5px;
 }
 
+input[type="file"],
+select {
+  padding: 5px;
+  border: 1px solid #cccccc;
+}
+
 .inputSpan select.createboxInput,
 .dateInput select.monthInput,
 input.hourInput,

+ 1 - 2
foreground.php

@@ -55,5 +55,4 @@ $wgResourceModules['skins.foreground'] = array(
     ),
     'remoteBasePath' => &$GLOBALS['wgStylePath'],
     'localBasePath'  => &$GLOBALS['wgStyleDirectory']
-);
-
+);

+ 6 - 3
foreground.skin.php

@@ -26,6 +26,7 @@ class Skinforeground extends SkinTemplate {
 
 }
 
+
 class foregroundTemplate extends BaseTemplate {
 	public function execute() {
 		global $wgUser;
@@ -45,14 +46,14 @@ class foregroundTemplate extends BaseTemplate {
 
 		    		<ul class="left">
 		 						<li class="divider"></li>
-									<?php foreach ( $this->getSidebar() as $boxName => $box ) { ?>
+									<?php foreach ( $this->getSidebar() as $boxName => $box ) { if ($box['header'] != "Toolbox") { ?>
 									<li class="has-dropdown active"  id='<?php echo Sanitizer::escapeId( $box['id'] ) ?>'<?php echo Linker::tooltip( $box['id'] ) ?>>
 											<a href="#"><?php echo htmlspecialchars( $box['header'] ); ?></a>
 											<?php if ( is_array( $box['content'] ) ) { ?>
 												<ul class="dropdown">
 													<?php foreach ( $box['content'] as $key => $item ) { echo $this->makeListItem( $key, $item ); } ?>
         								</ul>
-											<?php }  ?>
+											<?php } } ?>
 									</li>
 									<?php } ?>
 		    		</ul>
@@ -75,7 +76,9 @@ class foregroundTemplate extends BaseTemplate {
 
 								<li class="has-dropdown active"><a href="#"><i class="icon-cogs"></i></a>
 									<ul class="dropdown">
-									<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
+										<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
+										<li id="n-recentchanges"><a href="/wiki/Special:RecentChanges">Recent Changes</a></li>
+										<li id="n-help"><a href="/wiki/Help:Contents">Help</a></li>
 									</ul>
 								</li>