Changeset 11929


Ignore:
Timestamp:
Aug 10, 2011, 3:21:19 PM (13 years ago)
Author:
flop25
Message:

change in picture.tpl moved in themeconf.inc.php with prefilters

Location:
extensions/floOS/OS_default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/template

    • Property svn:ignore set to
      _picture.tpl
  • extensions/floOS/OS_default/themeconf.inc.php

    r10450 r11929  
    9494  return preg_replace($search, $replacement, $content);
    9595}
     96
     97/************************************ picture.tpl ************************************/
     98add_event_handler('loc_begin_picture', 'OS_default_picture');
     99function OS_default_picture()
     100{
     101    global $template;
     102    $template->set_prefilter('picture', 'OS_default_prefilter_picture');
     103}
     104function OS_default_prefilter_picture($content, &$smarty)
     105{
     106  $search = '#<div id="imageInfos">.*<table id="standard" class="infoTable">#s'; 
     107  $replacement = '<table id="standard" class="infoTable">';
     108  return preg_replace($search, $replacement, $content);
     109}
     110
     111
     112
    96113?>
Note: See TracChangeset for help on using the changeset viewer.