source: extensions/gally/piwigo-2.0/header.tpl @ 14182

Last change on this file since 14182 was 4489, checked in by grum, 15 years ago

[Template:Gally] feature 1096, feature 1097, feature 1098, feature 1099, feature 1313
And some other improvments...

  • Property svn:executable set to *
File size: 5.5 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_page'|@translate}" href="{$first.U_IMG}" >{/if}
33  {if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if}
34  {if isset($next.U_IMG)    }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if}
35  {if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if}
36  {if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if}
37
38  {$themeconf.local_head}
39  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
40
41  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
42
43  <script type="text/javascript" src="{$ROOT_URL}template-common/lib/jquery.packed.js"></script>
44  <script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
45
46  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/content.css">
47
48  {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"}
49  {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
50  {known_script id="jquery.ui.tabs" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.tabs.packed.js"}
51  {known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.dialog.packed.js"}
52
53  {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'}
54
55    {php}
56      $themeconf=$this->get_template_vars('themeconf');
57      $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/".$themeconf['template_dir']."/theme/".$themeconf['theme']."/";
58      $this->assign("default_conf", $dir."default.conf");
59      if(file_exists($dir."local.conf"))
60      {
61        $this->assign("local_conf", $dir."local.conf");
62      }
63      else
64      {
65        $this->assign("local_conf", "");
66      }
67    {/php}
68
69    {config_load file=$default_conf}
70    {if $local_conf!=""}
71      {config_load file=$local_conf}
72    {/if}
73
74    {include file='config.js.tpl'}
75  {/if}
76
77
78
79  {if $BODY_ID=='theCategoryPage'}
80  {known_script id="gallyjs-tcp" src=$ROOT_URL|cat:$themeconf.template_dir|cat:"/gallyjs-tcp.js"}
81  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/thumbnails.css">
82  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/menubar.css">
83  {/if}
84
85  {if $BODY_ID=='thePicturePage'}
86  {known_script id="gallyjs-tpp" src=$ROOT_URL|cat:$themeconf.template_dir|cat:"/gallyjs-tpp.js"}
87  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/picture.css">
88  {/if}
89
90  {if $BODY_ID=='theProfilePage' or $BODY_ID=='theRegisterPage' or $BODY_ID=='theIdentificationPage'
91    or $BODY_ID=='thePasswordPage' or $BODY_ID=='theTagsPage' or $BODY_ID=='theSearchPage'
92    or $BODY_ID=='theCommentsPage' or $BODY_ID=='theAboutPage' or $BODY_ID=='theNotificationPage'
93    or $BODY_ID=='thePopuphelpPage' or $BODY_ID=='theUploadPage'}
94  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/generic.css">
95  {/if}
96
97  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
98  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/local-layout.css">
99  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/local-layout.css">
100
101{if not empty($head_elements)}
102  {foreach from=$head_elements item=elt}{$elt}
103  {/foreach}
104{/if}
105
106</head>
107
108<body id="{$BODY_ID}">
109<div id="the_page">
110
111{if not empty($header_msgs)}
112<div class="header_msgs">
113  {foreach from=$header_msgs item=elt}
114  <p>{$elt}</p>
115  {/foreach}
116</div>
117{/if}
118
119
120{if ($BODY_ID=='thePicturePage' and #displayBanner# == "yes") or $BODY_ID!='thePicturePage'}
121<div id="theHeader">
122  {$PAGE_BANNER}
123</div>
124{else}
125<div id="theHeader" style="display:none;"></div>
126{/if}
127
128
129{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
130{if not empty($header_notes)}
131<div class="header_notes">
132  {foreach from=$header_notes item=elt}
133  <p>{$elt}</p>
134    {/foreach}
135</div>
136{/if}
137
138<!-- **GBL** <HEADER< -->
Note: See TracBrowser for help on using the repository browser.