{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} {combine_script id="jquery" path="themes/default/js/jquery.min.js"} {combine_script id="jquery.ui" path="themes/default/js/ui/minified/jquery.ui.core.min.js"} {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/minified/jquery.ui.tabs.min.js"} {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/minified/jquery.ui.dialog.min.js"} {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'])."/".PWG_LOCAL_DIR."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 #manageTips#=='yes'} {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.min.js" require="jquery"} {combine_script id="gallyjs-ttm" path="themes/gally-default/js/gallyjs-ttm.js" require="jquery"} {/if} {if $BODY_ID=='theCategoryPage' or isset($MENUBAR)} {combine_script id="gallyjs-tcp" path="themes/gally-default/js/gallyjs-tcp.js" require="jquery"} {/if} {if $BODY_ID=='thePicturePage'} {combine_script id="gallyjs-tpp" path="themes/gally-default/js/gallyjs-tpp.js" require="jquery"} {/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} {get_combined_css} {foreach from=$themes item=theme} {if $theme.load_css} {combine_css path="themes/`$theme.id`/css/theme.css" order=-10} {/if} {if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if} {/foreach} {if not empty($head_elements)} {foreach from=$head_elements item=elt}{$elt} {/foreach} {/if} {get_combined_scripts load='header'}
{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}