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

Last change on this file since 30210 was 30210, checked in by SergeD, 10 years ago

version 1.0.13
+ New colorpack - GreyDragon
+ ADMIN: Added support for horizontal menu - "Static Menu - Header Bottom". When used with Additional Pages Plugin, pages except Root Page would be embeded

into menu bar instead of drop down menu.

+ ADMIN: Added option "Display navigation arrows" for Root page
+ ADMIN: Added option "Display navigation controls" for Root page
+ Added support for thumb shadow space - custom CSS is required (please refer to help section in admin area). Latest gdThumb is recomended.
+ CSS: cleanup

  • Removed hardcoded height for root page slideshow to accomodate navigation controls
  • Fixed issues with Categories List overlapping when Static menu is enabled
  • In Phote page, hide overflow photo when huge size is used
File size: 5.1 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 name="generator" content="Piwigo (aka PWG), see piwigo.org">
6{if isset($meta_ref) }
7{if isset($INFO_AUTHOR)}
8<meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
9{/if}
10{if isset($related_tags)}
11<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
12{/if}
13{if isset($COMMENT_IMG)}
14<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
15{else}
16<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
17{/if}
18{/if}
19<title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title>
20<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
21
22<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
23<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
24{if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
25{if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
26{if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
27{if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
28{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
29
30{assign var=root value="themes/greydragon/css"}
31{assign var=colorpack value=$root|cat:"/colorpack/"|cat:$greydragon.p_colorpack|cat:"/styles.css"}
32
33{combine_css path="themes/greydragon/css/bootstrap.min.css" order=-100}
34{combine_css path="themes/greydragon/css/styles.css" order=100}
35{combine_css path="$colorpack" order=101}
36
37{if count($greydragon.p_customcss) > 0 || $greydragon.p_lowertext == "on"}
38  {combine_css path="themes/greydragon/css/custom.css" order=101}
39{/if}
40{combine_script id='greydragon.bootstrap' load='footer' require='jquery' path='themes/greydragon/js/bootstrap.min.js' order=98}
41{combine_script id='greydragon.cookie' load='footer' require='jquery' path='themes/greydragon/js/jquery.cockie.js' order=99}
42
43{if $SCRIPT_NAME|strstr:"picture.php"}
44{assign var=includeMenu value="off" scope=root nocache}
45{elseif $SCRIPT_NAME|strstr:"identification.php"}
46{assign var=includeMenu value="off" scope=root nocache}
47{elseif $SCRIPT_NAME|strstr:"profile.php"}
48{assign var=includeMenu value="off" scope=root nocache}
49{elseif $BODY_ID == 'theHomePage'}
50{assign var=includeMenu value="off" scope=root nocache}
51{elseif $BODY_ID == 'theIdentificationPage'}
52{assign var=includeMenu value="off" scope=root nocache}
53{elseif $BODY_ID=='thePicturePage'}
54{assign var=includeMenu value="off" scope=root nocache}
55{else}
56{assign var=includeMenu value="on" scope=root nocache}
57{/if}
58
59{footer_script}
60{if $includeMenu=="on"}
61  {combine_script id='greydragon.scripts' load='footer' require='jquery' path='themes/greydragon/js/theme.menu.js' order=100}
62
63  {if isset({$greydragon.p_main_menu})}
64    var p_main_menu = "{$greydragon.p_main_menu}";
65  {else}
66    var p_main_menu = "hidden";
67  {/if}
68  var p_animated_menu = "{$greydragon.p_animated_menu}";
69  var p_hideabout = "{$greydragon.p_hideabout}";
70{/if}
71
72  var p_pict_descr = "{$greydragon.p_pict_descr}";
73  var p_pict_comment = "{$greydragon.p_pict_comment}";
74  var p_pict_tab_anim = "{$greydragon.p_pict_tab_anim}";
75
76  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>');
77{/footer_script}
78
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}">
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.