source: trunk/themes/default/template/header.tpl @ 5923

Last change on this file since 5923 was 5923, checked in by rvelices, 14 years ago
  • fix display of thumbnail in IE8 (replaced conditional css includes as it was in version 2.0)
  • remove local_head.tpl for default theme (avoid loading another file on every page hit - put the content of local_head.tpl in header.tpl)
  • Property svn:eol-style set to LF
File size: 3.5 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>{else}
22<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
23<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
24
25<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
26<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
27{if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
28{if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
29{if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
30{if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
31{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
32
33{foreach from=$themes item=theme}
34<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
35{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
36{/foreach}
37{* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
38<link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}themes/default/fix-khtml.css">
39<!--[if lt IE 7]>
40        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/fix-ie5-ie6.css">
41<![endif]-->
42<!--[if IE 7]>
43        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/fix-ie7.css">
44<![endif]-->
45<!--[if !IE]> <-->
46        <link rel="stylesheet" href="{$ROOT_URL}themes/default/not-ie.css" type="text/css">
47<!--> <![endif]-->
48<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}themes/default/print.css">
49
50{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
51
52{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
53
54<script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
55<!--[if lt IE 7]>
56<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
57<![endif]-->
58
59{if not empty($head_elements)}
60        {foreach from=$head_elements item=elt}{$elt}
61        {/foreach}
62{/if}
63
64</head>
65
66<body id="{$BODY_ID}">
67<div id="the_page">
68
69{if not empty($header_msgs)}
70<div class="header_msgs">
71        {foreach from=$header_msgs item=elt}
72        {$elt}<br>
73        {/foreach}
74</div>
75{/if}
76
77<div id="theHeader">{$PAGE_BANNER}</div>
78{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
79{if not empty($header_notes)}
80<div class="header_notes">
81        {foreach from=$header_notes item=elt}
82        <p>{$elt}</p>
83        {/foreach}
84</div>
85{/if}
Note: See TracBrowser for help on using the repository browser.