source: branches/2.1/themes/default/template/header.tpl @ 6454

Last change on this file since 6454 was 6454, checked in by plg, 14 years ago

feature 1712: ability to add a CSS class on body

  • Property svn:eol-style set to LF
File size: 2.9 KB
RevLine 
[3041]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
[2651]2<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
[859]3<head>
[2240]4<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
[2342]5<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
[3041]6{if isset($meta_ref) }
7{if isset($INFO_AUTHOR)}
[3120]8<meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
[3041]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)}
[3120]14<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
[3041]15{else}
16<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
17{/if}
18{/if}
19
[5292]20{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))}
[3095]21<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
22<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
[5123]23<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
[2240]24
[5021]25<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
[2289]26<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
[5021]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}
[2240]32
[5123]33{foreach from=$themes item=theme}
[5991]34{if $theme.load_css}
[5454]35<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
[5991]36{/if}
[5123]37{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
38{/foreach}
39
[2240]40{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
41
42{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
43
[5129]44<script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
[1181]45<!--[if lt IE 7]>
[5129]46<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
[905]47<![endif]-->
[2240]48
49{if not empty($head_elements)}
[3041]50        {foreach from=$head_elements item=elt}{$elt}
51        {/foreach}
[2240]52{/if}
53
[859]54</head>
55
[6454]56<body id="{$BODY_ID}" {if isset($BODY_CLASS)}class="{$BODY_CLASS}"{/if}>
[859]57<div id="the_page">
[2240]58
59{if not empty($header_msgs)}
[1414]60<div class="header_msgs">
[2240]61        {foreach from=$header_msgs item=elt}
[3185]62        {$elt}<br>
[2240]63        {/foreach}
[1414]64</div>
[2240]65{/if}
66
67<div id="theHeader">{$PAGE_BANNER}</div>
[2487]68{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
[2240]69{if not empty($header_notes)}
[1677]70<div class="header_notes">
[2240]71        {foreach from=$header_notes item=elt}
72        <p>{$elt}</p>
[6004]73        {/foreach}
[1677]74</div>
[2240]75{/if}
Note: See TracBrowser for help on using the repository browser.