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

remove a prefilter

Location:
extensions/Front2Back
Files:
2 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
  • extensions/Front2Back/template/style.css

    r11218 r12387  
    22  display:inline-block;
    33  border:1px solid #666 !important;
    4   padding:3px 5px;
     4  padding:5px 5px;
    55  margin-bottom:10px;
    66  font-size:15px;
Note: See TracChangeset for help on using the changeset viewer.