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

Last change on this file since 7989 was 7989, checked in by Zaphod, 13 years ago

[extension] stripped - first release

File size: 5.0 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<!--[if lt IE 7]>
97<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
98<![endif]-->
99
100
101  {if not empty($head_elements)}
102    {foreach from=$head_elements item=elt}{$elt}
103    {/foreach}
104  {/if}
105  <script type="text/javascript">
106    document.documentElement.className = 'js';
107  </script>
108</head>
109<body id="{$BODY_ID}">
110<div id="the_page">
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  <div id="theHeader">{$PAGE_BANNER}</div>
119  <!--  <div id="theHeader">{$PAGE_BANNER}</div>-->
120  {if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
121  {if not empty($header_notes)}
122  <div class="header_notes">
123    {foreach from=$header_notes item=elt}
124    <p>{$elt}</p>
125    {/foreach}
126  </div>
127  {/if}
Note: See TracBrowser for help on using the repository browser.