[11917] | 1 | {include file='include/colorbox.inc.tpl'} |
---|
[23259] | 2 | |
---|
[11917] | 3 | {footer_script}{literal} |
---|
| 4 | jQuery(document).ready(function() { |
---|
[23259] | 5 | $("a.preview-box").colorbox(); |
---|
| 6 | |
---|
| 7 | jQuery('.showInfo').tipTip({ |
---|
| 8 | 'delay' : 0, |
---|
| 9 | 'fadeIn' : 200, |
---|
| 10 | 'fadeOut' : 200, |
---|
| 11 | 'maxWidth':'300px', |
---|
| 12 | 'keepAlive':true, |
---|
| 13 | 'activation':'click' |
---|
| 14 | }); |
---|
| 15 | }); |
---|
[11917] | 16 | {/literal}{/footer_script} |
---|
| 17 | |
---|
[5153] | 18 | <div class="titrePage"> |
---|
| 19 | <h2>{'Installed Themes'|@translate}</h2> |
---|
| 20 | </div> |
---|
| 21 | |
---|
| 22 | <div id="themesContent"> |
---|
| 23 | |
---|
[23259] | 24 | {assign var='field_name' value='null'} {* <!-- 'counter' for fieldset management --> *} |
---|
| 25 | {foreach from=$tpl_themes item=theme} |
---|
| 26 | |
---|
| 27 | {if $field_name != $theme.STATE} |
---|
| 28 | {if $field_name != 'null'} |
---|
| 29 | </div> |
---|
| 30 | </fieldset> |
---|
| 31 | {/if} |
---|
| 32 | |
---|
| 33 | <fieldset> |
---|
| 34 | <legend> |
---|
| 35 | {if $theme.STATE == 'active'} |
---|
| 36 | {'Active Themes'|@translate} |
---|
| 37 | {else} |
---|
| 38 | {'Inactive Themes'|@translate} |
---|
| 39 | {/if} |
---|
| 40 | </legend> |
---|
| 41 | <div class="themeBoxes"> |
---|
| 42 | {assign var='field_name' value=$theme.STATE} |
---|
[5382] | 43 | {/if} |
---|
[5153] | 44 | |
---|
[23259] | 45 | {if not empty($theme.AUTHOR)} |
---|
| 46 | {if not empty($theme.AUTHOR_URL)} |
---|
| 47 | {assign var='author' value="<a href='%s'>%s</a>"|@sprintf:$theme.AUTHOR_URL:$theme.AUTHOR} |
---|
| 48 | {else} |
---|
| 49 | {assign var='author' value='<u>'|cat:$theme.AUTHOR|cat:'</u>'} |
---|
| 50 | {/if} |
---|
| 51 | {/if} |
---|
| 52 | {if not empty($theme.VISIT_URL)} |
---|
| 53 | {assign var='version' value="<a class='externalLink' href='"|cat:$theme.VISIT_URL|cat:"'>"|cat:$theme.VERSION|cat:"</a>"} |
---|
| 54 | {else} |
---|
| 55 | {assign var='version' value=$theme.VERSION} |
---|
| 56 | {/if} |
---|
| 57 | |
---|
| 58 | <div class="themeBox{if $theme.IS_DEFAULT} themeDefault{/if}"> |
---|
| 59 | <div class="themeName"> |
---|
| 60 | {$theme.NAME} {if $theme.IS_DEFAULT}<em>({'default'|@translate})</em>{/if} {if $theme.IS_MOBILE}<em>({'Mobile'|@translate})</em>{/if} |
---|
[23426] | 61 | <a class="icon-info-circled-1 showInfo" title="{if !empty($author)}{'By %s'|@translate|@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$theme.DESC|@escape:'html'}"></a> |
---|
[23259] | 62 | </div> |
---|
| 63 | <div class="themeShot"><a href="{$theme.SCREENSHOT}" class="preview-box" title="{$theme.NAME}"><img src="{$theme.SCREENSHOT}" alt=""></a></div> |
---|
[5153] | 64 | <div class="themeActions"> |
---|
[5446] | 65 | <div> |
---|
[23259] | 66 | {if $theme.STATE == 'active'} |
---|
| 67 | {if $theme.DEACTIVABLE} |
---|
| 68 | <a href="{$deactivate_baseurl}{$theme.ID}" class="tiptip" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a> |
---|
[5259] | 69 | {else} |
---|
[23259] | 70 | <span title="{$theme.DEACTIVATE_TOOLTIP}" class="tiptip">{'Deactivate'|@translate}</span> |
---|
[5259] | 71 | {/if} |
---|
| 72 | |
---|
[23259] | 73 | {if not $theme.IS_DEFAULT} |
---|
| 74 | | <a href="{$set_default_baseurl}{$theme.ID}" class="tiptip" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a> |
---|
| 75 | {/if} |
---|
| 76 | {if $theme.ADMIN_URI} |
---|
| 77 | <br><a href="{$theme.ADMIN_URI}" class="tiptip" title="{'Configuration'|@translate}">{'Configuration'|@translate}</a> |
---|
| 78 | {/if} |
---|
| 79 | {else} |
---|
| 80 | {if $theme.ACTIVABLE} |
---|
| 81 | <a href="{$activate_baseurl}{$theme.ID}" title="{'Make this theme available to users'|@translate}" class="tiptip">{'Activate'|@translate}</a> |
---|
| 82 | {else} |
---|
| 83 | <span title="{$theme.ACTIVATE_TOOLTIP}" class="tiptip">{'Activate'|@translate}</span> |
---|
| 84 | {/if} |
---|
[5258] | 85 | | |
---|
[23259] | 86 | {if $theme.DELETABLE} |
---|
| 87 | <a href="{$delete_baseurl}{$theme.ID}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a> |
---|
[5258] | 88 | {else} |
---|
[23259] | 89 | <span title="{$theme.DELETE_TOOLTIP}" class="tiptip">{'Delete'|@translate}</span> |
---|
[5258] | 90 | {/if} |
---|
[23259] | 91 | {/if} |
---|
[5446] | 92 | </div> |
---|
[23259] | 93 | </div> <!-- themeActions --> |
---|
[5153] | 94 | </div> |
---|
[23259] | 95 | |
---|
[5153] | 96 | {/foreach} |
---|
| 97 | </div> <!-- themeBoxes --> |
---|
[5258] | 98 | </fieldset> |
---|
[5153] | 99 | |
---|
[5931] | 100 | </div> <!-- themesContent --> |
---|