source: extensions/stripped/template/header.tpl @ 8817

Last change on this file since 8817 was 8112, checked in by Zaphod, 14 years ago

Fix for IE6 (vertical alignment for thumbnails + recent pictures)

File size: 4.9 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
3<head>
4  <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
5  <meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
6{if isset($meta_ref) }
7{if isset($INFO_AUTHOR)}
8<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
9{/if}
10{if isset($related_tags)}
11<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
12{/if}
13{if isset($COMMENT_IMG)}
14<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
15{else}
16<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
17{/if}
18{/if}
19
20  {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))}
21        <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>
22{else}
23        <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>
24{/if}
25 
26  <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
27 
28  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
29  <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
30  {if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
31  {if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
32  {if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
33  {if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
34  {if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
35
36  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
37 
38  {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
39
40  {known_script id="jquery" src=$ROOT_URL|@cat:"themes/stripped/js/jquery-1.4.2.min.js"}
41  {known_script id="jquery-effects-core" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/effects.core.min.js"}
42  {known_script id="jquery-effects-fold" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/effects.fold.min.js"}
43  {known_script id="scripts" src=$ROOT_URL|cat:"themes/default/js/scripts.js"}
44
45        {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'}
46                {php}
47                        $home=$PHPWG_ROOT_PATH;
48                        $themes=$this->get_template_vars('themes');
49                        foreach($themes as $theme)
50                        {
51                                $dir=$home."/themes/".$theme['id']."/conf/";
52                                $dir=PHPWG_ROOT_PATH.'/themes/'.$theme['id'].'/conf/';
53                                $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/";
54                                $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/local/themes/".$theme['id']."/conf/";
55                                $this->assign("default_conf", $dir."default.conf");
56                                if(file_exists($dirlocal."local.conf"))
57                                {
58                                  $this->assign("local_conf", $dirlocal."local.conf");
59                                }
60                                else
61                                {
62                                  $this->assign("local_conf", "");
63                                }
64                        }
65                {/php}
66                {config_load file=$default_conf}
67                {if $local_conf!=""}
68                        {config_load file=$local_conf}
69                {/if}
70                {include file='config.js.tpl'}
71        {/if}
72
73        {if ($BODY_ID=='theCategoryPage')}
74                {known_script id="scripts-tpp" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tcp.js"}
75        {/if}
76
77        {if $BODY_ID=='thePicturePage'}
78                {known_script id="scripts-tpp" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tpp.js"}
79        {/if}
80
81        {if ($BODY_ID=='theMapListPage')}
82                {known_script id="scripts-tml" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tml.js"}
83        {/if}
84
85  {foreach from=$themes item=theme}
86  {if $theme.load_css}
87  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
88  {/if}
89  {if !empty($theme.local_head)}{include file=$theme.local_head}{/if}
90  {/foreach}
91
92  {if isset($U_FEED)}
93  <link rel="alternate" type="application/rss+xml" title="{'Image only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}">
94  <link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed (images, comments)'|@translate}" href="{$U_FEED}">
95  {/if}
96
97  {if not empty($head_elements)}
98    {foreach from=$head_elements item=elt}{$elt}
99    {/foreach}
100  {/if}
101  <script type="text/javascript">
102    document.documentElement.className = 'js';
103  </script>
104</head>
105<body id="{$BODY_ID}">
106<div id="the_page">
107  {if not empty($header_msgs)}
108  <div class="header_msgs">
109    {foreach from=$header_msgs item=elt}
110    <p>{$elt}</p>
111    {/foreach}
112  </div>
113  {/if}
114  <div id="theHeader">{$PAGE_BANNER}</div>
115  <!--  <div id="theHeader">{$PAGE_BANNER}</div>-->
116  {if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
117  {if not empty($header_notes)}
118  <div class="header_notes">
119    {foreach from=$header_notes item=elt}
120    <p>{$elt}</p>
121    {/foreach}
122  </div>
123  {/if}
Note: See TracBrowser for help on using the repository browser.