public function getPath($template)
{
if (strpos($template, FRONTEND_MODULES_PATH) !== false) {
return str_replace(FRONTEND_MODULES_PATH . '/', '', $template);
}
// else it's in the theme folder
return str_replace($this->themePath . '/', '', $template);
}