public function Initialize() { parent::Initialize(); $this->AddCssFile('garden.css'); if ($this->Menu) { $this->Menu->HighlightRoute('/garden/settings'); } }
public function Initialize() { parent::Initialize(); $this->ShowOptions = TRUE; $this->Menu->HighlightRoute('/discussions'); $this->AddCssFile('vanilla.css'); $this->AddJsFile('/js/library/jquery.gardenmorepager.js'); }
public function Initialize() { parent::Initialize(); $this->ShowOptions = TRUE; $this->Menu->HighlightRoute('/discussions'); $this->AddCssFile('vanilla.css'); $this->AddJsFile('bookmark.js'); $this->AddJsFile('discussions.js'); $this->AddJsFile('jquery.menu.js'); $this->AddJsFile('options.js'); $this->AddJsFile('jquery.gardenmorepager.js'); $this->FireEvent('AfterInitialize'); }
public function Initialize() { parent::Initialize(); $this->Menu->HighlightRoute('/discussions'); }
public function Initialize() { parent::Initialize(); if ($this->Menu) { $this->Menu->HighlightRoute('/dashboard/settings'); } }
public function Initialize() { parent::Initialize(); $this->AddCssFile('vanilla.css'); }
/** * Highlight route and include JS, CSS, and modules used by all methods. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); $this->ShowOptions = TRUE; $this->Menu->HighlightRoute('/discussions'); $this->AddCssFile('vanilla.css'); $this->AddJsFile('discussions.js'); // Inform moderator of checked comments in this discussion $CheckedDiscussions = Gdn::Session()->GetAttribute('CheckedDiscussions', array()); if (count($CheckedDiscussions) > 0) { ModerationController::InformCheckedDiscussions($this); } $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30); $this->FireEvent('AfterInitialize'); }
/** * Highlight route. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); $this->AddDefinition('ImageResized', T('This image has been resized to fit in the page. Click to enlarge.')); $this->Menu->HighlightRoute('/discussions'); }
/** * Highlight route. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); if ($this->Menu) { $this->Menu->HighlightRoute('/categories'); } $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30); }
/** * Include CSS for all methods. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); $this->AddCssFile('vanilla.css'); $this->AddModule('NewDiscussionModule'); }
public function Initialize() { parent::Initialize(); $this->AddModule('SignedInModule'); $this->Menu->HighlightRoute('/discussions'); }
/** * Highlight route. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); if ($this->Menu) { $this->Menu->HighlightRoute('/categories'); } }
/** * Highlight route. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); if (!C('Vanilla.Categories.Use')) { Redirect('/discussions'); } if ($this->Menu) { $this->Menu->HighlightRoute('/categories'); } $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30); }
/** * Highlight route & add common JS definitions. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); $this->AddDefinition('ImageResized', T('This image has been resized to fit in the page. Click to enlarge.')); $this->AddDefinition('ConfirmDeleteCommentHeading', T('ConfirmDeleteCommentHeading', 'Delete Comment')); $this->AddDefinition('ConfirmDeleteCommentText', T('ConfirmDeleteCommentText', 'Are you sure you want to delete this comment?')); $this->Menu->HighlightRoute('/discussions'); }
/** * Highlight route and include JS, CSS, and modules used by all methods. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { parent::Initialize(); $this->ShowOptions = TRUE; $this->Menu->HighlightRoute('/discussions'); $this->AddCssFile('vanilla.css'); $this->AddJsFile('bookmark.js'); $this->AddJsFile('discussions.js'); $this->AddJsFile('options.js'); $this->AddJsFile('jquery.gardenmorepager.js'); // Inform moderator of checked comments in this discussion $CheckedDiscussions = Gdn::Session()->GetAttribute('CheckedDiscussions', array()); if (count($CheckedDiscussions) > 0) ModerationController::InformCheckedDiscussions($this); $this->FireEvent('AfterInitialize'); }