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

Last change on this file since 6700 was 6700, checked in by grum, 14 years ago

Version 1.3.1, fix bug:1654, bug:1767

  • Property svn:executable set to *
File size: 5.8 KB
RevLine 
[6109]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  <!-- <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/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
42  <script type="text/javascript" src="{$ROOT_URL}themes/default/js/jquery.packed.js"></script>
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  {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
48  {known_script id="jquery.ui" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.core.packed.js"}
49  {known_script id="jquery.ui.tabs" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.tabs.packed.js"}
50  {known_script id="jquery.ui.dialog" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.dialog.packed.js"}
51
52  {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'}
53
54    {php}
55      $themes=$this->get_template_vars('themes');
56      foreach($themes as $theme)
57      {
58        $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/";
[6700]59        $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/local/themes/".$theme['id']."/conf/";
[6109]60        $this->assign("default_conf", $dir."default.conf");
[6700]61        if(file_exists($dirlocal."local.conf"))
[6109]62        {
[6700]63          $this->assign("local_conf", $dirlocal."local.conf");
[6109]64        }
65        else
66        {
67          $this->assign("local_conf", "");
68        }
69      }
70    {/php}
71
72    {config_load file=$default_conf}
73    {if $local_conf!=""}
74      {config_load file=$local_conf}
75    {/if}
76
77    {php}
78        $this->assign("alternateBannerContent", html_entity_decode($this->get_config_vars('alternateBannerContent')));
79    {/php}
80
81    {include file='config.js.tpl'}
82  {/if}
83
84
85
86  {if $BODY_ID=='theCategoryPage'}
87  {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tcp.js"}
88  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/thumbnails.css">
89  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/menubar.css">
90  {/if}
91
92  {if $BODY_ID=='thePicturePage'}
93  {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tpp.js"}
94  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/picture.css">
95  {/if}
96
97  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
98    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
99    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
100    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
101  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/generic.css">
102  {/if}
103
104  {foreach from=$themes item=theme}
105    <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/css/theme.css">
106    {if isset($theme.local_head)}{include file=$theme.local_head}{/if}
107  {/foreach}
108
109{if not empty($head_elements)}
110  {foreach from=$head_elements item=elt}{$elt}
111  {/foreach}
112{/if}
113
114</head>
115
116<body id="{$BODY_ID}">
117<div id="the_page">
118
119{if not empty($header_msgs)}
120<div class="header_msgs">
121  {foreach from=$header_msgs item=elt}
122  <p>{$elt}</p>
123  {/foreach}
124</div>
125{/if}
126
127
128{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
129<div id="theHeader">
130  {$PAGE_BANNER}
131</div>
132<div id="theHeaderAlt" style="display:none;"></div>
133{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
134<div id="theHeader" style="display:none;"></div>
135<div id="theHeaderAlt">
136  {$alternateBannerContent}
137</div>
138{else}
139<div id="theHeader" style="display:none;"></div>
140<div id="theHeaderAlt" style="display:none;"></div>
141{/if}
142
143
144{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
145{if not empty($header_notes)}
146<div class="header_notes">
147  {foreach from=$header_notes item=elt}
148  <p>{$elt}</p>
149    {/foreach}
150</div>
151{/if}
152
153<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.