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

Last change on this file since 13172 was 13172, checked in by patdenice, 12 years ago

feature:2577
Add functionnality in core files.

File size: 2.7 KB
RevLine 
[11917]1{include file='include/colorbox.inc.tpl'}
2{footer_script}{literal}
3jQuery(document).ready(function() {
4  $("a.preview-box").colorbox();
5});
6{/literal}{/footer_script}
7
[5153]8<div class="titrePage">
9  <h2>{'Installed Themes'|@translate}</h2>
10</div>
11
12<div id="themesContent">
13
[5258]14<fieldset>
[5284]15<legend>{'Active Themes'|@translate}</legend>
[5153]16{if isset($active_themes)}
17<div class="themeBoxes">
18{foreach from=$active_themes item=theme}
19  <div class="themeBox{if $theme.is_default} themeDefault{/if}">
[13172]20    <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if} {if $theme.mobile} <em>({'mobile'|@translate})</em>{/if}</div>
[11917]21    <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
[5153]22    <div class="themeActions">
[5446]23      <div>
[5382]24{if $theme.deactivable}
[12613]25      <a href="{$deactivate_baseurl}{$theme.id}" class="tiptip" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
[5382]26{else}
27      <span title="{$theme.deactivate_tooltip}">{'Deactivate'|@translate}</span>
28{/if}
29     
[5153]30{if not $theme.is_default}
[12613]31      | <a href="{$set_default_baseurl}{$theme.id}" class="tiptip" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
[5153]32{/if}
[5446]33{if isset($theme.admin_uri)}
[12613]34      <br><a href="{$theme.admin_uri}" class="tiptip" title="{'Configuration'|@translate}">{'Configuration'|@translate}</a>
[5446]35{/if}
36      </div>
[5153]37    </div> <!-- themeActions -->
38  </div>
39{/foreach}
40</div> <!-- themeBoxes -->
41{/if}
[5258]42</fieldset>
[5153]43
44{if isset($inactive_themes)}
[5258]45<fieldset>
[5284]46<legend>{'Inactive Themes'|@translate}</legend>
[5153]47<div class="themeBoxes">
48{foreach from=$inactive_themes item=theme}
49  <div class="themeBox">
[13172]50    <div class="themeName">{$theme.name}{if $theme.mobile} <em>({'mobile'|@translate})</em>{/if}</div>
[11917]51    <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
[5153]52    <div class="themeActions">
[5446]53      <div>
[5259]54  {if $theme.activable}
[5153]55      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
[5259]56  {else}
57      <span title="{$theme.activate_tooltip}">{'Activate'|@translate}</span>
58  {/if}
59
[5258]60      |
[5259]61
[5258]62  {if $theme.deletable}
63      <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
64  {else}
65      <span title="{$theme.delete_tooltip}">{'Delete'|@translate}</span>
66  {/if}
[5446]67      </div>
[5153]68    </div>
69   
70  </div>
71{/foreach}
72</div> <!-- themeBoxes -->
[5258]73</fieldset>
[5153]74{/if}
75
[5931]76</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.