From 79f9cdf5f426b25ea120b7ace7dccf14bf1e1672 Mon Sep 17 00:00:00 2001 From: flop25 Date: Sat, 6 Aug 2011 13:25:34 +0000 Subject: 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 --- admin/themes/default/template/themes_installed.tpl | 11 +++++++++-- admin/themes/default/template/themes_new.tpl | 8 +++++++- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'admin/themes/default') diff --git a/admin/themes/default/template/themes_installed.tpl b/admin/themes/default/template/themes_installed.tpl index d2a37d5e9..70b00bcb8 100644 --- a/admin/themes/default/template/themes_installed.tpl +++ b/admin/themes/default/template/themes_installed.tpl @@ -1,3 +1,10 @@ +{include file='include/colorbox.inc.tpl'} +{footer_script}{literal} +jQuery(document).ready(function() { + $("a.preview-box").colorbox(); +}); +{/literal}{/footer_script} +

{'Installed Themes'|@translate}

@@ -11,7 +18,7 @@ {foreach from=$active_themes item=theme}
{$theme.name}{if $theme.is_default} ({'default'|@translate}){/if}
-
+
{if $theme.deactivable} @@ -41,7 +48,7 @@ {foreach from=$inactive_themes item=theme}
{$theme.name}
-
+
{if $theme.activable} 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}

{'Add New Theme'|@translate}

@@ -7,7 +13,7 @@ {foreach from=$new_themes item=theme name=themes_loop}
{$theme.name}
-
+
{/foreach} -- cgit v1.2.3