public function before($template = NULL) { parent::before(); Breadcrumbs::add(Breadcrumb::factory()->set_title(__('Stats'))->set_url(Route::url('oc-panel', array('controller' => 'stats')) . '?' . http_build_query(['rel' => ''] + Request::current()->query()))); $this->template->styles = array('css/datepicker.css' => 'screen'); $this->template->scripts['footer'] = array('js/bootstrap-datepicker.js', 'js/chart.min.js', 'js/chart.js-php.js', 'js/oc-panel/stats/dashboard.js'); }
public function before($template = NULL) { parent::before(); Breadcrumbs::add(Breadcrumb::factory()->set_title(__('Settings'))->set_url(Route::url('oc-panel', array('controller' => 'settings', 'action' => 'general')))); $this->template->styles = array('css/pnotify.custom.min.css' => 'screen'); $this->template->scripts['footer'][] = 'js/jquery.validate.min.js'; $this->template->scripts['footer'][] = 'js/pnotify.custom.min.js'; $this->template->scripts['footer'][] = '/js/oc-panel/settings.js'; }