aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-08-08 09:18:45 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-08-08 09:18:45 +0000
commit2358a5c1e3a2ac8c0220e2384f5f88747fdba929 (patch)
tree73be02cf620dbfacc8ace37124f5b391eac4b3c9 /h-source/Application/Include/myFunctions.php
parentca65a9cb9d38b2e691db34a2439a0e1d79e87440 (diff)
improved language tabs
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php9
1 files changed, 6 insertions, 3 deletions
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[] = "<li class='desc_tabs'><a href='#".$label."'>".$label."</a></li>\n";
- Tabs::$htmlList[] = "<div class='description_tabs_page' id='".$label."'>".$match[5]."</div>\n";
+ Tabs::$tabList[] = "<li class='desc_tabs ".$match[3]."'><a href='#".$match[3]."'>".$label."</a></li>\n";
+ Tabs::$htmlList[] = "<div class='separation_line'>$label</div>\n<div class='description_tabs_page' id='".$match[3]."'>".$match[5]."</div>\n";
return null;
}
@@ -294,7 +294,8 @@ class Tabs
$html = null;
if (count(self::$tabList) > 0)
{
- $html .= "<div id='description_tabs'>\n";
+ $html .= "<div class='description_tabs'>\n";
+ $html .= "<noscript><div class='noscript_notice'>".gtext("you need javascript enabled in order to correctly use the language's tabs (see below)")."</div></noscript>\n";
$html .= "<ul class='desc_menu'>\n";
foreach (self::$tabList as $label)
{
@@ -307,6 +308,8 @@ class Tabs
}
$html .= "</div>\n</div>\n";
}
+ self::$tabList = array();
+ self::$htmlList = array();
return $html;
}