From 7f1d691a7c35e889d0847826cff7fbe8e174a362 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 27 Apr 2011 21:53:35 +0000 Subject: feature:2269 add preview box on batch_manager_unit + add colorbox jquery plugin git-svn-id: http://piwigo.org/svn/trunk@10648 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/batch_manager_unit.tpl | 10 ++++++++-- admin/themes/default/template/include/colorbox.inc.tpl | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 admin/themes/default/template/include/colorbox.inc.tpl (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index e8b50a85c..9a1dde834 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -1,6 +1,6 @@ - {include file='include/autosize.inc.tpl'} {include file='include/datepicker.inc.tpl'} +{include file='include/colorbox.inc.tpl'} {combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} {footer_script require='jquery.fcbkcomplete'} @@ -25,6 +25,8 @@ jQuery(document).ready(function() { maxitems: 100, newel: true }); + + $("a.preview-box").colorbox(); }); {/literal}{/footer_script} @@ -50,7 +52,11 @@ jQuery(document).ready(function() {
{$element.LEGEND} - + + +
+ {'Informations'|@translate} +
diff --git a/admin/themes/default/template/include/colorbox.inc.tpl b/admin/themes/default/template/include/colorbox.inc.tpl new file mode 100644 index 000000000..c6dc52138 --- /dev/null +++ b/admin/themes/default/template/include/colorbox.inc.tpl @@ -0,0 +1,2 @@ +{combine_script id='jquery.colorbox' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} +{combine_css path="themes/default/js/plugins/jquery.colorbox.css"} \ No newline at end of file -- cgit v1.2.3