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

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

feature:2664 - compatibility with Piwigo 2.4
fix dependencies

  • Property svn:executable set to *
File size: 5.9 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  {combine_script id="jquery" path="themes/default/js/jquery.js" load='header'}
9  {combine_script id="jquery.ui" path="themes/default/js/ui/jquery.ui.core.js" require='jquery' load='header'}
10  {combine_script id="jquery.ui.widget" path="themes/default/js/ui/jquery.ui.widget.js" require='jquery.ui' load='header'}
11  {combine_script id="jquery.ui.mouse" path="themes/default/js/ui/jquery.ui.mouse.js" require='jquery.ui.widget' load='header'}
12  {combine_script id="jquery.ui.position" path="themes/default/js/ui/jquery.ui.position.js" require='jquery.ui.widget' load='header'}
13  {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/jquery.ui.tabs.js" require='jquery.ui' load='header'}
14  {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/jquery.ui.dialog.js" require='jquery.ui' load='header'}
15
16
17  {if isset($meta_ref) }
18    {if isset($INFO_AUTHOR)}
19      <meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
20    {/if}
21    {if isset($related_tags)}
22      <meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
23    {/if}
24    {if isset($COMMENT_IMG)}
25      <meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
26    {else}
27      <meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
28    {/if}
29  {/if}
30
31  {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))}
32    <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>
33  {else}
34    <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>
35  {/if}
36 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
37
38  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
39  <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
40
41  {if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
42  {if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
43  {if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
44  {if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
45  {if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
46
47  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
48
49  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
50  <script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
51
52  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/content.css">
53
54  {include file='config.js.tpl'}
55
56  {if #manageTips#=='yes'}
57    {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.js" require="jquery"}
58    {combine_script id="gallyjs-ttm" path="themes/gally-default/js/gallyjs-ttm.js" require="jquery"}
59  {/if}
60
61  {if $BODY_ID=='theCategoryPage' or isset($MENUBAR)}
62  {combine_script id="gallyjs-tcp" path="themes/gally-default/js/gallyjs-tcp.js" require="jquery"}
63  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/thumbnails.css">
64  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/menubar.css">
65  {/if}
66
67  {if $BODY_ID=='thePicturePage'}
68  {combine_script id="gallyjs-tpp" path="themes/gally-default/js/gallyjs-tpp.js" require="jquery"}
69  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/picture.css">
70  {/if}
71
72  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
73    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
74    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
75    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
76  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/generic.css">
77  {/if}
78
79{get_combined_css}
80{foreach from=$themes item=theme}
81  {if $theme.load_css}
82{combine_css path="themes/`$theme.id`/css/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{if not empty($head_elements)}
93  {foreach from=$head_elements item=elt}{$elt}
94  {/foreach}
95{/if}
96
97{get_combined_scripts load='header'}
98
99</head>
100
101<body id="{$BODY_ID}">
102<div id="the_page">
103
104{if not empty($header_msgs)}
105<div class="header_msgs">
106  {foreach from=$header_msgs item=elt}
107  <p>{$elt}</p>
108  {/foreach}
109</div>
110{/if}
111
112
113{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
114<div id="theHeader">
115  {$PAGE_BANNER}
116</div>
117<div id="theHeaderAlt" style="display:none;"></div>
118{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
119<div id="theHeader" style="display:none;"></div>
120<div id="theHeaderAlt">
121  {$gally->getAlternateBannerContent()}
122</div>
123{else}
124<div id="theHeader" style="display:none;"></div>
125<div id="theHeaderAlt" style="display:none;"></div>
126{/if}
127
128
129{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
130{if not empty($header_notes)}
131<div class="header_notes">
132  {foreach from=$header_notes item=elt}
133  <p>{$elt}</p>
134    {/foreach}
135</div>
136{/if}
137
138<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.