source: extensions/simple_themes/simple/template/header.tpl @ 13555

Last change on this file since 13555 was 13555, checked in by plg, 12 years ago

import theme Simple version 2.5

  • use media queries to adapt layout for small screens
  • remove arbitrary limit on width: the picture will simply be partially hidden if too wide
  • update password.tpl
  • add MENUBAR on all pages
  • Spelling correction in README
  • update url
  • bugfix for the feature 'open external links in new window' for menubar links
File size: 3.8 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|@strip_tags:false|@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  <title>{$PAGE_TITLE} - {$GALLERY_TITLE}</title>
20  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
21  <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
22  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
23  <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
24  {if isset($first.U_IMG)}
25  <link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}" >
26  {/if}
27  {if isset($previous.U_IMG)}
28  <link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}" >
29  {/if}
30  {if isset($next.U_IMG)}
31  <link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}" >
32  {/if}
33  {if isset($last.U_IMG)}
34  <link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >
35  {/if}
36  {if isset($U_UP)}
37  <link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >
38  {/if}
39
40{get_combined_css}
41{combine_css path="themes/simple/content.css" order="-10"}
42{foreach from=$themes item=theme}
43{if $theme.load_css}
44{combine_css path="themes/`$theme.id`/theme.css" order=-10}
45{/if}
46{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
47{/foreach}
48
49  <link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}themes/simple/print.css">
50
51  {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
52  {if not empty($page_refresh)}
53  <meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">
54  {/if}
55  {if isset($U_FEED)}
56  <link rel="alternate" type="application/rss+xml" title="{'Image only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}">
57  <link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed (images, comments)'|@translate}" href="{$U_FEED}">
58  {/if}
59
60  {get_combined_scripts load='header'}
61  {combine_script id='jquery' path='themes/default/js/jquery.min.js'}
62  {combine_script id='jquery.cookie' path='themes/simple/js/jquery.cookie.min.js'}
63  {combine_script id='rating' path='themes/default/js/rating.js'}
64  {combine_script id='core.scripts' path='themes/default/js/scripts.js'}
65  {combine_script id='simple.scripts' path='themes/simple/js/scripts.js'}
66
67  {if not empty($head_elements)}
68    {foreach from=$head_elements item=elt}{$elt}
69    {/foreach}
70  {/if}
71  <script type="text/javascript">
72    document.documentElement.className = 'js';
73  </script>
74</head>
75<body id="{$BODY_ID}">
76<div id="the_page">
77  {if not empty($header_msgs)}
78  <div class="header_msgs">
79    {foreach from=$header_msgs item=elt}
80    <p>{$elt}</p>
81    {/foreach}
82  </div>
83  {/if}
84  <div id="theHeader">{$PAGE_BANNER|@regex_replace:'#<h1>(.*?)</h1>#is':"<h1><a href=\"$U_HOME\">\\1</a></h1>"}</div>
85  <!--  <div id="theHeader">{$PAGE_BANNER}</div>-->
86  {if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
87  {if not empty($header_notes)}
88  <div class="header_notes">
89    {foreach from=$header_notes item=elt}
90    <p>{$elt}</p>
91    {/foreach}
92  </div>
93  {/if}
Note: See TracBrowser for help on using the repository browser.