/** * @param boolean|string $path * * @return string */ function get_template_dir($path = false) { $template_dir = Util::get_template_dir($this); return $path ? rtrim("{$template_dir}/{$path}", '/') : $template_dir; }