Changeset 14652 for extensions


Ignore:
Timestamp:
May 2, 2012, 9:48:27 PM (13 years ago)
Author:
flop25
Message:

changes for compatibility 2.3 and 2.4 in tpl

Location:
extensions/floOS/OS_default
Files:
2 edited

Legend:

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

    r14391 r14652  
    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)}
    2324  <img src="{$next.derivatives.square->get_url()}" class="thumbLink" id="linkNext" alt="{$next.TITLE}">
     25  {else}
     26  <img src="{$next.THUMB_SRC}" class="thumbLink" id="linkNext" alt="{$next.TITLE}">
     27  {/if}
    2428</a>
    2529{/if}
     30  {if strpos('2.4',$PHPWG_VERSION)}
    2631        <img src="{$current.derivatives.square->get_url()}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
     32  {else}
     33        <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
     34  {/if}
    2735{if isset($previous) }
    2836<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
     37  {if strpos('2.4',$PHPWG_VERSION)}
    2938  <img src="{$previous.derivatives.square->get_url()}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}">
     39  {else}
     40  <img src="{$previous.THUMB_SRC}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}">
     41  {/if}
    3042</a>
    3143{/if}
  • extensions/floOS/OS_default/themeconf.inc.php

    r14390 r14652  
    113113function OS_default_index()
    114114{
    115     global $template;
    116     $template->set_prefilter('index', 'OS_default_prefilter_index');
     115  global $template;
     116  $template->set_prefilter('index', 'OS_default_prefilter_index');
    117117}
    118118function OS_default_prefilter_index($content, &$smarty)
     
    132132function OS_default_picture()
    133133{
    134     global $template;
    135     $template->set_prefilter('picture', 'OS_default_prefilter_picture');
     134  global $template;
     135  $template->set_prefilter('picture', 'OS_default_prefilter_picture');
    136136}
    137137function OS_default_prefilter_picture($content, &$smarty)
Note: See TracChangeset for help on using the changeset viewer.