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

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

Release 1.4.0
Rewrite some JS
fix bug bug:1983

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