'Pure_autumn', 'parent' => 'Pure_default', 'icon_dir' => 'themes/Pure_default/icon', 'mime_icon_dir' => 'themes/Pure_default/icon/mimetypes/', 'local_head' => 'local_head.tpl', ); /** mainpage_categories.tpl **/ add_event_handler('loc_end_index_category_thumbnails', 'Pure_autumn_cat'); function Pure_autumn_cat($tpl_thumbnails_var) { global $template; $template->set_prefilter('index_category_thumbnails', 'Pure_autumn_prefilter_cat'); return $tpl_thumbnails_var; } function Pure_autumn_prefilter_cat($content, &$smarty) { $pwgversion=str_replace('.','',PHPWG_VERSION); $pwgversion_array=explode('.', PHPWG_VERSION); if ($pwgversion_array[0].$pwgversion_array[1]=="23") { $search = '#
  • [\s]*
    #'; $replacement = '
  • '; } elseif ($pwgversion_array[0].$pwgversion_array[1]=="24" or $pwgversion_array[0].$pwgversion_array[1]=="25" ) { $search = '#
  • #s'; $replacement = '
  • '; } return preg_replace($search, $replacement, $content); } /** thumbnails.tpl **/ add_event_handler('loc_end_index_thumbnails', 'Pure_autumn_thumbnails'); function Pure_autumn_thumbnails($tpl_thumbnails_var) { global $template; $template->set_prefilter('index_thumbnails', 'Pure_autumn_prefilter_thumbnails'); $template->set_prefilter('stuffs', 'Pure_autumn_prefilter_thumbnails'); return $tpl_thumbnails_var; } function Pure_autumn_prefilter_thumbnails($content, &$smarty) { $pwgversion=str_replace('.','',PHPWG_VERSION); $pwgversion_array=explode('.', PHPWG_VERSION); if ($pwgversion_array[0].$pwgversion_array[1]=="23") { $search = '#
  • [\s]*#'; $replacement = '
  • '; } elseif ($pwgversion_array[0].$pwgversion_array[1]=="24") { $search = '#
  • [\s]*#'; $replacement = '
  • '; } return preg_replace($search, $replacement, $content); } ?>