Index: branches/MetavidWiki-exp/skins/mvpcf/style.css |
— | — | @@ -22,6 +22,9 @@ |
23 | 23 | color: #474747;
|
24 | 24 | background: white; |
25 | 25 | font-size:0.8em;
|
| 26 | +} |
| 27 | +.mw-specialpagerestricted { |
| 28 | + font-weight: bold; |
26 | 29 | }
|
27 | 30 | body#frontPage {background: #eef6ff;}
|
28 | 31 | .bodyContent{ |
Index: branches/MetavidWiki-exp/skins/mvpcf.php |
— | — | @@ -175,20 +175,24 @@ |
176 | 176 | break; |
177 | 177 | case 'sidebars': |
178 | 178 | ?> |
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 | +} |
193 | 197 | break; |
194 | 198 | case 'toolbox': |
195 | 199 | ?> |
— | — | @@ -238,9 +242,8 @@ |
239 | 243 | ?>"<?php echo $this->user_skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php |
240 | 244 | } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?> |
241 | 245 | <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 ) ); |
245 | 248 | ?> |
246 | 249 | </ul> |
247 | 250 | </div> |