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

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

script.js file was not loaded

  • 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  {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  <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  {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
46  {known_script id="jquery.ui" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.core.packed.js"}
47  {known_script id="jquery.ui.tabs" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.tabs.packed.js"}
48  {known_script id="jquery.ui.dialog" src=$ROOT_URL|cat:"themes/default/js/ui/packed/ui.dialog.packed.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'])."/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  {if #manageTips#=='yes'}
81    {known_script id="gpc.simpleTip" src=$ROOT_URL|@cat:"themes/gally-default/js/simpleTip.packed.js" }
82    {known_script id="gallyjs-ttm" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-ttm.packed.js"}
83  {/if}
84
85  {if $BODY_ID=='theCategoryPage'}
86  {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tcp.packed.js"}
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  {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:"themes/gally-default/js/gallyjs-tpp.packed.js"}
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  {foreach from=$themes item=theme}
104    <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/css/theme.css">
105    {if isset($theme.local_head)}{include file=$theme.local_head}{/if}
106  {/foreach}
107
108{if not empty($head_elements)}
109  {foreach from=$head_elements item=elt}{$elt}
110  {/foreach}
111{/if}
112
113</head>
114
115<body id="{$BODY_ID}">
116<div id="the_page">
117
118{if not empty($header_msgs)}
119<div class="header_msgs">
120  {foreach from=$header_msgs item=elt}
121  <p>{$elt}</p>
122  {/foreach}
123</div>
124{/if}
125
126
127{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
128<div id="theHeader">
129  {$PAGE_BANNER}
130</div>
131<div id="theHeaderAlt" style="display:none;"></div>
132{elseif $BODY_ID=='thePicturePage' and #displayBanner# == "alternate"}
133<div id="theHeader" style="display:none;"></div>
134<div id="theHeaderAlt">
135  {$alternateBannerContent}
136</div>
137{else}
138<div id="theHeader" style="display:none;"></div>
139<div id="theHeaderAlt" style="display:none;"></div>
140{/if}
141
142
143{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
144{if not empty($header_notes)}
145<div class="header_notes">
146  {foreach from=$header_notes item=elt}
147  <p>{$elt}</p>
148    {/foreach}
149</div>
150{/if}
151
152<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.