Ver código fonte

moved RecentChanges into a menu under the sitename for the time being

Garrick van Buren 12 anos atrás
pai
commit
914b3304cb
2 arquivos alterados com 7 adições e 13 exclusões
  1. 0 10
      foreground.php
  2. 7 3
      foreground.skin.php

+ 0 - 10
foreground.php

@@ -57,13 +57,3 @@ $wgResourceModules['skins.foreground'] = array(
     'localBasePath'  => &$GLOBALS['wgStyleDirectory']
     'localBasePath'  => &$GLOBALS['wgStyleDirectory']
 );
 );
 
 
-
-function FoundationSidebar() {
-    global $wgUser, $wgParser;
-    $opt = ParserOptions::newFromUser($wgUser);
-    $title = Title::newFromText( 'Sidebar', NS_MEDIAWIKI );
-    $article = new Article($title);
-    $html = $wgParser->parse( $article->fetchContent(), $title, $opt, true, true )->getText();
-    print_r($html);
-}
-

+ 7 - 3
foreground.skin.php

@@ -34,12 +34,16 @@ class foregroundTemplate extends BaseTemplate {
 ?>
 ?>
 <!-- START FOREGROUNDTEMPLATE -->
 <!-- START FOREGROUNDTEMPLATE -->
 		<nav class="top-bar">
 		<nav class="top-bar">
-						<ul class="title-area">
-							<li class="name"><h1><a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>"><?php echo $this->text('sitename'); ?></a></h1></li>
+							<section class="top-bar-section">
+
+							<ul class="title-area">
+							<li class="has-dropdown active"><a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>" class="name"><?php echo $this->text('sitename'); ?></a>
+								<ul class="dropdown"><li><a href="/wiki/Special:RecentChanges">Recent Changes</a></li></ul>
+							</li>
 						   <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
 						   <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
 						</ul>
 						</ul>
 
 
-						<section class="top-bar-section">
+
 		    		<ul class="left">
 		    		<ul class="left">
 		 						<li class="divider"></li>
 		 						<li class="divider"></li>
 									<?php foreach ( $this->getSidebar() as $boxName => $box ) { ?>
 									<?php foreach ( $this->getSidebar() as $boxName => $box ) { ?>