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

Last change on this file since 3121 was 3121, checked in by rvelices, 15 years ago

merge 3120 from trunk
optimizations (php only)

  • removed unnecessary call to array_unique in get_image_ids_for_tags
  • put back in smarty exec time counting (debug mode) for each included template
  • prefix some smarty modifiers with @ in some templates
  • do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
RevLine 
[2240]1{* $Id: header.tpl 3121 2009-02-04 02:33:50Z rvelices $ *}
[3040]2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
[2651]3<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
[859]4<head>
[2240]5<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
[2342]6<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
[3040]7{if isset($meta_ref) }
8{if isset($INFO_AUTHOR)}
[3121]9<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
[3040]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)}
[3121]15<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
[3040]16{else}
17<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
18{/if}
19{/if}
20
[3090]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}
[2240]24<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
25
26<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
[2289]27<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
[2240]28{if isset($first.U_IMG)   }<link rel="first" title="{'first_page'|@translate}" href="{$first.U_IMG}" >{/if}
29{if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if}
30{if isset($next.U_IMG)    }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if}
31{if isset($last.U_IMG)    }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if}
32{if isset($U_UP)          }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if}
33
34<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css">
35{* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
36<link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css">
[1181]37<!--[if lt IE 7]>
[2240]38        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
[1181]39<![endif]-->
[1707]40<!--[if gt IE 6]>
[2240]41        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
[1707]42<![endif]-->
[1832]43<!--[if !IE]> <-->
[2240]44        <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
[1832]45<!--> <![endif]-->
[2240]46<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css">
47<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
48{$themeconf.local_head}
49{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
50
51{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
52
53<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
[1181]54<!--[if lt IE 7]>
[2240]55<style>
56        {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
57        BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
58        A IMG, .button, .icon {ldelim}
59                behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
60        }
61        FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
62</style>
63<script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
[905]64<![endif]-->
[2240]65
66{if not empty($head_elements)}
[3040]67        {foreach from=$head_elements item=elt}{$elt}
68        {/foreach}
[2240]69{/if}
70
[859]71</head>
72
[2240]73<body id="{$BODY_ID}">
[859]74<div id="the_page">
[2240]75
76{if not empty($header_msgs)}
[1414]77<div class="header_msgs">
[2240]78        {foreach from=$header_msgs item=elt}
[2541]79        {$elt}<br />
[2240]80        {/foreach}
[1414]81</div>
[2240]82{/if}
83
84<div id="theHeader">{$PAGE_BANNER}</div>
[2487]85{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
[2240]86{if not empty($header_notes)}
[1677]87<div class="header_notes">
[2240]88        {foreach from=$header_notes item=elt}
89        <p>{$elt}</p>
90        {/foreach}
[1677]91</div>
[2240]92{/if}
Note: See TracBrowser for help on using the repository browser.