public function page() { $num = func_num_args(); if ($num <= 0) { redirect('administration/dashboard'); } else { $args = func_get_args(); $plugin = array_shift($args); $page = PluginManager::do_actions('plugin.page', $args, array($plugin)); $title = $page['title']; $heading = isset($page['heading']) ? $page['heading'] : $page['title']; $this->templatemanager->set_title($title); $this->templatemanager->assign('heading', $heading); $this->templatemanager->assign('tagline', $page['tagline']); $this->templatemanager->assign('buttons', $page['buttons']); $this->templatemanager->assign('html', $page['html']); $this->templatemanager->show_template('plugins_page'); } }