Ignore:
Timestamp:
Oct 8, 2011, 11:36:11 AM (13 years ago)
Author:
mistic100
Message:

remove a prefilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/Front2Back.php

    r11218 r12387  
    7272  }
    7373 
    74   $template->set_filenames(array('Front2Back' => dirname(__FILE__) . '/template/Front2Back.tpl') );
     74  $template->set_filename('Front2Back', dirname(__FILE__) . '/template/Front2Back.tpl');
    7575  $template->assign(array(
    7676    'F2B_PATH' => F2B_PATH,
     
    8585  {
    8686    case 'toolbar':
    87       $template->set_prefilter('picture', 'Front2Back_toolbar_prefilter');
     87      $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('Front2Back', true));
    8888      return $content; 
    8989      break;
     
    9696  }
    9797
    98 
    99 
    100 function Front2Back_toolbar_prefilter($content, &$smarty)
    101 {
    102   $search = '{/if}{/strip}{*caddie management END*}';
    103   $replacement = $search."\n".file_get_contents(F2B_PATH.'template/Front2Back.tpl');
    104   return str_replace($search, $replacement, $content);
    10598}
    10699
Note: See TracChangeset for help on using the changeset viewer.