aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/themes_new.tpl
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2011-08-06 13:25:34 +0000
committerflop25 <flop25@piwigo.org>2011-08-06 13:25:34 +0000
commit79f9cdf5f426b25ea120b7ace7dccf14bf1e1672 (patch)
tree8f297b6d418b977921bec60b19e81ae947601776 /admin/themes/default/template/themes_new.tpl
parent09532cc630770193243fb1e8ca217671a6fd0352 (diff)
feature:2391
adding colorbox for theme : for new and installed themes git-svn-id: http://piwigo.org/svn/trunk@11917 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/themes_new.tpl')
-rw-r--r--admin/themes/default/template/themes_new.tpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/themes/default/template/themes_new.tpl b/admin/themes/default/template/themes_new.tpl
index ff7e4c514..d897deabb 100644
--- a/admin/themes/default/template/themes_new.tpl
+++ b/admin/themes/default/template/themes_new.tpl
@@ -1,3 +1,9 @@
+{include file='include/colorbox.inc.tpl'}
+{footer_script}{literal}
+jQuery(document).ready(function() {
+ $("a.preview-box").colorbox();
+});
+{/literal}{/footer_script}
<div class="titrePage">
<h2>{'Add New Theme'|@translate}</h2>
</div>
@@ -7,7 +13,7 @@
{foreach from=$new_themes item=theme name=themes_loop}
<div class="themeBox">
<div class="themeName">{$theme.name}</div>
- <div class="themeShot"><img src="{$theme.screenshot}" onerror="this.src='{$default_screenshot}'"></div>
+ <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.thumbnail}" onerror="this.src='{$default_screenshot}'"></a></div>
<div class="themeActions"><a href="{$theme.install_url}">{'Install'|@translate}</a></div>
</div>
{/foreach}