Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
a07afa53 | 10 | {* enclose all tabs and its content in a block *} |
6a488035 | 11 | <div class="crm-block crm-content-block"> |
17f75d58 | 12 | {if $tabHeader and count($tabHeader)} |
6a488035 TO |
13 | <div id="mainTabContainer"> |
14 | <ul> | |
15 | {foreach from=$tabHeader key=tabName item=tabValue} | |
1724f32f | 16 | <li id="tab_{$tabName}" class="crm-tab-button ui-corner-all{if !$tabValue.valid} disabled{/if}{if isset($tabValue.class)} {$tabValue.class}{/if}" {$tabValue.extra}> |
c49d557e | 17 | {if $tabValue.active} |
d12991dc CW |
18 | <a href="{if !empty($tabValue.template)}#panel_{$tabName}{else}{$tabValue.link}{/if}" title="{$tabValue.title|escape}{if !$tabValue.valid} ({ts}disabled{/ts}){/if}"> |
19 | {if !empty($tabValue.icon)}<i class="{$tabValue.icon}"></i>{/if} | |
20 | <span>{$tabValue.title}</span> | |
21 | {if isset($tabValue.count)}<em>{$tabValue.count}</em>{/if} | |
22 | </a> | |
6a488035 TO |
23 | {else} |
24 | <span {if !$tabValue.valid} title="{ts}disabled{/ts}"{/if}>{$tabValue.title}</span> | |
25 | {/if} | |
26 | </li> | |
27 | {/foreach} | |
28 | </ul> | |
c49d557e CW |
29 | {foreach from=$tabHeader key=tabName item=tabValue} |
30 | {if !empty($tabValue.template)} | |
31 | <div id="#panel_{$tabName}"> | |
32 | {include file=$tabValue.template} | |
33 | </div> | |
34 | {/if} | |
35 | {/foreach} | |
6a488035 TO |
36 | </div> |
37 | {/if} | |
38 | <div class="clear"></div> | |
39 | </div> {* crm-content-block ends here *} |