diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 0c7910357..bf0e458e6 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -229,6 +229,8 @@ $template->set_filenames( $admin_url_start = $admin_photo_base_url.'-properties'; $admin_url_start.= isset($_GET['cat_id']) ? '&cat_id='.$_GET['cat_id'] : ''; +$src_image = new SrcImage($row); + $template->assign( array( 'tag_selection' => $tag_selection, @@ -237,7 +239,8 @@ $template->assign( 'PATH'=>$row['path'], - 'TN_SRC' => DerivativeImage::thumb_url($row), + 'TN_SRC' => DerivativeImage::url(IMG_THUMB, $src_image), + 'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image), 'NAME' => isset($_POST['name']) ? diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 9bdc996a9..57c936ac1 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -55,9 +55,8 @@ jQuery("a.preview-box").colorbox(); {$element.LEGEND} - -
- {'Edit'|@translate} + + {'Edit'|@translate}
diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index c17ff6dfe..fe05c4d03 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -1,5 +1,6 @@ {include file='include/autosize.inc.tpl'} {include file='include/datepicker.inc.tpl'} +{include file='include/colorbox.inc.tpl'} {combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'} @@ -35,6 +36,9 @@ jQuery(function(){ {* *} cancelButton: '{'Cancel'|translate}' }); }); + +{* *} +jQuery("a.preview-box").colorbox(); }()); {/footer_script} @@ -49,7 +53,7 @@ jQuery(function(){ {* *}
- {'Thumbnail'|@translate} + {'Thumbnail'|translate}