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

Last change on this file since 31987 was 31987, checked in by SergeD, 5 years ago

version 1.3.2 - 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/all.min.css" order=-100}
42{combine_css path="themes/greydragon/css/styles.css" order=100}
43{combine_css path="$colorpack" order=101}
44{if isset($greydragon.p_customcss) || $greydragon.p_lowertext == "on"}
45  {if $local|cat:"/custom.css"|file_exists}
46    {combine_css path="local/greydragon/custom.css" order=101}
47  {/if}
48{/if}
49{combine_script id='greydragon.bootstrap' load='footer' require='jquery' path='themes/greydragon/js/bootstrap.min.js' order=98}
50{combine_script id='greydragon.cookie' load='footer' require='jquery' path='themes/greydragon/js/jquery.cockie.js' order=99}
51{if $SCRIPT_NAME|strstr:"picture.php"}
52{assign var=includeMenu value="off" scope=root nocache}
53{elseif $SCRIPT_NAME|strstr:"identification.php"}
54{assign var=includeMenu value="off" scope=root nocache}
55{elseif $SCRIPT_NAME|strstr:"profile.php"}
56{assign var=includeMenu value="off" scope=root nocache}
57{elseif $SCRIPT_NAME|strstr:"password.php"}
58{assign var=includeMenu value="off" scope=root nocache}
59{elseif $SCRIPT_NAME|strstr:"register.php"}
60{assign var=includeMenu value="off" scope=root nocache}
61{elseif $BODY_ID == 'theHomePage'}
62{assign var=includeMenu value="off" scope=root nocache}
63{elseif $BODY_ID == 'theIdentificationPage'}
64{assign var=includeMenu value="off" scope=root nocache}
65{elseif $BODY_ID=='thePicturePage'}
66{assign var=includeMenu value="off" scope=root nocache}
67{else}
68{assign var=includeMenu value="on" scope=root nocache}
69{/if}
70{footer_script}
71  jQuery("div.infos").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
72  jQuery("div.warnings").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
73  jQuery("div.errors").click(function() { jQuery(this).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); });
74{if $includeMenu=="on"}
75  {combine_script id='greydragon.scripts' load='footer' require='jquery' path='themes/greydragon/js/theme.menu.js' order=100}
76  {if ($greydragon.p_main_menu_close == "on") && (($greydragon.p_main_menu == "opened") || ($greydragon.p_main_menu == "closed"))}
77  var p_main_menu = "force_hide";
78  {elseif isset({$greydragon.p_main_menu})}
79  var p_main_menu = "{$greydragon.p_main_menu}";
80  {else}
81  var p_main_menu = "hidden";
82  {/if}
83  var p_animated_menu = "{$greydragon.p_animated_menu}";
84  var p_hideabout = "{$greydragon.p_hideabout}";
85{/if}
86  var p_pict_descr = "{$greydragon.p_pict_descr}";
87  var p_pict_comment = "{$greydragon.p_pict_comment}";
88  var p_pict_tab_anim = "{$greydragon.p_pict_tab_anim}";
89  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>');
90{/footer_script}
91{get_combined_css}
92{foreach from=$themes item=theme}
93{if $theme.load_css}
94{combine_css path="themes/`$theme.id`/theme.css" order=-10}
95{/if}
96{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
97{/foreach}
98
99{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
100{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
101
102{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
103
104{get_combined_scripts load='header'}
105
106<!--[if lt IE 7]>
107<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
108<![endif]-->
109
110{combine_script id="jquery" load="footer"}
111
112{if not empty($head_elements)}
113  {foreach from=$head_elements item=elt}{$elt}
114  {/foreach}
115{/if}
116</head>
117<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}">
118<div id="the_page">
119{if not empty($header_msgs)}
120  <div class="header_msgs">
121    {foreach from=$header_msgs item=elt}
122    {$elt}<br>
123    {/foreach}
124  </div>
125{/if}
126{if $PAGE_BANNER}
127  <div id="theHeader">{$PAGE_BANNER}</div>
128{/if}
129{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
130{if not empty($header_notes)}
131  <div class="header_notes">
132    {foreach from=$header_notes item=elt}
133    <p>{$elt}</p>
134    {/foreach}
135  </div>
136{/if}
Note: See TracBrowser for help on using the repository browser.