Suggestions for Lightbox view
Suggestions
You have my vote for this as well.
function atYoutube_modal() {
$('#youtube_{$item._item_id}').modal({
onOpen: function (dialog) {
dialog.overlay.fadeIn('fast', function () {
dialog.container.slideDown('fast', function () {
dialog.data.fadeIn('fast', function () {
});
});
});
},
onClose: function (dialog) {
dialog.data.fadeOut('fast', function () {
dialog.container.hide('fast', function () {
dialog.overlay.fadeOut('fast', function () {
$.modal.close();
});
});
});
},
overlayClose:true
});
}
function atYoutube_modal() {
$('#youtube-{$item._item_id}').modal({
<div class="media" style="text-align:center">
<a onclick="atYoutube_modal();" title="{$item.action_data.youtube_title|jrCore_entity_string}"><img src="https://img.youtube.com/vi/{$item.action_data.youtube_id}/default.jpg" width="35%" /></a>
</div>
<div id="youtube-{$item._item_id}" class="search_box" style="display:none;">
function myModule_modal(){
$('#myModal-{$action_id}').modal({
{jrCore_module_url module=$item.action_data.comment_module}
{jrCore_module_name module=$item.action_data.comment_module}
<a href="{$jamroom_url}/{$murl}/image/gallery_image/{$_i._item_id}/1280" data-lightbox="images_{$_i.gallery_title_url}" title="{$_i.gallery_caption|default:$_i.gallery_image_name|jrGallery_title_name:$_i.gallery_caption}">
{jrCore_module_function function="jrImage_display" module="jrGallery"
type="gallery_image" item_id=$_i._item_id size=$size crop=$aspect
alt=$_i.gallery_alt_text width=false height=false}</a>