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

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

version 1.0.14 - please refer to changelog for details

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