From: Platonides Date: Thu, 10 Feb 2011 20:36:18 +0000 (+0000) Subject: Follow up r81914. Don't build the
  • manually. X-Git-Tag: 1.31.0-rc.0~32057 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=6c29739113cb8c4dfb8cf77a9b6bb6d0112f28ca;p=lhc%2Fweb%2Fwiklou.git Follow up r81914. Don't build the
  • manually. --- diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 2711a1afc6..557abe6ca9 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -203,12 +203,6 @@ class MonoBookTemplate extends BaseTemplate {
      data['content_actions'] as $key => $tab) { - echo ' -
    • '; $linkAttribs = array( 'href' => $tab['href'] ); if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) { @@ -219,8 +213,15 @@ class MonoBookTemplate extends BaseTemplate { } else { $linkAttribs += $skin->tooltipAndAccesskeyAttribs( "ca-$key" ); } - echo Html::element( 'a', $linkAttribs, $tab['text'] ); - echo '
    • '; + $linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] ); + + /* Surround with a
    • */ + $liAttribs = array( 'id' => Sanitizer::escapeId( "ca-$key" ) ); + if( $tab['class'] ) { + $liAttribs['class'] = $tab['class']; + } + echo ' + ' . Html::rawElement( 'li', $liAttribs, $linkHtml ); } ?>