Changeset 14974


Ignore:
Timestamp:
05/14/12 21:22:23 (8 years ago)
Author:
flop25
Message:

PHPWG_VERSION assigned and correction of the use of strpos in tpl

Location:
extensions/floOS/OS_default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/template/picture_nav_buttons.tpl

    r14652 r14974  
    2121{if isset($next) } 
    2222<a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> 
    23   {if strpos('2.4',$PHPWG_VERSION)} 
     23  {assign var=Pwg_VERSION value=strpos('2.4',$PHPWG_VERSION) } 
     24  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false } 
    2425  <img src="{$next.derivatives.square->get_url()}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> 
    2526  {else} 
     
    2829</a> 
    2930{/if} 
    30   {if strpos('2.4',$PHPWG_VERSION)} 
     31  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false } 
    3132        <img src="{$current.derivatives.square->get_url()}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> 
    3233  {else} 
     
    3536{if isset($previous) } 
    3637<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> 
    37   {if strpos('2.4',$PHPWG_VERSION)} 
     38  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false } 
    3839  <img src="{$previous.derivatives.square->get_url()}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> 
    3940  {else} 
  • extensions/floOS/OS_default/themeconf.inc.php

    r14652 r14974  
    1818        'Exclude'                       => array('theNBMPage','thePicturePage','thePopuphelpPage',),    # Excluded pages 
    1919); 
     20 
     21 
     22 
     23add_event_handler('loc_begin_picture', 'pwg_v'); 
     24function  pwg_v() { 
     25  global $template; 
     26  $template->assign( 
     27  array( 
     28    'PHPWG_VERSION' => PHPWG_VERSION, 
     29  )); 
     30} 
    2031/*********************************menu on every pages ************************************/ 
    2132// thx to Vdigital and his plugin spreadmenus 
Note: See TracChangeset for help on using the changeset viewer.