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

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

version 1.1.19 - please refer to changelog for more details

File size: 6.0 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_path}
24<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$greydragon.p_favicon_path}">
25{else}
26<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
27{/if}
28<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
29<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
30{if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
31{if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
32{if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
33{if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
34{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
35{assign var=root value="themes/greydragon/css"}
36{assign var=local value="local/greydragon"}
37{assign var=colorpack value=$root|cat:"/colorpack/"|cat:$greydragon.p_colorpack|cat:"/styles.css"}
38{combine_css path="themes/greydragon/css/bootstrap.min.css" order=-100}
39{combine_css path="themes/greydragon/css/styles.css" order=100}
40{combine_css path="$colorpack" order=101}
41{if count($greydragon.p_customcss) > 0 || $greydragon.p_lowertext == "on"}
42  {if $local|cat:"/custom.css"|file_exists}
43  {combine_css path="local/greydragon/custom.css" order=101}
44  {/if}
45{/if}
46{combine_script id='greydragon.bootstrap' load='footer' require='jquery' path='themes/greydragon/js/bootstrap.min.js' order=98}
47{combine_script id='greydragon.cookie' load='footer' require='jquery' path='themes/greydragon/js/jquery.cockie.js' order=99}
48{if $SCRIPT_NAME|strstr:"picture.php"}
49{assign var=includeMenu value="off" scope=root nocache}
50{elseif $SCRIPT_NAME|strstr:"identification.php"}
51{assign var=includeMenu value="off" scope=root nocache}
52{elseif $SCRIPT_NAME|strstr:"profile.php"}
53{assign var=includeMenu value="off" scope=root nocache}
54{elseif $SCRIPT_NAME|strstr:"password.php"}
55{assign var=includeMenu value="off" scope=root nocache}
56{elseif $SCRIPT_NAME|strstr:"register.php"}
57{assign var=includeMenu value="off" scope=root nocache}
58{elseif $BODY_ID == 'theHomePage'}
59{assign var=includeMenu value="off" scope=root nocache}
60{elseif $BODY_ID == 'theIdentificationPage'}
61{assign var=includeMenu value="off" scope=root nocache}
62{elseif $BODY_ID=='thePicturePage'}
63{assign var=includeMenu value="off" scope=root nocache}
64{else}
65{assign var=includeMenu value="on" scope=root nocache}
66{/if}
67{footer_script}
68  jQuery("div.infos").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
69  jQuery("div.warnings").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); });
70  jQuery("div.errors").click(function() { jQuery(this).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); });
71{if $includeMenu=="on"}
72  {combine_script id='greydragon.scripts' load='footer' require='jquery' path='themes/greydragon/js/theme.menu.js' order=100}
73  {if 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_descr = "{$greydragon.p_pict_descr}";
82  var p_pict_comment = "{$greydragon.p_pict_comment}";
83  var p_pict_tab_anim = "{$greydragon.p_pict_tab_anim}";
84  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>');
85{/footer_script}
86{get_combined_css}
87{foreach from=$themes item=theme}
88{if $theme.load_css}
89{combine_css path="themes/`$theme.id`/theme.css" order=-10}
90{/if}
91{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
92{/foreach}
93
94{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
95{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
96
97{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
98
99{get_combined_scripts load='header'}
100<!--[if lt IE 7]>
101<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
102<![endif]-->
103
104{combine_script id="jquery" load="footer"}
105
106{if not empty($head_elements)}
107  {foreach from=$head_elements item=elt}{$elt}
108  {/foreach}
109{/if}
110</head>
111<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}">
112<div id="the_page">
113{if not empty($header_msgs)}
114  <div class="header_msgs">
115    {foreach from=$header_msgs item=elt}
116    {$elt}<br>
117    {/foreach}
118  </div>
119{/if}
120{if $PAGE_BANNER}
121  <div id="theHeader">{$PAGE_BANNER}</div>
122{/if}
123{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
124{if not empty($header_notes)}
125  <div class="header_notes">
126    {foreach from=$header_notes item=elt}
127    <p>{$elt}</p>
128    {/foreach}
129  </div>
130{/if}
Note: See TracBrowser for help on using the repository browser.