Ignore:
Timestamp:
Jun 18, 2011, 9:16:29 PM (13 years ago)
Author:
Mattias
Message:
  • batch renamed to batch_global and moved to a distinct file
  • created batch_single.php
  • some comments here and there
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/image.php

    r11292 r11423  
    99*/
    1010
    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
    1214
    1315// Add a prefilter - whatever a prefilter may be
    14 add_event_handler('loc_begin_picture', 'set_prefilter_add_to_pic_info', 55 );
     16add_event_handler('loc_begin_picture', 'copyrights_set_prefilter_add_to_pic_info', 55 );
    1517
    16 function set_prefilter_add_to_pic_info()
     18// Another function of which i cant see the use ;-)
     19add_event_handler('loc_begin_picture', 'copyrights_add_vars_to_template');
     20
     21function copyrights_set_prefilter_add_to_pic_info()
    1722{
    1823        global $template;
    19         $template->set_prefilter('picture', 'add_to_pic_info');
     24        $template->set_prefilter('picture', 'copyrights_add_to_pic_info');
    2025}
    2126 
    2227
    2328 // 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)
     29function copyrights_add_to_pic_info($content, &$smarty)
    2530{
    2631        // Voeg de informatie toe na de auteur - dus voor de datum dat ie gemaakt is...
     
    4247}
    4348
    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()
     49function copyrights_add_vars_to_template()
    4850{
    4951// 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;
     53global $page, $template, $prefixeTable;
    5154//load_language('plugin.lang', ADDINFO_PATH);
    5255//load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
Note: See TracChangeset for help on using the changeset viewer.