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

Last change on this file since 11024 was 11024, checked in by grum, 13 years ago

fix bug:2306 - Some translation keys are not correct

  • Property svn:executable set to *
File size: 5.8 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|@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
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.min.js"}
46  {combine_script id="jquery.ui" path="themes/default/js/ui/minified/jquery.ui.core.min.js"}
47  {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/minified/jquery.ui.tabs.min.js"}
48  {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/minified/jquery.ui.dialog.min.js"}
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'])."/".PWG_LOCAL_DIR."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  {if #manageTips#=='yes'}
81    {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.min.js" require="jquery"}
82    {combine_script id="gallyjs-ttm" path="themes/gally-default/js/gallyjs-ttm.min.js" require="jquery"}
83  {/if}
84
85  {if $BODY_ID=='theCategoryPage'}
86  {combine_script id="gallyjs-tcp" path="themes/gally-default/js/gallyjs-tcp.min.js" require="jquery"}
87  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/thumbnails.css">
88  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/menubar.css">
89  {/if}
90
91  {if $BODY_ID=='thePicturePage'}
92  {combine_script id="gallyjs-tpp" path="themes/gally-default/js/gallyjs-tpp.js" require="jquery"}
93  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/picture.css">
94  {/if}
95
96  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
97    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
98    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
99    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
100  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/generic.css">
101  {/if}
102
103{get_combined_css}
104{foreach from=$themes item=theme}
105  {if $theme.load_css}
106{combine_css path="themes/`$theme.id`/css/theme.css" order=-10}
107  {/if}
108  {if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
109{/foreach}
110
111{if not empty($head_elements)}
112  {foreach from=$head_elements item=elt}{$elt}
113  {/foreach}
114{/if}
115
116{get_combined_scripts load='header'}
117</head>
118
119<body id="{$BODY_ID}">
120<div id="the_page">
121
122{if not empty($header_msgs)}
123<div class="header_msgs">
124  {foreach from=$header_msgs item=elt}
125  <p>{$elt}</p>
126  {/foreach}
127</div>
128{/if}
129
130
131{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
132<div id="theHeader">
133  {$PAGE_BANNER}
134</div>
135<div id="theHeaderAlt" style="display:none;"></div>
136{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
137<div id="theHeader" style="display:none;"></div>
138<div id="theHeaderAlt">
139  {$alternateBannerContent}
140</div>
141{else}
142<div id="theHeader" style="display:none;"></div>
143<div id="theHeaderAlt" style="display:none;"></div>
144{/if}
145
146
147{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
148{if not empty($header_notes)}
149<div class="header_notes">
150  {foreach from=$header_notes item=elt}
151  <p>{$elt}</p>
152    {/foreach}
153</div>
154{/if}
155
156<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.