source: extensions/floPure/header.tpl @ 3586

Last change on this file since 3586 was 3586, checked in by flop25, 15 years ago

version acceptable : with junk code

File size: 5.9 KB
Line 
1{* $Id: header.tpl $ *}
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{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}template-common/favicon.ico">
25
26<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
27<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" >
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">
37<!--[if lt IE 7]>
38        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
39<![endif]-->
40<!--[if IE 7]>
41        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
42<![endif]-->
43<!--[if !IE]> <-->
44        <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
45<!--> <![endif]-->
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>
54<!--[if lt IE 7]>
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>
64<![endif]-->
65
66{if not empty($head_elements)}
67        {foreach from=$head_elements item=elt}{$elt}
68        {/foreach}
69{/if}
70
71</head>
72
73<body id="{$BODY_ID}">
74<div id="the_page">
75{php}
76if (is_admin() and !(pwg_get_session_var('flopure_array_version')) and !(pwg_get_session_var('flopure_checked_version')) )
77{
78        global $template, $page;
79        $header_msgs = array();
80        $name_is_nutd = array();
81        include_once(PHPWG_ROOT_PATH.'template/floPure/tools/version.conf.php');
82        include_once(PHPWG_ROOT_PATH.'template/floPure/tools/floPure.class.php');
83        load_language('template.lang', PHPWG_ROOT_PATH.'template/floPure/tools/');
84        $floPure = new floPure();
85        if( $floPure->is_not_up_to_date($floPure_conf['version'], '135') )
86        {
87                $template->append('header_msgs', l10n('floPure_update_needed'));
88                $name_is_nutd['floPure']=$floPure_conf['version'];
89                //$name_is_nutd['version'][]=$floPure_conf['version'];
90        }
91        $floPure->theme_version_search(PHPWG_ROOT_PATH.'template/floPure/theme');
92        $name_is_nutd= $name_is_nutd + $floPure->is_nutd;
93        pwg_set_session_var('flopure_array_version',$name_is_nutd);
94        pwg_set_session_var('flopure_checked_version', true);
95        /*foreach($name_is_nutd as $cle => $val )
96        {
97        $template->append('test_a', array( 'A'=>$cle,'B'=>$val, ) );
98        }*/
99
100       
101}
102else if (is_admin() and  pwg_get_session_var('flopure_array_version') )
103{
104
105        global $template;
106        $header_msgs = array();
107        include_once(PHPWG_ROOT_PATH.'template/floPure/tools/floPure.class.php');
108        load_language('template.lang', PHPWG_ROOT_PATH.'template/floPure/tools/');
109        $floPure = new floPure();
110        $floPure->display(pwg_get_session_var('flopure_array_version'));
111        /*foreach(pwg_get_session_var('flopure_checked_version') as $cle => $val )
112        {
113        $template->append('test_a', array( 'A'=>$cle,'B'=>$val, ) );
114        }*/
115        $template->append('test_a', array( 'A'=>'a','B'=>'a', ) );
116}
117        //pwg_unset_session_var('flopure_checked_version');
118{/php}
119{$erreur}
120{$test}
121{$URL}
122        {foreach from=$test_a item=test_b}
123        {$test_b.A} / {$test_b.B}<br />
124        {/foreach}
125
126{if not empty($header_msgs)}
127<div class="header_msgs">
128        {foreach from=$header_msgs item=elt}
129        {$elt}<br />
130        {/foreach}
131</div>
132{/if}
133
134<div id="theHeader">{$PAGE_BANNER}</div>
135{if isset($theSwiftHeader)}{$theSwiftHeader}{/if}
136{if not empty($header_notes)}
137<div class="header_notes">
138        {foreach from=$header_notes item=elt}
139        <p>{$elt}</p>
140        {/foreach}
141</div>
142{/if}
Note: See TracBrowser for help on using the repository browser.