{if isset($meta_ref) } {if isset($INFO_AUTHOR)} {/if} {if isset($related_tags)} {/if} {if isset($COMMENT_IMG)} {else} {/if} {/if} {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))} {$GALLERY_TITLE} | {$PAGE_TITLE} {else} {$PAGE_TITLE} | {$GALLERY_TITLE} {/if} {if isset($first.U_IMG) }{/if} {if isset($previous.U_IMG)}{/if} {if isset($next.U_IMG) }{/if} {if isset($last.U_IMG) }{/if} {if isset($U_UP) }{/if} {if isset($U_PREFETCH)}{/if} {if not empty($page_refresh)}{/if} {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} {known_script id="jquery.ui" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.core.packed.js"} {known_script id="jquery.ui.tabs" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.tabs.packed.js"} {known_script id="jquery.ui.dialog" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.dialog.packed.js"} {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'} {php} $themes=$this->get_template_vars('themes'); foreach($themes as $theme) { $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/"; $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/local/themes/".$theme['id']."/conf/"; $this->assign("default_conf", $dir."default.conf"); if(file_exists($dirlocal."local.conf")) { $this->assign("local_conf", $dirlocal."local.conf"); } else { $this->assign("local_conf", ""); } } {/php} {config_load file=$default_conf} {if $local_conf!=""} {config_load file=$local_conf} {/if} {php} $this->assign("alternateBannerContent", html_entity_decode($this->get_config_vars('alternateBannerContent'))); {/php} {include file='config.js.tpl'} {/if} {if $BODY_ID=='theCategoryPage'} {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tcp.js"} {/if} {if $BODY_ID=='thePicturePage'} {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tpp.js"} {/if} {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage' or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage' or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage' or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'} {/if} {foreach from=$themes item=theme} {if isset($theme.local_head)}{include file=$theme.local_head}{/if} {/foreach} {if not empty($head_elements)} {foreach from=$head_elements item=elt}{$elt} {/foreach} {/if}
{if not empty($header_msgs)}
{foreach from=$header_msgs item=elt}

{$elt}

{/foreach}
{/if} {if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
{$PAGE_BANNER}
{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
{$alternateBannerContent}
{else} {/if} {if isset($theSwiftHeader)}{$theSwiftHeader}{/if} {if not empty($header_notes)}
{foreach from=$header_notes item=elt}

{$elt}

{/foreach}
{/if}