source: trunk/admin/themes/default/template/themes_installed.tpl @ 23426

Last change on this file since 23426 was 23426, checked in by mistic100, 11 years ago

feature:2916
modify .showIcon class to be used with fontello (icon-info-circled-1)

File size: 3.4 KB
Line 
1{include file='include/colorbox.inc.tpl'}
2
3{footer_script}{literal}
4jQuery(document).ready(function() {
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});
16{/literal}{/footer_script}
17
18<div class="titrePage">
19  <h2>{'Installed Themes'|@translate}</h2>
20</div>
21
22<div id="themesContent">
23
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}
43{/if}
44
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}
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>
62    </div>
63    <div class="themeShot"><a href="{$theme.SCREENSHOT}" class="preview-box" title="{$theme.NAME}"><img src="{$theme.SCREENSHOT}" alt=""></a></div>
64    <div class="themeActions">
65      <div>
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>
69  {else}
70      <span title="{$theme.DEACTIVATE_TOOLTIP}" class="tiptip">{'Deactivate'|@translate}</span>
71  {/if}
72
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}
85      |
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>
88  {else}
89      <span title="{$theme.DELETE_TOOLTIP}" class="tiptip">{'Delete'|@translate}</span>
90  {/if}
91{/if}
92      </div>
93    </div> <!-- themeActions -->
94  </div>
95 
96{/foreach}
97</div> <!-- themeBoxes -->
98</fieldset>
99
100</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.