aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/tabsheet.tpl
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-02-28 23:41:47 +0000
committerrub <rub@piwigo.org>2008-02-28 23:41:47 +0000
commit4621be1005ddab4d3a380ab05a124f99f3e36bea (patch)
treea97ca3808e62d07687508a635ef1bfe3bd5cee4e /template/yoga/admin/tabsheet.tpl
parent7818a7715b95c1912a71057ee0e050f30865298c (diff)
0000809: Use more php classes implementation
Use class for tabsheet like grum class Change way for tabsheet git-svn-id: http://piwigo.org/svn/trunk@2226 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/admin/tabsheet.tpl')
-rw-r--r--template/yoga/admin/tabsheet.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/yoga/admin/tabsheet.tpl b/template/yoga/admin/tabsheet.tpl
index 930771916..a89adfd8d 100644
--- a/template/yoga/admin/tabsheet.tpl
+++ b/template/yoga/admin/tabsheet.tpl
@@ -1,8 +1,8 @@
{* $Id$ *}
{if isset($tabsheet) and count($tabsheet)}
<ul class="tabsheet">
-{foreach from=$tabsheet item=tab}
- <li class="{if isset($tab.selected) and $tab.selected}selected_tab{else}normal_tab{/if}"><a href="{$tab.url}">{$tab.caption}</a></li>
+{foreach from=$tabsheet key=name item=sheet}
+ <li class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}"><a href="{$sheet.url}">{$sheet.caption}</a></li>
{/foreach}
</ul>
{/if} \ No newline at end of file