{combine_script id='core.switchbox' require='jquery' path='themes/default/js/switchbox.js' load='footer'} {combine_script id='cookie' require='jquery' path='themes/bootstrapdefault/js/jquery.cookie.js' load='footer'} {combine_script id='equalheights' require='jquery' path='themes/bootstrapdefault/js/jquery.equalheights.js' load='footer'} {if get_device() != 'desktop'} {combine_script id='jquery.mobile-events' path='themes/bootstrap_darkroom/components/jquery-touch-events/src/jquery.mobile-events.min.js' require='jquery' load='footer'} {/if} {if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if} {footer_script require='jquery'}{strip} if ($('.jumbotron').length > 0) { var $affix_height = $('.navbar-main').height() + $('.jumbotron').outerHeight(); $('.navbar-contextual').affix({literal}{ offset: {top: $affix_height } }{/literal}); } else { $('.navbar-contextual').affix({literal}{ offset: {top: $('.navbar-main').height()} }{/literal}); } $('.navmenu').on('show.bs.offcanvas', function() { if ($('.navbar-contextual ul.navmenu-nav').contents().length === 0) { $($('.navbar-contextual ul.navbar-nav').contents()).appendTo('ul.navmenu-nav'); $('ul.navmenu-nav').find('.dropdown-menu').addClass('dropdown-menu-right'); $('ul.navmenu-nav').find('.dropdown-toggle').attr('aria-haspopup', 'true'); {if $theme_config_extra->bootstrap_theme == 'bootswatch' || $theme_config_extra->bootstrap_theme == 'material'} $('.navmenu').css('background-color', $('.navbar-default').css('background-color')); {/if} } $('#the_page').on('touchmove.bs', function(e) { e.preventDefault(); }); $('.navbar-main .collapse').collapse('hide'); if ($('.navbar-contextual.affix-top').length > 0) { var navmenu_top = $('.navbar-contextual').height(); if ($('.jumbotron').length > 0) { navmenu_top = navmenu_top + $('.jumbotron').outerHeight() - $(document).scrollTop(); } $('.navmenu').css('top', navmenu_top); } }); $('.navmenu').on('hidden.bs.offcanvas', function() { if ($('ul.navmenu-nav').contents().length > 0) { $('ul.navmenu-nav').find('.dropdown-menu-right').removeClass('dropdown-menu-right'); $('ul.navmenu-nav').find('.dropdown-toggle').removeAttr('aria-haspopup'); $($('ul.navmenu-nav').contents()).appendTo('.navbar-contextual ul.navbar-nav'); } $('#the_page').off('touchmove.bs'); }); $('.navbar-contextual').on('affix.bs.affix', function() { $('.navmenu').css('top', ''); }); $('.navbar-contextual').on('affix-top.bs.affix', function() { var nav_top_offset = 0; if ($('.navbar-main')) { nav_top_offset = $('.navbar-main').height(); } if ($('.jumbotron').length > 0) { nav_top_offset = nav_top_offset + $('.jumbotron').outerHeight(); } $('.navmenu').css('top', nav_top_offset); }); {if $theme_config_extra->bootstrap_theme == 'material'} $('#content-spacer').addClass('well'); {/if} {strip}{/footer_script} {include file='infos_errors.tpl'}
{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if} {if isset($chronology_views)}
{/if} {if isset($FILE_CHRONOLOGY_VIEW)} {include file=$FILE_CHRONOLOGY_VIEW} {/if} {if !empty($CONTENT_DESCRIPTION)}

{$CONTENT_DESCRIPTION}

