Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -156,6 +156,7 @@ |
157 | 157 | <div class='generated-sidebar portlet' id='p-<?php echo Sanitizer::escapeId($bar) ?>'<?php echo $skin->tooltip('p-'.$bar) ?>> |
158 | 158 | <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5> |
159 | 159 | <div class='pBody'> |
| 160 | +<?php if ( is_array( $cont ) ) { ?> |
160 | 161 | <ul> |
161 | 162 | <?php foreach($cont as $key => $val) { ?> |
162 | 163 | <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php |
— | — | @@ -163,6 +164,11 @@ |
164 | 165 | ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li> |
165 | 166 | <?php } ?> |
166 | 167 | </ul> |
| 168 | +<?php } else { |
| 169 | + # allow raw HTML block to be defined by extensions |
| 170 | + print $cont; |
| 171 | + } |
| 172 | +?> |
167 | 173 | </div> |
168 | 174 | </div> |
169 | 175 | <?php } ?> |
Index: trunk/phase3/skins/Modern.php |
— | — | @@ -154,6 +154,7 @@ |
155 | 155 | <div class='generated-sidebar portlet' id='p-<?php echo Sanitizer::escapeId($bar) ?>'<?php echo $skin->tooltip('p-'.$bar) ?>> |
156 | 156 | <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5> |
157 | 157 | <div class='pBody'> |
| 158 | +<?php if ( is_array( $cont ) ) { ?> |
158 | 159 | <ul> |
159 | 160 | <?php foreach($cont as $key => $val) { ?> |
160 | 161 | <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php |
— | — | @@ -161,6 +162,11 @@ |
162 | 163 | ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li> |
163 | 164 | <?php } ?> |
164 | 165 | </ul> |
| 166 | +<?php } else { |
| 167 | + # allow raw HTML block to be defined by extensions |
| 168 | + print $cont; |
| 169 | + } |
| 170 | +?> |
165 | 171 | </div><!-- pBody --> |
166 | 172 | </div><!-- portlet --> |
167 | 173 | <?php } ?> |