{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} {$themeconf.local_head} {if isset($U_PREFETCH)}{/if} {if not empty($page_refresh)}{/if} {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} {known_script id="jquery.ui.tabs" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.tabs.packed.js"} {known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.dialog.packed.js"} {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'} {php} $themeconf=$this->get_template_vars('themeconf'); $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/".$themeconf['template_dir']."/theme/".$themeconf['theme']."/"; $this->assign("default_conf", $dir."default.conf"); if(file_exists($dir."local.conf")) { $this->assign("local_conf", $dir."local.conf"); } else { $this->assign("local_conf", ""); } {/php} {config_load file=$default_conf} {if $local_conf!=""} {config_load file=$local_conf} {/if} {include file='config.js.tpl'} {/if} {if $BODY_ID=='theCategoryPage'} {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:$themeconf.template_dir|cat:"/gallyjs-tcp.js"} {/if} {if $BODY_ID=='thePicturePage'} {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:$themeconf.template_dir|cat:"/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} {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}
{else} {/if} {if isset($theSwiftHeader)}{$theSwiftHeader}{/if} {if not empty($header_notes)}
{foreach from=$header_notes item=elt}

{$elt}

{/foreach}
{/if}