Ignore:
Timestamp:
Sep 15, 2012, 1:16:46 PM (12 years ago)
Author:
mistic100
Message:
  • ENGINE=MyISAM for table creation
  • add simple prefilter example
  • don't hardcode plugin folder
  • define VERSION auto, implemented soon in PEM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/skeleton/include/public_events.inc.php

    r17899 r17924  
    9494}
    9595
     96/**
     97 * add a prefilter on photo page
     98 */
     99function skeleton_loc_end_picture()
     100{
     101  global $template;
     102 
     103  $template->set_prefilter('picture', 'skeleton_picture_prefilter');
     104}
     105
     106function 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
    96119?>
Note: See TracChangeset for help on using the changeset viewer.