mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-07 02:11:26 +02:00
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
This commit is contained in:
@@ -263,6 +263,7 @@ SELECT
|
||||
array(
|
||||
'ID' => $row['id'],
|
||||
'TN_SRC' => $src,
|
||||
'FILE_SRC' => $row['path'],
|
||||
'LEGEND' => !empty($row['name']) ?
|
||||
$row['name'] : get_name_from_file($row['file']),
|
||||
'U_EDIT' =>
|
||||
|
||||
@@ -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() {
|
||||
<fieldset class="elementEdit">
|
||||
<legend>{$element.LEGEND}</legend>
|
||||
|
||||
<a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit photo information'|@translate}"></a>
|
||||
<span class="thumb">
|
||||
<a href="{$element.FILE_SRC}" class="preview-box" title="{$element.LEGEND}"><img src="{$element.TN_SRC}" alt=""></a>
|
||||
<br/>
|
||||
<a href="{$element.U_EDIT}">{'Informations'|@translate}</a>
|
||||
</span>
|
||||
|
||||
<table>
|
||||
|
||||
|
||||
@@ -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"}
|
||||
@@ -215,9 +215,10 @@ LI.menuLi {
|
||||
|
||||
FORM#catModify TABLE { width: auto; }
|
||||
|
||||
FIELDSET.elementEdit A {
|
||||
FIELDSET.elementEdit .thumb {
|
||||
display: block;
|
||||
float: right;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
TABLE.doubleSelect {
|
||||
|
||||
Reference in New Issue
Block a user