public function template_title($type, $add_theme_name = true) { $out = $this->t($type); if ($out == $type) { $types = theme::types(); $out = empty($types[$type]) ? $type : $types[$type]; } if ($add_theme_name) { $out = $this->title . ' | ' . $out; } return $out; }