/** * Hightlight menu path. Automatically run on every use. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); if ($this->Menu) { $this->Menu->HighlightRoute('/dashboard/settings'); } }
public function Initialize() { parent::Initialize(); Gdn_Theme::Section('Dashboard'); $this->Model = new DBAModel(); $this->Form = new Gdn_Form(); $this->Form->InputPrefix = ''; $this->AddJsFile('dba.js'); }
/** * Make this look like a dashboard page and add the resources * * @since 1.0 * @access public */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; Gdn_Theme::Section('Dashboard'); if ($this->Menu) { $this->Menu->HighlightRoute('/badge'); } $this->AddJsFile('admin.badges.js'); $this->AddCssFile('badges.css'); }
/** * Make this look like a dashboard page and add the resources * * @since 1.0 * @access public */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; Gdn_Theme::Section('Dashboard'); if ($this->Menu) { $this->Menu->HighlightRoute('/yaga'); } $this->AddSideMenu('yaga/settings'); $this->AddCssFile('yaga.css'); }
/** * Make this look like a dashboard page and add the resources * * @since 1.0 * @access public */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; Gdn_Theme::Section('Dashboard'); if ($this->Menu) { $this->Menu->HighlightRoute('/rank'); } $this->AddJsFile('jquery-ui-1.10.0.custom.min.js'); $this->AddJsFile('admin.ranks.js'); }
/** * Highlight route and do authenticator setup. * * Always called by dispatcher before controller's requested method. * * @since 2.0.3 * @access public */ public function Initialize() { parent::Initialize(); if ($this->Menu) { $this->Menu->HighlightRoute('/dashboard/authentication'); } $this->EnableSlicing($this); $Authenticators = Gdn::Authenticator()->GetAvailable(); $this->ChooserList = array(); $this->ConfigureList = array(); foreach ($Authenticators as $AuthAlias => $AuthConfig) { $this->ChooserList[$AuthAlias] = $AuthConfig['Name']; $Authenticator = Gdn::Authenticator()->AuthenticateWith($AuthAlias); $ConfigURL = is_a($Authenticator, "Gdn_Authenticator") && method_exists($Authenticator, 'AuthenticatorConfiguration') ? $Authenticator->AuthenticatorConfiguration($this) : FALSE; $this->ConfigureList[$AuthAlias] = $ConfigURL; } $this->CurrentAuthenticationAlias = Gdn::Authenticator()->AuthenticateWith('default')->GetAuthenticationSchemeAlias(); }
public function Initialize() { parent::Initialize(); Gdn_Theme::Section('Dashboard'); }
/** * Always triggered first. Add Javascript files. * * @since 2.0.? * @access public */ public function Initialize() { parent::Initialize(); Gdn_Theme::Section('Dashboard'); $this->AddJsFile('log.js'); $this->AddJsFile('jquery.expander.js'); $this->AddJsFile('jquery-ui.js'); $this->Form->InputPrefix = ''; }
public function Initialize() { parent::Initialize(); $this->AddJsFile('log.js'); $this->AddJsFile('jquery.expander.js'); $this->AddJsFile('jquery.ui.packed.js'); }