private function _show_page($data) { $uri = ''; if (isset($data['article']['article_uri'])) { $uri = $data['article']['article_uri']; } $theme = $this->settings->get_setting('site_theme'); if ($theme && file_exists(ROOTPATH . 'themes/' . $theme . '/articles/' . $uri . EXT)) { $this->template->build($uri, $data); } else { $this->template->build('details', $data); } }