aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/themes_installed.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-17 00:48:38 +0000
committerplegall <plg@piwigo.org>2010-03-17 00:48:38 +0000
commitf82430dd3b92a2e37a58108fa81cd0bc6255fb00 (patch)
treedb0e7d249e591f0187ade853d8cf517a011f3fe1 /admin/themes/default/template/themes_installed.tpl
parent54148c8d6039695456cec9cdf3e912810e8105db (diff)
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". git-svn-id: http://piwigo.org/svn/trunk@5153 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/themes_installed.tpl')
-rw-r--r--admin/themes/default/template/themes_installed.tpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/admin/themes/default/template/themes_installed.tpl b/admin/themes/default/template/themes_installed.tpl
new file mode 100644
index 000000000..8c0fca6fa
--- /dev/null
+++ b/admin/themes/default/template/themes_installed.tpl
@@ -0,0 +1,42 @@
+<div class="titrePage">
+ <h2>{'Installed Themes'|@translate}</h2>
+</div>
+
+<div id="themesContent">
+
+<h3>Active Themes</h3>
+{if isset($active_themes)}
+<div class="themeBoxes">
+{foreach from=$active_themes item=theme}
+ <div class="themeBox{if $theme.is_default} themeDefault{/if}">
+ <div class="themeName">{$theme.name}{if $theme.is_default} <em>(default)</em>{/if}</div>
+ <div class="themeShot"><img src="{$theme.screenshot}"></div>
+ <div class="themeActions">
+ <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
+{if not $theme.is_default}
+ | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
+{/if}
+ </div> <!-- themeActions -->
+ </div>
+{/foreach}
+</div> <!-- themeBoxes -->
+{/if}
+
+{if isset($inactive_themes)}
+<h3>Inactive Themes</h3>
+<div class="themeBoxes">
+{foreach from=$inactive_themes item=theme}
+ <div class="themeBox">
+ <div class="themeName">{$theme.name}</div>
+ <div class="themeShot"><img src="{$theme.screenshot}"></div>
+ <div class="themeActions">
+ <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
+ | <a href="{$delete_baseurl}{$theme.id}" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
+ </div>
+
+ </div>
+{/foreach}
+</div> <!-- themeBoxes -->
+{/if}
+
+</div> <!-- themesContent --> \ No newline at end of file