source: extensions/gally/gally-default/template/header.tpl @ 16016

Last change on this file since 16016 was 16016, checked in by grum, 12 years ago

feature:2664- compatibility with Piwigo 2.4

  • Property svn:executable set to *
File size: 5.5 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<!-- **GBL** >HEADER> -->
3<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
4<head>
5  <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
6  <meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
7
8  {if isset($meta_ref) }
9    {if isset($INFO_AUTHOR)}
10      <meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
11    {/if}
12    {if isset($related_tags)}
13      <meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
14    {/if}
15    {if isset($COMMENT_IMG)}
16      <meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
17    {else}
18      <meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
19    {/if}
20  {/if}
21
22  {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))}
23    <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>
24  {else}
25    <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>
26  {/if}
27 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
28
29  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
30  <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
31
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
38  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
39
40  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
41  <script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
42
43  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/content.css">
44
45  {combine_script id="jquery" path="themes/default/js/jquery.js"}
46  {combine_script id="jquery.ui" path="themes/default/js/ui/jquery.ui.core.js"}
47  {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/jquery.ui.tabs.js"}
48  {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/jquery.ui.dialog.js"}
49
50  {include file='config.js.tpl'}
51
52  {if #manageTips#=='yes'}
53    {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.js" require="jquery"}
54    {combine_script id="gallyjs-ttm" path="themes/gally-default/js/gallyjs-ttm.js" require="jquery"}
55  {/if}
56
57  {if $BODY_ID=='theCategoryPage' or isset($MENUBAR)}
58  {combine_script id="gallyjs-tcp" path="themes/gally-default/js/gallyjs-tcp.js" require="jquery"}
59  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/thumbnails.css">
60  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/menubar.css">
61  {/if}
62
63  {if $BODY_ID=='thePicturePage'}
64  {combine_script id="gallyjs-tpp" path="themes/gally-default/js/gallyjs-tpp.js" require="jquery"}
65  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/picture.css">
66  {/if}
67
68  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
69    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
70    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
71    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
72  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/generic.css">
73  {/if}
74
75{get_combined_css}
76{foreach from=$themes item=theme}
77  {if $theme.load_css}
78{combine_css path="themes/`$theme.id`/css/theme.css" order=-10}
79  {/if}
80  {if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
81{/foreach}
82
83{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
84{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
85
86{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
87
88{if not empty($head_elements)}
89  {foreach from=$head_elements item=elt}{$elt}
90  {/foreach}
91{/if}
92
93{get_combined_scripts load='header'}
94{combine_script id="jquery" load="footer"}
95
96</head>
97
98<body id="{$BODY_ID}">
99<div id="the_page">
100
101{if not empty($header_msgs)}
102<div class="header_msgs">
103  {foreach from=$header_msgs item=elt}
104  <p>{$elt}</p>
105  {/foreach}
106</div>
107{/if}
108
109
110{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
111<div id="theHeader">
112  {$PAGE_BANNER}
113</div>
114<div id="theHeaderAlt" style="display:none;"></div>
115{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
116<div id="theHeader" style="display:none;"></div>
117<div id="theHeaderAlt">
118  {$gally->getAlternateBannerContent()}
119</div>
120{else}
121<div id="theHeader" style="display:none;"></div>
122<div id="theHeaderAlt" style="display:none;"></div>
123{/if}
124
125
126{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
127{if not empty($header_notes)}
128<div class="header_notes">
129  {foreach from=$header_notes item=elt}
130  <p>{$elt}</p>
131    {/foreach}
132</div>
133{/if}
134
135<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.