Skip to content

Commit

Permalink
- added album name to lc_lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoffy committed Jun 25, 2020
1 parent d0fb65b commit b7fee52
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
5 changes: 2 additions & 3 deletions assets/gallerytypes/lclightboxlite/js/lc_lightbox.lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@
'<div id="lcl_play" class="lcl_icon lcl_play"></div>'+
'<div id="lcl_next" class="lcl_icon lcl_next" title="next"></div>'+
'<div id="lcl_counter" class="lcl_icon lcl_counter"></div>'+

'<div id="lcl_close" class="lcl_icon lcl_right_icon lcl_close" title="close"></div>'+

'<div id="lcl_close" class="lcl_icon lcl_right_icon lcl_close" title="close"></div>'+
'<div id="lcl_fullscreen" class="lcl_icon lcl_right_icon lcl_fullscreen" title="toggle fullscreen"></div>'+
'<div id="lcl_txt_toggle" class="lcl_icon lcl_right_icon lcl_txt_toggle" title="toggle text"></div>'+
'<div id="lcl_download" class="lcl_icon lcl_right_icon lcl_download" title="download"></div>'+
'<div id="lcl_thumbs_toggle" class="lcl_icon lcl_right_icon lcl_thumbs_toggle" title="toggle thumbnails"></div>'+
'<div id="lcl_socials" class="lcl_icon lcl_right_icon lcl_socials" title="toggle socials"></div>'+
'</div>'+
'<div id="lbl_album"></div>'+
'<div id="lcl_contents_wrap">'+
'<div id="lcl_subj">'+
'<div id="lcl_elem_wrap"></div>'+
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- fixed perm bug for moving image from one to another album (lupin/goffy)
- fixed bug in nested sorting (lupin/goffy)
- fixed bug in extract exif (lupin/goffy)
- added album name to lc_lightbox (goffy)

<h5>1.14 RC1</h5> [2019/11/09]
<hr>
Expand Down
3 changes: 2 additions & 1 deletion gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
case 'lclightboxlite':
$GLOBALS['xoTheme']->addStylesheet(WGGALLERY_URL . '/assets/gallerytypes/lclightboxlite/css/lc_lightbox.min.css', null);
$GLOBALS['xoTheme']->addStylesheet(WGGALLERY_URL . '/assets/gallerytypes/lclightboxlite/skins/' . $lcl_skin . '.css', null);
$GLOBALS['xoTheme']->addScript(WGGALLERY_URL . '/assets/gallerytypes/lclightboxlite/js/lc_lightbox.lite.min.js');
$GLOBALS['xoTheme']->addScript(WGGALLERY_URL . '/assets/gallerytypes/lclightboxlite/js/lc_lightbox.lite.js');
$GLOBALS['xoopsTpl']->assign('lbl_album', $albName);
break;
case 'jssor':
$GLOBALS['xoopsTpl']->assign('uniqid', preg_replace('/[^a-zA-Z0-9]+/', '_', uniqid('', true)));
Expand Down
4 changes: 2 additions & 2 deletions images.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@
$ratingsHandler->deleteAllRatings($imgId, 1);

if ('manage' === $redir_op) {
redirect_header('images.php?op=manage&amp;alb_id=' . $imgAlbId . '&amp;alb_pid=' . $imgAlbPid, 2, _CO_WGGALLERY_FORM_DELETE_OK);
redirect_header('images.php?op=manage&amp;alb_id=' . $imgAlbId . '&amp;alb_pid=' . $albPid, 2, _CO_WGGALLERY_FORM_DELETE_OK);
} else {
redirect_header('images.php?op=list&amp;alb_id=' . $imgAlbId . '&amp;alb_pid=' . $imgAlbPid, 2, _CO_WGGALLERY_FORM_DELETE_OK);
redirect_header('images.php?op=list&amp;alb_id=' . $imgAlbId . '&amp;alb_pid=' . $albPid, 2, _CO_WGGALLERY_FORM_DELETE_OK);
}

redirect_header('images.php?op=list&amp;alb_id=' . $albId, 3, _CO_WGGALLERY_FORM_DELETE_OK);
Expand Down
23 changes: 20 additions & 3 deletions templates/wggallery_gallery_lclightboxlite.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<{/foreach}><{/if}>];
var $instance = lc_lightbox(data, {
gallery:true,
gallery:true,
slideshow:<{$lcl_slideshow}>,
skin:'<{$lcl_skin}>',
open_close_time : <{$speedOpen}>,
Expand Down Expand Up @@ -69,8 +69,12 @@
lclSetAttribute("lcl_txt_toggle", "<{$smarty.const._MA_WGGALLERY_LCL_TXT_TOGGLE}>");
lclSetAttribute("lcl_download", "<{$smarty.const._MA_WGGALLERY_LCL_DOWNLOAD}>");
lclSetAttribute("lcl_thumbs_toggle", "<{$smarty.const._MA_WGGALLERY_LCL_THUMBS_TOGGLE}>");
lclSetAttribute("lcl_socials", "<{$smarty.const._MA_WGGALLERY_LCL_SOCIALS}>");
lclSetAttribute("lcl_socials", "<{$smarty.const._MA_WGGALLERY_LCL_SOCIALS}>");
//set album name
<{if $lbl_album}>
$('#lbl_album').html('<p><{$lbl_album}></p>');
<{/if}>
});
$(document).on('click', '#lcl_downloadlink', function(){
var ele = document.getElementById("lcl_downloadlink");
Expand All @@ -89,8 +93,21 @@
x[i].setAttribute("title", mytitle);
}
};
</script>
<style>
#lbl_album {
margin-top: -40px;
text-align: center;
height: 30px;
}
#lbl_album p {
padding-top:15px;
font-size: 18px;
}
</style>
<div style="height:<{$lcl_backgroundheight}>;">&nbsp;</div>
<div class="clear spacer"></div>
Expand Down

0 comments on commit b7fee52

Please sign in to comment.