public static function callbackName($echo, $tr) { static $show = null; if ($show === null) { $show = (bool) Configuration::get('PP_TEMPLATE_NAME_IN_CATALOG'); } if ($show) { $id_pp_template = PP::getProductTemplateId($tr); if ($id_pp_template > 0) { PP::getAdminProductsTemplates(PP::getProductTemplateId($tr)); $name = PP::getTemplateName($id_pp_template, true); if ($name != '') { static $template_title = null; if ($template_title === null) { $module = Module::getInstanceByName('pproperties'); $translations = $module->getTranslations('AdminProductsController'); $template_title = $translations['template_title']; } return $echo . '<br><span class="pp_list_template" title="' . $template_title . '"><i class="icon-template"></i>' . PP::safeOutputLenient($name) . '</span>'; } } } return $echo; }