Changeset 12387
- Timestamp:
- Oct 8, 2011, 11:36:11 AM (13 years ago)
- Location:
- extensions/Front2Back
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Front2Back/Front2Back.php
r11218 r12387 72 72 } 73 73 74 $template->set_filename s(array('Front2Back' => dirname(__FILE__) . '/template/Front2Back.tpl'));74 $template->set_filename('Front2Back', dirname(__FILE__) . '/template/Front2Back.tpl'); 75 75 $template->assign(array( 76 76 'F2B_PATH' => F2B_PATH, … … 85 85 { 86 86 case 'toolbar': 87 $template-> set_prefilter('picture', 'Front2Back_toolbar_prefilter');87 $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('Front2Back', true)); 88 88 return $content; 89 89 break; … … 96 96 } 97 97 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);105 98 } 106 99 -
extensions/Front2Back/template/style.css
r11218 r12387 2 2 display:inline-block; 3 3 border:1px solid #666 !important; 4 padding: 3px 5px;4 padding:5px 5px; 5 5 margin-bottom:10px; 6 6 font-size:15px;
Note: See TracChangeset
for help on using the changeset viewer.