Ignore:
Timestamp:
Jun 24, 2012, 9:26:25 PM (12 years ago)
Author:
grum
Message:

feature:2664- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-default/template/header.tpl

    r12592 r16016  
    88  {if isset($meta_ref) }
    99    {if isset($INFO_AUTHOR)}
    10       <meta name="author" content="{$INFO_AUTHOR|@replace:'"':' '}">
     10      <meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
    1111    {/if}
    1212    {if isset($related_tags)}
     
    2525    <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>
    2626  {/if}
    27 
     27 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
    2828
    2929  <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
     
    4343  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/gally-default/css/content.css">
    4444
    45   {combine_script id="jquery" path="themes/default/js/jquery.min.js"}
    46   {combine_script id="jquery.ui" path="themes/default/js/ui/minified/jquery.ui.core.min.js"}
    47   {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/minified/jquery.ui.tabs.min.js"}
    48   {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/minified/jquery.ui.dialog.min.js"}
    49 
    50 
    51   {php}
    52     $themes=$this->get_template_vars('themes');
    53     foreach($themes as $theme)
    54     {
    55       $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/";
    56       $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/".PWG_LOCAL_DIR."themes/".$theme['id']."/conf/";
    57       $this->assign("default_conf", $dir."default.conf");
    58       if(file_exists($dirlocal."local.conf"))
    59       {
    60         $this->assign("local_conf", $dirlocal."local.conf");
    61       }
    62       else
    63       {
    64         $this->assign("local_conf", "");
    65       }
    66     }
    67   {/php}
    68 
    69   {config_load file=$default_conf}
    70   {if $local_conf!=""}
    71     {config_load file=$local_conf}
    72   {/if}
    73 
    74   {php}
    75       $this->assign("alternateBannerContent", html_entity_decode($this->get_config_vars('alternateBannerContent')));
    76   {/php}
     45  {combine_script id="jquery" path="themes/default/js/jquery.js"}
     46  {combine_script id="jquery.ui" path="themes/default/js/ui/jquery.ui.core.js"}
     47  {combine_script id="jquery.ui.tabs" path="themes/default/js/ui/jquery.ui.tabs.js"}
     48  {combine_script id="jquery.ui.dialog" path="themes/default/js/ui/jquery.ui.dialog.js"}
    7749
    7850  {include file='config.js.tpl'}
    7951
    8052  {if #manageTips#=='yes'}
    81     {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.min.js" require="jquery"}
     53    {combine_script id="gpc.simpleTip" path="themes/gally-default/js/simpleTip.js" require="jquery"}
    8254    {combine_script id="gallyjs-ttm" path="themes/gally-default/js/gallyjs-ttm.js" require="jquery"}
    8355  {/if}
     
    10981{/foreach}
    11082
     83{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
     84{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
     85
     86{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
     87
    11188{if not empty($head_elements)}
    11289  {foreach from=$head_elements item=elt}{$elt}
     
    11592
    11693{get_combined_scripts load='header'}
     94{combine_script id="jquery" load="footer"}
     95
    11796</head>
    11897
     
    137116<div id="theHeader" style="display:none;"></div>
    138117<div id="theHeaderAlt">
    139   {$alternateBannerContent}
     118  {$gally->getAlternateBannerContent()}
    140119</div>
    141120{else}
Note: See TracChangeset for help on using the changeset viewer.