public function GetPostType_Template($typeid) { if (isset($this->posttype[$typeid])) { return $this->posttype[$typeid][2]; } return 'single'; }