From 2358a5c1e3a2ac8c0220e2384f5f88747fdba929 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 8 Aug 2011 09:18:45 +0000 Subject: improved language tabs --- h-source/Application/Include/myFunctions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Include/myFunctions.php') diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 385923a..c299942 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -278,8 +278,8 @@ function decodeWikiText($string) function createTabs($match) { $label = Lang::getLabel($match[3]); - Tabs::$tabList[] = "
  • ".$label."
  • \n"; - Tabs::$htmlList[] = "
    ".$match[5]."
    \n"; + Tabs::$tabList[] = "
  • ".$label."
  • \n"; + Tabs::$htmlList[] = "
    $label
    \n
    ".$match[5]."
    \n"; return null; } @@ -294,7 +294,8 @@ class Tabs $html = null; if (count(self::$tabList) > 0) { - $html .= "
    \n"; + $html .= "
    \n"; + $html .= "\n"; $html .= "
      \n"; foreach (self::$tabList as $label) { @@ -307,6 +308,8 @@ class Tabs } $html .= "
    \n
    \n"; } + self::$tabList = array(); + self::$htmlList = array(); return $html; } -- cgit v1.2.3