{if !empty($thumbnails)} {php} global $stripped, $strippedgalleria; $this->assign( 'stripped', $stripped ); $this->assign( 'strippedgalleria', $strippedgalleria ); {/php} {footer_script} {literal} var Htotal=jQuery(window).height(); var Hheader=jQuery("#content").position().top; var Hfooter=jQuery("#footer").height(); var Hgallery = Htotal - Hheader - Hfooter - 2; jQuery("#gallery").galleria({ height: Hgallery, lightbox:{/literal}{if ($strippedgalleria.lightbox != 'none')}true{else}false{/if}{literal}, clicknext:{/literal}{if ($strippedgalleria.clicknext)}true{else}false{/if}{literal}, transition:'{/literal}{$strippedgalleria.transition}{literal}', showCounter:false, imageTimeout:600000, maxScaleRatio:1, extend:function() { this.attachKeyboard({ left: this.prev, right: this.next }); } }); {/literal} {/footer_script} {/if}