source: extensions/greydragon/template/header.tpl

Last change on this file was 32869, checked in by SergeD, 18 months ago

Version 1.3.9 - see changelog for details

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