Changeset 3617


Ignore:
Timestamp:
07/17/09 10:54:44 (11 years ago)
Author:
flop25
Message:

add version check
correct some css

Location:
extensions/floOs
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOs/default-colors.css

    r3334 r3617  
    1 /* $Id: default-colors.css 2352 2008-05-20 00:27:26Z patdenice $ */ 
    2  
    31/* others */ 
    42 
  • extensions/floOs/default-layout.css

    r3334 r3617  
    1 /* $Id: default-layout.css 2396 2008-06-23 23:40:55Z rvelices $ */ 
    2 @import "admin/default-layout.css"; 
    31 
    42BODY { 
  • extensions/floOs/header.tpl

    r3334 r3617  
    1 {* $Id: header.tpl 2381 2008-06-01 19:19:46Z vdigital $ *} 
    2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
    3 "http://www.w3.org/TR/html4/strict.dtd"> 
    4 <html lang="{$LANG}" dir="{$DIR}"> 
     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}"> 
    54<head> 
    65<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"> 
    76<meta name="generator" content="Piwigo (aka PWG), see piwigo.org"> 
    8 <title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title> 
     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} 
    924<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> 
    1025 
     
    2338        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css"> 
    2439<![endif]--> 
    25 <!--[if gt IE 6]> 
     40<!--[if IE 7]> 
    2641        <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css"> 
    2742<![endif]--> 
     
    3045<!--> <![endif]--> 
    3146<link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css"> 
    32 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/default-colors.css"> 
    3347<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> 
    3448{$themeconf.local_head} 
     
    5064<![endif]--> 
    5165 
    52  
    5366{if not empty($head_elements)} 
    54         {foreach from=$head_elements item=elt}{$elt}{/foreach} 
     67        {foreach from=$head_elements item=elt}{$elt} 
     68        {/foreach} 
    5569{/if} 
    5670 
     
    5973<body id="{$BODY_ID}"> 
    6074<div id="the_page"> 
     75{php} 
     76if (is_admin() and !(pwg_get_session_var('floOS_array_version')) and !(pwg_get_session_var('floOS_checked_version')) ) 
     77{ 
     78        global $template, $page; 
     79        $header_msgs = array(); 
     80        $name_is_nutd = array(); 
     81        include_once(PHPWG_ROOT_PATH.'template/floOS/tools/version.conf.php'); 
     82        include_once(PHPWG_ROOT_PATH.'template/floOS/tools/floOS.class.php'); 
     83        load_language('template.lang', PHPWG_ROOT_PATH.'template/floOS/tools/'); 
     84        $floOS = new floOS(); 
     85        if( $floOS->is_not_up_to_date($floOS_conf['version'], '135') ) 
     86        { 
     87                $template->append('header_msgs', l10n('floOS_update_needed')); 
     88                $name_is_nutd['floOS']=$floOS_conf['version']; 
     89        } 
     90        $floOS->theme_version_search(PHPWG_ROOT_PATH.'template/floOS/theme'); 
     91        $name_is_nutd= $name_is_nutd + $floOS->is_nutd; 
     92        pwg_set_session_var('floOS_array_version',$name_is_nutd); 
     93        pwg_set_session_var('floOS_checked_version', true); 
     94} 
     95else if (is_admin() and  pwg_get_session_var('floOS_array_version') ) 
     96{ 
    6197 
     98        global $template; 
     99        $header_msgs = array(); 
     100        include_once(PHPWG_ROOT_PATH.'template/floOS/tools/floOS.class.php'); 
     101        load_language('template.lang', PHPWG_ROOT_PATH.'template/floOS/tools/'); 
     102        $floOS = new floOS(); 
     103        $floOS->display(pwg_get_session_var('floOS_array_version')); 
     104} 
     105        //pwg_unset_session_var('floOS_checked_version'); 
     106{/php} 
     107{$erreur} 
    62108{if not empty($header_msgs)} 
    63109<div class="header_msgs"> 
     
    68114{/if} 
    69115 
    70 {if not empty($PAGE_BANNER) or isset($pwgmenu) or not empty($header_notes)} 
    71 <div id="theHeader"> 
    72 {$PAGE_BANNER} 
    73 {if isset($pwgmenu)} 
    74 <ul class="pwgmenu"> 
    75   <li><a href="{$pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'WIKI / DOC'|@translate}</span></a></li> 
    76   <li><a href="{$pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'FORUM'|@translate}</span></a></li> 
    77 </ul>    
    78 {/if} 
     116 
     117<div id="theHeader">{$PAGE_BANNER}</div> 
     118{if isset($theSwiftHeader)}{$theSwiftHeader}{/if} 
    79119{if not empty($header_notes)} 
    80120<div class="header_notes"> 
     
    84124</div> 
    85125{/if} 
    86 </div> 
    87 {/if} 
Note: See TracChangeset for help on using the changeset viewer.