Changeset 11423 for extensions/Copyrights/image.php
- Timestamp:
- Jun 18, 2011, 9:16:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/image.php
r11292 r11423 9 9 */ 10 10 11 11 // What do these prefilters do? 12 // First they use loc_begin_picture to set some template variables 13 // Then they use the same event to set a prefilter, who on his turn will change the content 12 14 13 15 // Add a prefilter - whatever a prefilter may be 14 add_event_handler('loc_begin_picture', ' set_prefilter_add_to_pic_info', 55 );16 add_event_handler('loc_begin_picture', 'copyrights_set_prefilter_add_to_pic_info', 55 ); 15 17 16 function set_prefilter_add_to_pic_info() 18 // Another function of which i cant see the use ;-) 19 add_event_handler('loc_begin_picture', 'copyrights_add_vars_to_template'); 20 21 function copyrights_set_prefilter_add_to_pic_info() 17 22 { 18 23 global $template; 19 $template->set_prefilter('picture', ' add_to_pic_info');24 $template->set_prefilter('picture', 'copyrights_add_to_pic_info'); 20 25 } 21 26 22 27 23 28 // This function is called by the set_prefilter_add_to_pic_info function. It has something to do with the prefilter stuff, whatever it may be :p 24 function add_to_pic_info($content, &$smarty)29 function copyrights_add_to_pic_info($content, &$smarty) 25 30 { 26 31 // Voeg de informatie toe na de auteur - dus voor de datum dat ie gemaakt is... … … 42 47 } 43 48 44 // Another function of which i cant see the use ;-) 45 add_event_handler('loc_begin_picture', 'add_vars_to_template'); 46 47 function add_vars_to_template() 49 function copyrights_add_vars_to_template() 48 50 { 49 51 // For as far as i know i only need the $prefixtable, $page and $template 50 global $conf, $page, $template, $tab, $cit, $nbr, $prefixeTable; 52 //global $conf, $page, $template, $tab, $cit, $nbr, $prefixeTable; 53 global $page, $template, $prefixeTable; 51 54 //load_language('plugin.lang', ADDINFO_PATH); 52 55 //load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
Note: See TracChangeset
for help on using the changeset viewer.