function after() { if (class_exists('DebugToolbar')) { echo DebugToolbar::render(); } return parent::after(); }
/** * After action */ public function after() { $this->template->legend = HTML::chars(__($this->config_mod['b_menu']['heading'])) . SEPARATOR . HTML::chars($this->title); $this->template->v_nav_top = View::factory('backend/v_nav_top'); $this->template->v_nav_left = View::factory('backend/v_nav_left', ['panels' => Module::get_panels(), 'current' => $this->config_mod['cms_module']]); parent::after(); }
public function after() { if (!isset($this->template->heading)) { $this->template->heading = ucfirst($this->request->controller()); } if (!isset($this->template->subheading)) { $this->template->subheading = ucfirst($this->request->action()); } $session_messages = $this->session->get_once('messages'); if ($session_messages) { $this->template->messages = array_merge($session_messages, $this->template->messages); } $session_errors = $this->session->get_once('errors'); if ($session_errors) { $this->template->errors = array_merge($session_errors, $this->template->errors); } /* Are you logged in? */ $this->template->set_global('isLoggedIn', $this->auth->is_logged_in()); $this->template->set_global('isVerifiedAccount', isset($this->isVerifiedAccount) ? $this->isVerifiedAccount : FALSE); /* store the user */ $this->template->set_global('account', $this->auth->getAccount()); if ($this->template->isLoggedIn) { $this->addMenuItem(array('url' => 'convention/checkout', 'title' => 'Purchase Tickets')); $this->addMenuItem(array('title' => 'My Account', 'url' => 'user')); if ($this->auth->hasPermission('admin')) { $this->addMenuItem(array('title' => 'Administration', 'url' => 'admin')); } $this->addMenuItem(array('url' => 'user/logout', 'title' => 'Logout')); } return parent::after(); }
/** * Unset current navigation item */ public function after() { $key = array_search($this->_current_nav, $this->_config['menu']); if ($key) { $this->_config['menu'][$key] = NULL; } // If a submenu is defined if (isset($this->_config['submenu'][$this->_current_nav])) { // Unset current action sublink $key = array_search($this->request->action, $this->_config['submenu'][$this->_current_nav]); if ($key === FALSE) { // Match controler and action $key = array_search($this->request->controller . "/" . $this->request->action, $this->_config['submenu'][$this->_current_nav]); if ($key === FALSE) { // Match controler only (if a submenu belong to many actions) $key = array_search($this->request->controller, $this->_config['submenu'][$this->_current_nav]); } } if ($key) { $this->_config['submenu'][$this->_current_nav][$key] = NULL; } // Prepend current navigation path to all menu's actions foreach ($this->_config['submenu'][$this->_current_nav] as $key => $action) { if (!empty($action)) { $this->_config['submenu'][$this->_current_nav][$key] = $this->_current_nav . '/' . $action; } } } parent::after(); }
public function after($response) { if (empty($response) or !$response instanceof Response) { $response = \Response::forge(\Theme::instance()->render()); } return parent::after($response); }
/** * After action */ public function after() { $this->template->breadcrumbs = $this->breadcrumbs; $v_go_previous = View::factory('frontend/v_go_previous'); $this->template->set_global('v_go_previous', $v_go_previous); parent::after(); }
public function after() { if ($this->template->body && is_string($this->template->body)) { $this->template->body = View::factory($this->template->body, $this->data, false); } parent::after(); }
public function after() { if (empty($this->template->content)) { $this->template->content = ''; } parent::after(); }
/** * The after() method is called after your controller action. * In our template controller we override this method so that we can * make any last minute modifications to the template before anything * is rendered. */ public function after() { if ($this->auto_render) { $this->template->styles = array_merge($this->config['global']['css_files'], $this->template->styles); $this->template->scripts = array_merge($this->config['global']['js_files'], $this->template->scripts); } parent::after(); }
/** * Perform pre-render actions on website controller */ public function after() { if ($this->internal_request) { $content = $this->template->content; $this->template = $content; } parent::after(); }
public function after($response) { $response = parent::after($response); // not needed if you create your own response object // do stuff return $response; // make sure after() returns the response object }
public function after() { if (is_object($this->template)) { $this->template->scripts = $this->scripts; $this->template->css = $this->css; } parent::after(); }
public function after($response) { parent::after($response); // set the content view $this->template->content = View::forge($this->_view, $this->_data); // return the response object return Response::forge($this->template, $this->_status); }
/** * Unset current navigation item */ public function after() { $key = array_search($this->_current_nav, $this->_config['menu']); if ($key) { $this->_config['menu'][$key] = NULL; } parent::after(); }
public function after() { $referrer = Request::current()->referrer(); if ($referrer === NULL or $_SERVER['HTTP_HOST'] != parse_url($referrer, PHP_URL_HOST)) { $referrer = URL::base(); } $this->template->set('ASSETS', $this->assets)->set('BACK_URL', $referrer); parent::after(); }
public function after() { $this->template->styles = array_merge($this->template->styles, $this->theme_config['styles']); $this->template->scripts = array_merge($this->template->scripts, $this->theme_config['jscripts']); View::set_global(array('title' => !isset($this->template->title) ? $this->config->get('title_admin') : $this->template->title, 'theme_dir' => '/themes/' . $this->config->get('admin_theme') . '', 'user' => $this->user, 'error' => Session::instance()->get('error'), 'message' => Session::instance()->get('message'), 'admin_url' => $this->config->get('admin_url'))); Session::instance()->set('message', ''); Session::instance()->set('error', ''); parent::after(); }
public function after() { if ($this->_ajax === TRUE) { // Use the template content as the response $this->request->response = $this->template->content; } else { parent::after(); } }
/** * The after() method is called after your controller action. * In our template controller we override this method so that we can * make any last minute modifications to the template before anything * is rendered. */ public function after() { if ($this->auto_render) { $styles = array('bower_components/bootstrap/dist/css/bootstrap.min.css' => 'screen', 'bower_components/metisMenu/dist/metisMenu.min.css' => 'screen', 'bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css' => 'screen', 'bower_components/datatables-responsive/css/dataTables.responsive.css' => 'screen', 'bower_components/font-awesome/css/font-awesome.min.css' => 'screen', 'bower_components/jquery.gritter/css/jquery.gritter.css' => 'screen', 'assets/css/musyme-admin.css' => 'screen', 'assets/css/timeline.css' => 'screen'); $scripts = array('bower_components/jquery/dist/jquery.min.js', 'bower_components/bootstrap/dist/js/bootstrap.min.js', 'bower_components/metisMenu/dist/metisMenu.min.js', 'bower_components/datatables/media/js/jquery.dataTables.js', 'bower_components/jquery-validation/dist/jquery.validate.js', 'bower_components/jquery-validation/dist/additional-methods.min.js', 'bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js', 'bower_components/jquery.gritter/js/jquery.gritter.min.js', 'assets/js/musyme-admin.js'); $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
/** * The after() method is called after your controller action. * In our template controller we override this method so that we can * make any last minute modifications to the template before anything * is rendered. */ public function after() { if ($this->auto_render) { $styles = array('assets/css/html5reset-1.6.1.css' => 'screen', 'assets/css/generic.css' => 'screen', 'http://fonts.googleapis.com/css?family=Andika' => 'screen'); $scripts = array('http://code.jquery.com/jquery.min.js', 'assets/js/jquery.alphanumeric.min.js', 'assets/js/jquery.password.sm.min.js'); $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
/** * The after() method is called after your controller action. * In our template controller we override this method so that we can * make any last minute modifications to the template before anything * is rendered. */ public function after() { if ($this->auto_render) { $styles = array('css/main.css'); $scripts = array('js/jquery-1.3.2.min.js'); $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
public function after() { // if ($this->auto_render) { // $styles = array(); // $scripts = array(); // $this->template->styles = array_reverse(array_merge($this->template->styles, $styles)); // $this->template->scripts = array_reverse(array_merge($this->template->scripts, $scripts)); // } parent::after(); }
public function after() { $_script = array(); $_style = array($this->__CSS__ . 'style.css'); $this->template->title = $this->_title; $this->template->style = $_style; $this->template->languages = ORM::factory('Translations')->find_all(); $this->template->script = $_script; parent::after(); }
public function after() { if ($this->auto_render) { $this->template->styles = array('shindig/media/css/screen.css' => 'screen', 'shindig/media/css/style.css' => 'screen'); $this->template->scripts = array('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'); $this->template->menu = array_merge(array('' => __('Blog')), Shindig::page_menu()); $this->template->menu_b = array(Route::get('shindig/admin')->uri() => __('Admin')); } parent::after(); }
/** * The after() method is called after your controller action. * In our template controller we override this method so that we can * make any last minute modifications to the template before anything * is rendered. */ public function after() { if ($this->auto_render) { $styles = array('media/css/demo/screen.css' => 'screen, projection', 'media/css/demo/print.css' => 'print', 'media/css/demo/style.css' => 'screen'); $scripts = array('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'); $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
public function after() { if ($this->auto_render) { $styles = array('assets/css/bootstrap.min.css', 'assets/css/style.css'); $scripts = array('assets/js/jquery.js'); $this->template->styles = array_merge($styles, $this->template->styles); $this->template->scripts = array_merge($scripts, $this->template->scripts); } parent::after(); }
public function after() { if ($this->auto_render) { $this->template->styles = array('shindig/media/css/screen.css' => 'screen', 'shindig/media/css/style.css' => 'screen'); $this->template->scripts = array('shindig/media/tinymce/tiny_mce.js', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'); if ($this->user) { $this->template->menu = array(Route::get('shindig/admin')->uri() => __('List Posts'), Route::get('shindig/admin')->uri(array('action' => 'create')) => __('New Post')); } } parent::after(); }
/** * After procedure */ public function after() { if ($this->auto_render) { $styles = array('assets/css/style.css' => 'screen', 'assets/css/superfish.css' => 'screen', 'assets/css/horoscope.css' => 'screen', 'assets/js/nyromodal/nyroModal.full.css' => 'screen', 'assets/js/date-input/date_input.css' => 'screen', 'assets/js/validation-engine/validationEngine.jquery.css' => 'screen'); $scripts = array('assets/js/jquery-1.4.2.min.js', 'assets/js/jquery-ui-1.7.1.custom.min.js', 'assets/js/hoverIntent.js', 'assets/js/superfish.js', 'assets/js/excanvas.pack.js', 'assets/js/custom.js', 'assets/js/nyromodal/jquery.nyroModal-1.6.2.pack.js', 'assets/js/date-input/jquery.date_input.js', 'assets/js/ckeditor/ckeditor.js', 'assets/js/ckeditor/adapters/jquery.js', 'assets/js/validation-engine/jquery.validationEngine.js', 'assets/js/validation-engine/jquery.validationEngine-en.js', 'assets/js/main.js'); // Add defaults to template variables. $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
public function after() { if ($this->auto_render) { //$this->template->content = $this->template->content->render(); $this->template->bind("results", $this->data); } else { //$this -> response -> body(json_encode($this -> data)); $this->response->status(200)->headers("Content-Type", "application/json; charset=utf-8")->body(json_encode($this->data)); } parent::after(); }
/** * After procedure */ public function after() { if ($this->auto_render) { $styles = array('assets/css/style.css' => 'screen'); $scripts = array('assets/js/jquery-1.4.2.min.js'); // Add defaults to template variables. $this->template->styles = array_merge($this->template->styles, $styles); $this->template->scripts = array_merge($this->template->scripts, $scripts); } parent::after(); }
public function after() { if ($this->auto_render) { $styles = array('media/css/bootstrap.min.css' => 'screen', 'media/css/style.css' => 'screen'); $scripts = array('media/js/jquery-1.11.3.min.js', 'media/js/bootstrap.min.js'); $this->template->title = 'Генеалогическое древо для LiveTex'; $this->template->styles = Arr::merge($this->template->styles, $styles); $this->template->scripts = Arr::merge($this->template->scripts, $scripts); } parent::after(); }