/** * Default view */ public function _default_view() { $sm = vivvo_lite_site::get_instance(); $template = $sm->get_template(); $um = $sm->get_url_manager(); $action = $sm->action_status; if ($um->isset_param('action') and $action === false or $um->get_param('save_action') == 'add' and !$um->get_param('search_id') or $um->get_param('ref') == 'quick_post') { $in_article = $um->get_param_regexp('/^ARTICLE_/'); $current_article = new Articles($sm, $in_article); $template->assign('article', $current_article); } else { $sm->set_content(); } $tags_groups_list = new TagsGroups_list($sm); $template->assign('topics', $tags_groups_list->get_all_groups()); $article_config = $sm->get_configuration(); $tab_list = $article_config->get_configuration_property_list('article_tabs'); $template->assign('article_tabs', $tab_list); $template->set_template_file($this->_template_root . 'frame.xml'); $time_zone = date('Z', VIVVO_START_TIME); $template->assign('current_time', date('Y-m-d H:i:00', time())); class_exists('TagsGroups') or (require VIVVO_FS_INSTALL_ROOT . 'lib/vivvo/core/TagsGroups.class.php'); $topic = TagsGroups_list::factory()->get_group_by_id(0); $template->assign('default_topic', $topic); return $template; }