37 if (!empty($template->smarty->autoload_filters[$type])) {
38 foreach ((array)$template->smarty->autoload_filters[$type] as $name) {
39 $plugin_name =
"Smarty_{$type}filter_{$name}";
40 if ($template->smarty->loadPlugin($plugin_name)) {
41 if (function_exists($plugin_name)) {
44 }
elseif (class_exists($plugin_name,
false)) {
46 $output = call_user_func(array($plugin_name,
'execute'),
$output, $template);
55 if (!empty($template->smarty->registered_filters[$type])) {
56 foreach ($template->smarty->registered_filters[$type] as $key => $name) {
57 if (is_array($template->smarty->registered_filters[$type][$key])) {
58 $output = call_user_func($template->smarty->registered_filters[$type][$key],
$output, $template);
60 $output = $template->smarty->registered_filters[$type][$key](
$output, $template);
static runFilter($type, $content, Smarty_Internal_Template $template)
Run filters over content.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))