source: extensions/sobre/branches/1.4/template/header.tpl @ 8663

Last change on this file since 8663 was 8663, checked in by Gotcha, 10 years ago

Add small code for Google Image (not an optimization !)

File size: 4.2 KB
Line 
1{* $ Id: header.tpl 2010-04-03 Par Gotcha pour son thème "Sobre" $ *}
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|@strip_tags:false|@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{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))}
22<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
23<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
24<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}/themes/sobre/images/favicon.ico">
25<link rel="icon" href="{$ROOT_URL}/themes/sobre/images/favicon.gif" type="image/gif" />
26
27<link rel="alternate" type="application/rss+xml" title="{'Galerie RSS feed'|@translate}" href="./notification.php">
28
29<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
30<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
31{if isset($first.U_IMG)   }<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >{/if}
32{if isset($previous.U_IMG)}<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >{/if}
33{if isset($next.U_IMG)    }<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >{/if}
34{if isset($last.U_IMG)    }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if}
35{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
36
37{foreach from=$themes item=theme}
38{if $theme.load_css}
39<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
40{/if}
41{if !empty($theme.local_head)}{include file=$theme.local_head}{/if}
42{/foreach}
43
44{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
45
46{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
47
48<script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
49<!--[if lt IE 7]>
50<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
51<![endif]-->
52
53{if not empty($head_elements)}
54        {foreach from=$head_elements item=elt}{$elt}
55        {/foreach}
56{/if}
57
58
59<script type="text/javascript" src="themes/sobre/CSS.js"></script>
60<script type="text/javascript">
61<!--
62Name_motor = navigator.product;
63Version_Motor = navigator.productSub;
64
65if ((Name_motor=="Gecko" && Version_Motor>="20100115")
66  || (BrowserDetect.browser=="Firefox" && BrowserDetect.version>=3.5)
67  || (BrowserDetect.browser=="Safari" && BrowserDetect.version>=3.1)
68  || (BrowserDetect.browser=="Opera" && BrowserDetect.version>=10)
69  || (BrowserDetect.browser=="Chrome" && BrowserDetect.version>=4))
70  document.write('<link rel="stylesheet" type="text/css" href="themes/sobre/CSS3.css">');
71// -->
72</script>
73
74{known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
75
76{* Redirect auto from google images. See : http://technet.ameriquebec.net/2009/03/23-241-ne-perdez-pas-votre-trafic-en-provenance-de-google-images.qc *}
77<script language="JavaScript" type="text/javascript">
78if (top.location != self.location) top.location.replace(self.location);
79</script>
80
81
82</head>
83
84<body id="{$BODY_ID}">
85<div id="the_page">
86
87{if not empty($header_msgs)}
88<div class="header_msgs">
89        {foreach from=$header_msgs item=elt}
90        {$elt}<br />
91        {/foreach}
92</div>
93{/if}
94
95<div id="theHeader">{$PAGE_BANNER}</div>
96{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
97{if not empty($header_notes)}
98<div class="header_notes">
99        {foreach from=$header_notes item=elt}
100        <p>{$elt}</p>
101        {/foreach}
102</div>
103{/if}
Note: See TracBrowser for help on using the repository browser.