source: extensions/greydragon/template/header.tpl @ 31232

Last change on this file since 31232 was 31232, checked in by SergeD, 9 years ago

version 1.2.26 - see changelog for details

File size: 6.7 KB
Line 
1<!DOCTYPE html>
2<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
5<meta http-equiv="X-UA-Compatible" content="IE=edge">
6{if $greydragon.p_nogenerator !== "on"}
7<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
8{/if}
9{if isset($meta_ref)}
10{if isset($INFO_AUTHOR)}
11<meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
12{/if}
13{if isset($related_tags)}
14<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
15{/if}
16{if isset($COMMENT_IMG)}
17<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
18{else}
19<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
20{/if}
21{/if}
22<title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title>
23{if $greydragon.p_favicon_ico}<link href="{$ROOT_URL}{$greydragon.p_favicon_ico}" rel="shortcut icon" type="image/x-icon">
24{else}<link href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico" rel="shortcut icon" type="image/x-icon">{/if}
25{if $greydragon.p_favicon_png}<link href="{$ROOT_URL}{$greydragon.p_favicon_png}" rel="icon" type="image/png">{/if}
26{if $greydragon.p_favicon_gif}<link href="{$ROOT_URL}{$greydragon.p_favicon_gif}" rel="icon" type="image/gif">{/if}
27{if $greydragon.p_favicon_apple}{if $greydragon.p_favicon_noshine == "on"}<link href="{$ROOT_URL}{$greydragon.p_favicon_apple}" rel="apple-touch-icon-precomposed">
28{else}<link href="{$ROOT_URL}{$greydragon.p_favicon_apple}" rel="apple-touch-icon">{/if}{/if}
29
30<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
31<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
32{if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
33{if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
34{if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
35{if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
36{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
37{assign var=root value="themes/greydragon/css"}
38{assign var=local value="local/greydragon"}
39{assign var=colorpack value=$root|cat:"/colorpack/"|cat:$greydragon.p_colorpack|cat:"/styles.css"}
40{combine_css path="themes/greydragon/css/bootstrap.min.css" order=-100}
41{combine_css path="themes/greydragon/css/styles.css" order=100}
42{combine_css path="$colorpack" order=101}
43{if count($greydragon.p_customcss) > 0 || $greydragon.p_lowertext == "on"}
44  {if $local|cat:"/custom.css"|file_exists}
45  {combine_css path="local/greydragon/custom.css" order=101}
46  {/if}
47{/if}
48{combine_script id='greydragon.bootstrap' load='footer' require='jquery' path='themes/greydragon/js/bootstrap.min.js' order=98}
49{combine_script id='greydragon.cookie' load='footer' require='jquery' path='themes/greydragon/js/jquery.cockie.js' order=99}
50{if $SCRIPT_NAME|strstr:"picture.php"}
51{assign var=includeMenu value="off" scope=root nocache}
52{elseif $SCRIPT_NAME|strstr:"identification.php"}
53{assign var=includeMenu value="off" scope=root nocache}
54{elseif $SCRIPT_NAME|strstr:"profile.php"}
55{assign var=includeMenu value="off" scope=root nocache}
56{elseif $SCRIPT_NAME|strstr:"password.php"}
57{assign var=includeMenu value="off" scope=root nocache}
58{elseif $SCRIPT_NAME|strstr:"register.php"}
59{assign var=includeMenu value="off" scope=root nocache}
60{elseif $BODY_ID == 'theHomePage'}
61{assign var=includeMenu value="off" scope=root nocache}
62{elseif $BODY_ID == 'theIdentificationPage'}
63{assign var=includeMenu value="off" scope=root nocache}
64{elseif $BODY_ID=='thePicturePage'}
65{assign var=includeMenu value="off" scope=root nocache}
66{else}
67{assign var=includeMenu value="on" scope=root nocache}
68{/if}
69{footer_script}
70  jQuery("div.infos").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
71  jQuery("div.warnings").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
72  jQuery("div.errors").click(function() { jQuery(this).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); });
73{if $includeMenu=="on"}
74  {combine_script id='greydragon.scripts' load='footer' require='jquery' path='themes/greydragon/js/theme.menu.js' order=100}
75  {if ($greydragon.p_main_menu_close == "on") && (($greydragon.p_main_menu == "opened") || ($greydragon.p_main_menu == "closed"))}
76  var p_main_menu = "force_hide";
77  {elseif isset({$greydragon.p_main_menu})}
78  var p_main_menu = "{$greydragon.p_main_menu}";
79  {else}
80  var p_main_menu = "hidden";
81  {/if}
82  var p_animated_menu = "{$greydragon.p_animated_menu}";
83  var p_hideabout = "{$greydragon.p_hideabout}";
84{/if}
85  var p_pict_descr = "{$greydragon.p_pict_descr}";
86  var p_pict_comment = "{$greydragon.p_pict_comment}";
87  var p_pict_tab_anim = "{$greydragon.p_pict_tab_anim}";
88  jQuery("#ato_header .parent:eq(0) ul").append('<li><a class="icon-brush" href="{$greydragon.U_SITE_ADMIN}theme&theme=greydragon">{'Theme Config'|translate}</a></li>');
89{/footer_script}
90{get_combined_css}
91{foreach from=$themes item=theme}
92{if $theme.load_css}
93{combine_css path="themes/`$theme.id`/theme.css" order=-10}
94{/if}
95{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
96{/foreach}
97
98{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
99{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
100
101{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
102
103{get_combined_scripts load='header'}
104
105<!--[if lt IE 7]>
106<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
107<![endif]-->
108
109{combine_script id="jquery" load="footer"}
110
111{if not empty($head_elements)}
112  {foreach from=$head_elements item=elt}{$elt}
113  {/foreach}
114{/if}
115</head>
116<body id="{$BODY_ID}" class="{if $includeMenu=="on"}{$greydragon.p_main_menu}-menu{else}hide-menu{/if}{if $PAGE_BANNER}{else} no-header{/if}{if $greydragon.p_nocounter == "on"} no-b-counter{/if} theme-{$greydragon.p_colorpack}">
117<div id="the_page">
118{if not empty($header_msgs)}
119  <div class="header_msgs">
120    {foreach from=$header_msgs item=elt}
121    {$elt}<br>
122    {/foreach}
123  </div>
124{/if}
125{if $PAGE_BANNER}
126  <div id="theHeader">{$PAGE_BANNER}</div>
127{/if}
128{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
129{if not empty($header_notes)}
130  <div class="header_notes">
131    {foreach from=$header_notes item=elt}
132    <p>{$elt}</p>
133    {/foreach}
134  </div>
135{/if}
Note: See TracBrowser for help on using the repository browser.