Ignore:
Timestamp:
Jun 24, 2011, 10:14:33 PM (13 years ago)
Author:
Mattias
Message:
  • Some changes in image.php (pwg_db instead of mysql)
  • batch_single.php adds an extra <tr> between the author and the creation date
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Copyrights/batch_single.php

    r11488 r11505  
    22
    33// Add a prefilter
    4 add_event_handler('loc_begin_element_set_unit', 'set_prefilter_batch_single', 55 );
     4add_event_handler('loc_end_element_set_unit', 'set_prefilter_batch_single', 55 );
    55
    66// Change the variables used by the function that changes the template
     
    1515function copyrights_batch_single($content, &$smarty)
    1616{
    17   $search = '#<tr id="datecreate">#';
     17  $search = "#<td><strong>{'Creation date'#"; // Not ideal, but ok for now :)
    1818
    19   $replacement = '
    20     <tr id="Copyrights_name">
    21     <tr id="datecreate">';
     19  // We use the <tr> from the Creation date, and give them a new <tr>
     20  $replacement = '<td><strong>DWO TESTJE</strong></td>
     21                <td>
     22                        DWO TESTJE
     23                </td>
     24        </tr>
     25       
     26        <tr>
     27                <td><strong>{\'Creation date\'';
    2228
    2329    return preg_replace($search, $replacement, $content);
     30       
     31        // Dit is een interresant testje - deze functie word dus een aantal keren (3) aangeroepen,
     32        // en pas de laatste keer is bevat $content meer dan een aantal enters...
     33        //return $content.'<div id="dwo_test" style="display: none;">'.$content.'</div>';
    2434}
    2535
Note: See TracChangeset for help on using the changeset viewer.