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

Last change on this file since 5153 was 5153, checked in by plg, 14 years ago

feature 1514: new screen to manage installed themes; activate, deactivate,
delete, set as default.

plugins.class.php was merged back to a state it doesn't manage themes at all.
themes.class.php was created instead, from a duplication of plugins.class.php
and strongly modified then.

feature 1507: the display of available themes is now much more "graphic".

File size: 1.5 KB
Line 
1<div class="titrePage">
2  <h2>{'Installed Themes'|@translate}</h2>
3</div>
4
5<div id="themesContent">
6
7<h3>Active Themes</h3>
8{if isset($active_themes)}
9<div class="themeBoxes">
10{foreach from=$active_themes item=theme}
11  <div class="themeBox{if $theme.is_default} themeDefault{/if}">
12    <div class="themeName">{$theme.name}{if $theme.is_default} <em>(default)</em>{/if}</div>
13    <div class="themeShot"><img src="{$theme.screenshot}"></div>
14    <div class="themeActions">
15      <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
16{if not $theme.is_default}
17      | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
18{/if}
19    </div> <!-- themeActions -->
20  </div>
21{/foreach}
22</div> <!-- themeBoxes -->
23{/if}
24
25{if isset($inactive_themes)}
26<h3>Inactive Themes</h3>
27<div class="themeBoxes">
28{foreach from=$inactive_themes item=theme}
29  <div class="themeBox">
30    <div class="themeName">{$theme.name}</div>
31    <div class="themeShot"><img src="{$theme.screenshot}"></div>
32    <div class="themeActions">
33      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
34      | <a href="{$delete_baseurl}{$theme.id}" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
35    </div>
36   
37  </div>
38{/foreach}
39</div> <!-- themeBoxes -->
40{/if}
41
42</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.