source: branches/2.0/template/yoga/header.tpl @ 3046

Last change on this file since 3046 was 3040, checked in by vdigital, 15 years ago
  • $confmeta_ref is a new configuration parameter (Default true)

Meta tags for description, author, and keywords are generated,
except if meta robots "noindex" is forced (with some pages like search, recent cats, etc.).

In addition, $confmeta_ref = false is forcing "noindex, nofollow".

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1{* $Id: header.tpl 3040 2009-01-03 21:03:46Z vdigital $ *}
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
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{if isset($meta_ref) }
8{if isset($INFO_AUTHOR)}
9<meta name="author" content="{$INFO_AUTHOR|replace:'"':' '}">
10{/if}
11{if isset($related_tags)}
12<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
13{/if}
14{if isset($COMMENT_IMG)}
15<meta name="description" content="{$COMMENT_IMG|strip_tags:false|replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
16{else}
17<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
18{/if}
19{/if}
20
21<title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title>
22<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
23
24<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
25<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
26{if isset($first.U_IMG)   }<link rel="first" title="{'first_page'|@translate}" href="{$first.U_IMG}" >{/if}
27{if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if}
28{if isset($next.U_IMG)    }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if}
29{if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if}
30{if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if}
31
32<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css">
33{* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
34<link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css">
35<!--[if lt IE 7]>
36        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
37<![endif]-->
38<!--[if gt IE 6]>
39        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
40<![endif]-->
41<!--[if !IE]> <-->
42        <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
43<!--> <![endif]-->
44<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css">
45<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
46{$themeconf.local_head}
47{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
48
49{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
50
51<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
52<!--[if lt IE 7]>
53<style>
54        {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
55        BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
56        A IMG, .button, .icon {ldelim}
57                behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
58        }
59        FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
60</style>
61<script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
62<![endif]-->
63
64{if not empty($head_elements)}
65        {foreach from=$head_elements item=elt}{$elt}
66        {/foreach}
67{/if}
68
69</head>
70
71<body id="{$BODY_ID}">
72<div id="the_page">
73
74{if not empty($header_msgs)}
75<div class="header_msgs">
76        {foreach from=$header_msgs item=elt}
77        {$elt}<br />
78        {/foreach}
79</div>
80{/if}
81
82<div id="theHeader">{$PAGE_BANNER}</div>
83{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
84{if not empty($header_notes)}
85<div class="header_notes">
86        {foreach from=$header_notes item=elt}
87        <p>{$elt}</p>
88        {/foreach}
89</div>
90{/if}
Note: See TracBrowser for help on using the repository browser.