Changeset 17924 for extensions/skeleton/include/public_events.inc.php
- Timestamp:
- Sep 15, 2012, 1:16:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/include/public_events.inc.php
r17899 r17924 94 94 } 95 95 96 /** 97 * add a prefilter on photo page 98 */ 99 function skeleton_loc_end_picture() 100 { 101 global $template; 102 103 $template->set_prefilter('picture', 'skeleton_picture_prefilter'); 104 } 105 106 function skeleton_picture_prefilter($content) 107 { 108 $search = '{if $display_info.author and isset($INFO_AUTHOR)}'; 109 $replace = '<div id="Skeleton" class="imageInfo"> 110 <dt>{\'Skeleton\'|@translate}</dt> 111 <dd style="color:orange;">{\'Piwigo rocks\'|@translate}</dd> 112 </div> 113 '.$search; 114 115 return str_replace($search, $replace, $content); 116 } 117 118 96 119 ?>
Note: See TracChangeset
for help on using the changeset viewer.