Changeset 11488 for extensions/Copyrights
- Timestamp:
- Jun 22, 2011, 8:08:29 PM (13 years ago)
- Location:
- extensions/Copyrights
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/batch_single.php
r11439 r11488 1 1 <?php 2 2 3 /* 4 Try to be able to change something in the batch manager single mode (unit mode) 5 */ 6 7 8 9 // Add a prefilter - whatever a prefilter may be - loc begin admin, because of this: http://piwigo.org/forum/viewtopic.php?id=17468 10 add_event_handler('loc_begin_admin', 'set_prefilter_batch_single', 55 ); 3 // Add a prefilter 4 add_event_handler('loc_begin_element_set_unit', 'set_prefilter_batch_single', 55 ); 11 5 12 6 // Change the variables used by the function that changes the template … … 15 9 function set_prefilter_batch_single() 16 10 { 17 //mail("matheiusb@gmail.com", "Content of $content", $content);18 11 global $template; 19 12 $template->set_prefilter('batch_manager_unit', 'copyrights_batch_single'); … … 22 15 function copyrights_batch_single($content, &$smarty) 23 16 { 24 //mail("matheiusb@gmail.com", "Content of $content", $content); 25 //$content = $content.'<div>DWO TEST</div>'; 26 return $content; 17 $search = '#<tr id="datecreate">#'; 18 19 $replacement = ' 20 <tr id="Copyrights_name"> 21 <tr id="datecreate">'; 22 23 return preg_replace($search, $replacement, $content); 27 24 } 28 25 -
extensions/Copyrights/main.inc.php
r11423 r11488 74 74 * +-----------------------------------------------------------------------+ */ 75 75 76 77 // Global mode 76 // With the batchmanager, copyrights can be assigned to photos. There are two 77 // modes: Global mode, for mass assignment; Unit mode, for one by one 78 // assignment to the photos. 79 80 // Global mode 78 81 include_once(dirname(__FILE__).'/batch_global.php'); 79 82 80 // Single mode - TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST 81 // should become a include_once !!! 82 include(dirname(__FILE__).'/batch_single.php'); 83 // Unit mode 84 include_once(dirname(__FILE__).'/batch_single.php'); 83 85 84 86 ?>
Note: See TracChangeset
for help on using the changeset viewer.