private function translatePath($path) { if (substr($path, 0, 7) == 'custom:') { $path = substr($path, 7); } if (substr($path, 0, 1) == '@') { $path = substr($path, 1); } if ($relative = LiveCartRenderer::getRelativeTemplatePath($path)) { $path = $relative; } return $path; }