source: extensions/gally/gally-cuise/template/head_1.tpl @ 10780

Last change on this file since 10780 was 10780, checked in by cljosse, 14 years ago
  • compatible avec la version 2.2
File size: 6.0 KB
Line 
1
2
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4<!-- **GBL** >HEADER> -->
5<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
6<head>
7  <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
8  <meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
9
10  {if isset($meta_ref) }
11    {if isset($INFO_AUTHOR)}
12      <meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
13    {/if}
14    {if isset($related_tags)}
15      <meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
16    {/if}
17    {if isset($COMMENT_IMG)}
18      <meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
19    {else}
20      <meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
21    {/if}
22  {/if}
23
24  {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))}
25    <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>
26  {else}
27    <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>
28  {/if}
29  <!-- <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> -->
30
31  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
32  <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
33
34  {if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
35  {if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
36  {if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
37  {if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
38  {if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
39
40  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
41
42  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
43  <script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
44
45  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/content.css">
46
47
48
49 
50
51  {php}
52    $themes=$this->get_template_vars('themes');
53    foreach($themes as $theme)
54    {
55      $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/";
56      $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/local/themes/".$theme['id']."/conf/";
57      $this->assign("default_conf", $dir."default.conf");
58      if(file_exists($dirlocal."local.conf"))
59      {
60        $this->assign("local_conf", $dirlocal."local.conf");
61      }
62      else
63      {
64        $this->assign("local_conf", "");
65      }
66    }
67  {/php}
68
69  {config_load file=$default_conf}
70  {if $local_conf!=""}
71    {config_load file=$local_conf}
72  {/if}
73
74  {php}
75      $this->assign("alternateBannerContent", html_entity_decode($this->get_config_vars('alternateBannerContent')));
76  {/php}
77
78  {include file='config.js.tpl'}
79
80    {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
81    {known_script id="jquery.ui" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.core.packed.js"}
82    {known_script id="jquery.ui.tabs" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.tabs.packed.js"}
83    {known_script id="jquery.ui.dialog" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.dialog.packed.js"}
84  {if #manageTips#=='yes'}
85    {known_script id="gpc.simpleTip" src=$ROOT_URL|@cat:"themes/gally-default/js/simpleTip.packed.js"}
86    {known_script id="gallyjs-ttm" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-ttm.packed.js"}
87  {/if}
88  {if $BODY_ID=='theCategoryPage'}
89    {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tcp.packed.js"}
90  {/if}
91  {if $BODY_ID=='thePicturePage'}
92    {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tpp.packed.js"} 
93  {/if}
94 
95  {if $BODY_ID=='theCategoryPage'}
96
97  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/thumbnails.css">
98  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/menubar.css">
99  {/if}
100
101  {if $BODY_ID=='thePicturePage'}
102  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/picture.css">
103  {/if}
104
105  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
106    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
107    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
108    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
109  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/generic.css">
110  {/if}
111
112  {foreach from=$themes item=theme}
113    <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/css/theme.css">
114    {if isset($theme.local_head)}{include file=$theme.local_head}{/if}
115  {/foreach}
116
117{if not empty($head_elements)}
118  {foreach from=$head_elements item=elt}{$elt}
119  {/foreach}
120{/if}
121
122</head>
123
124<body id="{$BODY_ID}">
125<div id="the_page">
126
127{if not empty($header_msgs)}
128<div class="header_msgs">
129  {foreach from=$header_msgs item=elt}
130  <p>{$elt}</p>
131  {/foreach}
132</div>
133{/if}
134
135
136{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
137<div id="theHeader">
138  {$PAGE_BANNER}
139</div>
140<div id="theHeaderAlt" style="display:none;"></div>
141{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
142<div id="theHeader" style="display:none;"></div>
143<div id="theHeaderAlt">
144  {$alternateBannerContent}
145</div>
146{else}
147<div id="theHeader" style="display:none;"></div>
148<div id="theHeaderAlt" style="display:none;"></div>
149{/if}
150
151
152{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
153{if not empty($header_notes)}
154<div class="header_notes">
155  {foreach from=$header_notes item=elt}
156  <p>{$elt}</p>
157    {/foreach}
158</div>
159{/if}
160
161<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.