diff options
author | rub <rub@piwigo.org> | 2008-02-28 23:41:47 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-02-28 23:41:47 +0000 |
commit | 4621be1005ddab4d3a380ab05a124f99f3e36bea (patch) | |
tree | a97ca3808e62d07687508a635ef1bfe3bd5cee4e /template/yoga | |
parent | 7818a7715b95c1912a71057ee0e050f30865298c (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')
-rw-r--r-- | template/yoga/admin/cat_options.tpl | 2 | ||||
-rw-r--r-- | template/yoga/admin/tabsheet.tpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/template/yoga/admin/cat_options.tpl b/template/yoga/admin/cat_options.tpl index 356e66223..f9087648a 100644 --- a/template/yoga/admin/cat_options.tpl +++ b/template/yoga/admin/cat_options.tpl @@ -4,7 +4,7 @@ <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> </ul> <h2>{'cat_options_title'|@translate} {$TABSHEET_TITLE}</h2> - {include file='admin/tabsheet.tpl'} + {$TABSHEET} </div> <form method="post" action="{$F_ACTION}" id="cat_options"> 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 |