r41429 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41428‎ | r41429 | r41430 >
Date:16:11, 30 September 2008
Author:dale
Status:old
Tags:
Comment:
skin updates for mw1.14
Modified paths:
  • /branches/MetavidWiki-exp/skins/mvpcf.php (modified) (history)
  • /branches/MetavidWiki-exp/skins/mvpcf/style.css (modified) (history)

Diff [purge]

Index: branches/MetavidWiki-exp/skins/mvpcf/style.css
@@ -22,6 +22,9 @@
2323 color: #474747;
2424 background: white;
2525 font-size:0.8em;
 26+}
 27+.mw-specialpagerestricted {
 28+ font-weight: bold;
2629 }
2730 body#frontPage {background: #eef6ff;}
2831 .bodyContent{
Index: branches/MetavidWiki-exp/skins/mvpcf.php
@@ -175,20 +175,24 @@
176176 break;
177177 case 'sidebars':
178178 ?>
179 -<?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
180 -<div class='portlet' id='p-<?php echo Sanitizer::escapeId($bar) ?>'<?php echo $this->user_skin->tooltip('p-'.$bar) ?>>
181 - <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
182 - <div class='pBody'>
183 - <ul>
184 -<?php foreach($cont as $key => $val) { ?>
185 - <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php
186 - if ( $val['active'] ) { ?> class="active" <?php }
187 - ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $this->user_skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li>
188 -<?php } ?>
189 - </ul>
190 - </div>
191 -</div>
192 -<?php }
 179+<?php
 180+foreach ($this->data['sidebar'] as $bar => $cont) {
 181+ if(count($cont)!=0){ ?>
 182+ <div class='portlet' id='p-<?php echo Sanitizer::escapeId($bar) ?>'<?php echo $this->user_skin->tooltip('p-'.$bar) ?>>
 183+ <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
 184+ <div class='pBody'>
 185+ <ul>
 186+ <?php foreach($cont as $key => $val) { ?>
 187+ <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php
 188+ if ( $val['active'] ) { ?> class="active" <?php }
 189+ ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $this->user_skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li>
 190+ <?php } ?>
 191+ </ul>
 192+ </div>
 193+ </div>
 194+ <?php
 195+ }
 196+}
193197 break;
194198 case 'toolbox':
195199 ?>
@@ -238,9 +242,8 @@
239243 ?>"<?php echo $this->user_skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php
240244 } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?>
241245 <li id="t-ispermalink"<?php echo $this->user_skin->tooltip('t-ispermalink') ?>><?php $this->msg('permalink') ?></li><?php
242 - }
243 -
244 - wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) );
 246+ }
 247+ wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) );
245248 ?>
246249 </ul>
247250 </div>

Status & tagging log