Ignore:
Timestamp:
May 22, 2010, 1:07:30 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Compatibility with Piwigo 2.1

Location:
extensions/event_cats/admin
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r4885 r6269  
    380380print '<pre>';
    381381//print_r('ROOT_URL : '.ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
    382 print('ROOT_URL : '.ROOT_URL.'<br>EVNTCATS_PATH : '.EVNTCATS_PATH);
     382print('ROOT_URL + ... : '.preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches));
     383print('<br />');
     384print_r($matches);
    383385print '</pre>';
    384386*/
    385387
    386 $template->assign('ec_howto',
    387  ($ec_howto and (count($page['errors']) ==0 and count($page['infos']) == 0)));
    388 
    389 $template->assign('ec_help_banner_OK', (read_ec_conf('in_help_display') == '1'));
     388$template->assign(
     389 'HeaderIncTPL', realpath('plugins/event_cats/admin/template/header.inc.tpl')
     390);
     391
     392$template->assign(
     393 'FooterIncTPL', realpath('plugins/event_cats/admin/template/footer.inc.tpl')
     394);
     395
     396$template->assign(
     397 'ec_howto',
     398 ($ec_howto and (count($page['errors']) == 0 and count($page['infos']) == 0))
     399);
     400
     401$template->assign(
     402 'ec_help_banner_OK',
     403 (read_ec_conf('in_help_display') == '1')
     404);
    390405
    391406$template->assign('EVNTCATS_PATH', EVNTCATS_PATH);
    392407$template->assign('RACINE_URL', ROOT_URL);
    393 $template->assign('U_HELP', get_root_url().'popuphelp.php?page=ec_help');
     408$template->assign('U_HELP', get_root_url().'popuphelp.php?page=help');
    394409
    395410if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array(
  • extensions/event_cats/admin/template/autolog_entries.tpl

    r5058 r6269  
    33{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
    44
    5 {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
     5{include file=$HeaderIncTPL}
    66
    77{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
     
    3232  {/if}
    3333</div><span id = "ec_help_ban"></span>
     34
     35<br />
    3436
    3537{* <!-- Form to view codes --> *}
     
    158160</script>
    159161
    160 {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
     162{include file=$FooterIncTPL}
  • extensions/event_cats/admin/template/autolog_new.tpl

    r5058 r6269  
    33{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
    44
    5 {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
     5{include file=$HeaderIncTPL}
    66
    77{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
     
    338338//--></script>
    339339
    340 {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
     340{include file=$FooterIncTPL}
  • extensions/event_cats/admin/template/config.tpl

    r5058 r6269  
    33{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
    44
    5 {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
     5{include file=$HeaderIncTPL}
    66
    77{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
     
    208208//--></script>
    209209
    210 {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
     210{include file=$FooterIncTPL}
  • extensions/event_cats/admin/template/duplication.tpl

    r5058 r6269  
    33{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
    44
    5 {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
     5{include file=$HeaderIncTPL}
    66
    77{* <!-- For help banner --> *}
     
    182182</form>
    183183
    184 {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
     184{include file=$FooterIncTPL}
    185185
  • extensions/event_cats/admin/template/header.inc.tpl

    r5058 r6269  
    66
    77{* <!-- Page title --> *}
    8 <div class = "titrePage" style = "margin-top: -20px;">
     8<div class = "titrePage">
    99  <h2>{'Admin page title'|@translate} {$EVNTCATS_VERSION}</h2>
    1010</div>
     
    2323    {'Acknowledgement'|@translate}
    2424  </div>
    25   <p>
     25  <br />
    2626{/if}
    2727
Note: See TracChangeset for help on using the changeset viewer.