From: Krinkle Date: Sat, 17 Sep 2011 18:03:18 +0000 (+0000) Subject: Use Skin->getCategories() instead of Skin->getCategoryLinks() and manually wrapping... X-Git-Tag: 1.31.0-rc.0~27588 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=e3293aa73ec4c2c990cbd709706c1f122470cc8e;p=lhc%2Fweb%2Fwiklou.git Use Skin->getCategories() instead of Skin->getCategoryLinks() and manually wrapping the #catlinks element around it. This to use the centralized output control, no need to duplicate the IDs and class names here. * Also removing the conditional addition of
, which is no longer needed since
is a block level element which downs;t need a line break to start on a new line (this
) hasn't been needed since it's an unordered list (r92054) * Follows-up r92054 and it's CR --- diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index ad0dc6f6ee..3e5bc0f310 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -77,10 +77,9 @@ class CologneBlueTemplate extends LegacyTemplate { $s .= ''; $s .= str_replace( '
', '', $this->otherLanguages() ); - $cat = ''; - if( $cat ) { - $s .= "
$cat\n"; - } + + $s .= $this->getSkin()->getCategories(); + $s .= '
' . $this->pageTitleLinks(); $s .= '
'; diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index d77a930614..21d3578d81 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -54,10 +54,7 @@ class NostalgiaTemplate extends LegacyTemplate { $s .= '
' . $ol; } - $cat = ''; - if( $cat ) { - $s .= '
' . $cat; - } + $s .= $this->getSkin()->getCategories(); $s .= "

\n\n"; $s .= "\n
";