{/if}
{if !empty($CONTENT)} {$CONTENT} {/if} {if !empty($CATEGORIES)} {$CATEGORIES} {footer_script}{strip} $(document).ready(function() { $(window).load(function(){ $('#content .col-inner').equalHeights() }) }); var resizeTimer; $(window).on('resize', function() { clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { if ($(window).innerWidth() < 768) { $('.col-inner').removeAttr('style'); } else { $('.col-inner').equalHeights(); } }, 250); }); {/strip}{/footer_script} {/if} {if !empty($THUMBNAILS)}
{$THUMBNAILS}
{footer_script}{literal}$(document).ready(function(){$('#content img').load(function(){$('#content .col-inner').equalHeights()})});{/literal}{/footer_script} {if $theme_config_extra->photoswipe}
{assign var=idx value=0} {foreach from=$thumbnails item=thumbnail} {assign var=derivative_medium value=$pwg->derivative($derivative_params_medium, $thumbnail.src_image)} {assign var=derivative_large value=$pwg->derivative($derivative_params_large, $thumbnail.src_image)} {assign var=derivative_xxlarge value=$pwg->derivative($derivative_params_xxlarge, $thumbnail.src_image)} photoswipe_metadata} data-exif-make="{$thumbnail.EXIF.make}" data-exif-model="{$thumbnail.EXIF.model}" data-exif-lens="{$thumbnail.EXIF.lens}" data-exif-iso="{$thumbnail.EXIF.iso}" data-exif-apperture="{$thumbnail.EXIF.apperture}" data-exif-shutter-speed="{$thumbnail.EXIF.shutter_speed}" data-exif-focal-length="{$thumbnail.EXIF.focal_length}" data-date-created="{$thumbnail.DATE_CREATED}"{/if}{/if}> {assign var=idx value=$idx+1} {/foreach} {include file='_photoswipe_js.tpl' selector='#photoSwipeData'}
{footer_script require='jquery' require='photoswipe'}{strip} $('#startSlideshow').on('click touchstart', function() { startPhotoSwipe(0); $('.pswp__button--autoplay')[0].click(); }); function setupPhotoSwipe() { $('#thumbnails').find("a:has(img[class=thumbnail])").each(function(_index) { var $pswpIndex; if ($(this).find('img').length > 0) { var _href = $(this).href; $(this).attr('href', 'javascript:;').attr('data-href', _href); if (!$(this).attr('data-index')) { $(this).attr('data-index', _index); $pswpIndex = _index; } else { $pswpIndex = $(this).data('index'); } $(this).off('click tap').on('click tap', function(event) { event.preventDefault(); startPhotoSwipe($pswpIndex); }); } }); } {if $theme_config_extra->thumbnail_linkto == "photoswipe" || ($theme_config_extra->thumbnail_linkto == "photoswipe_mobile_only" && get_device() != 'desktop')} $(document).ready(function() { setupPhotoSwipe(); }); {if isset($loaded_plugins['rv_tscroller'])} $(document).ajaxComplete(function() { setupPhotoSwipe(); }); {/if} {/if} {/strip}{/footer_script} {/if} {footer_script require="jquery"}{strip} {if !isset($loaded_plugins['piwigo-videojs']) && (isset($GThumb) || isset($GDThumb))} function addVideoIndicator() { $('img.thumbnail[src*="pwg_representative"]').each(function() { $(this).closest('li').append(''); }); } $(document).ready(function() { addVideoIndicator(); }); $(document).ajaxComplete(function() { addVideoIndicator(); }); {else} $('.col-thumbnail').find('img[src*="pwg_representative"]').each(function() { $(this).closest('div').append(''); }); {/if} {/strip}{/footer_script} {/if}
{if !empty($cats_navbar) || !empty($thumb_navbar)}
{if !empty($cats_navbar)} {include file='navigation_bar.tpl' fragment="content"|@get_extent:'navbar' navbar=$cats_navbar} {/if} {if !empty($thumb_navbar) && !isset($loaded_plugins['rv_tscroller'])} {include file='navigation_bar.tpl' fragment="content"|@get_extent:'navbar' navbar=$thumb_navbar} {/if}
{/if} {if !empty($category_search_results)}

{'Album results for'|@translate} {$QUERY_SEARCH}

{foreach from=$category_search_results item=res name=res_loop} {if !$smarty.foreach.res_loop.first} — {/if} {$res} {/foreach}

{/if} {if !empty($tag_search_results)}

{'Tag results for'|@translate} {$QUERY_SEARCH}

{foreach from=$tag_search_results item=tag name=res_loop} {if !$smarty.foreach.res_loop.first} — {/if} {$tag.name} {/foreach}

{/if}
{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}