public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); } parent::Initialize(); }
/** * All requests to this controller must be made via JS. * * @throws PermissionException */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; if (!$this->Request->IsPostBack()) { throw PermissionException('Javascript'); } }
public function Initialize() { parent::Initialize(); $this->_DeliveryMethod = DELIVERY_METHOD_JSON; //$this->SetHeader("Content-Type", "application/json; charset=utf-8"); $this->SetHeader("Content-Type", "text/plain; charset=utf-8"); $this->MasterView = 'json'; }
/** * This is a good place to include JS, CSS, and modules used by all methods of this controller. * * Always called by dispatcher before controller's requested method. * * @since 1.0 * @access public */ public function Initialize() { // There are 4 delivery types used by Render(). // DELIVERY_TYPE_ALL is the default and indicates an entire page view. if ($this->DeliveryType() == DELIVERY_TYPE_ALL) $this->Head = new HeadModule($this); // Call Gdn_Controller's Initialize() as well. parent::Initialize(); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddModule('GuestModule'); parent::Initialize(); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('admin.css'); $this->MasterView = 'empty'; parent::Initialize(); }
/** * Include JS and CSS used by all methods. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { $this->Head = new HeadModule($this); $this->Head->AddTag('meta', array('name' => 'robots', 'content' => 'noindex')); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); parent::Initialize(); Gdn_Theme::Section('Entry'); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('js/library/jquery.js'); $this->AddJsFile('js/library/jquery.livequery.js'); $this->AddJsFile('js/library/jquery.form.js'); $this->AddJsFile('js/library/jquery.popup.js'); // $this->AddJsFile('js/library/jquery.menu.js'); $this->AddJsFile('js/library/jquery.gardenhandleajaxform.js'); $this->AddJsFile('js/global.js'); $this->AddCssFile('style.css'); $GuestModule = new GuestModule($this); $this->AddModule($GuestModule); parent::Initialize(); }
/** * Include JS, CSS, and modules used by all methods of this controller. * Called by dispatcher before controller's requested method. */ public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); } $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); parent::Initialize(); $this->FireEvent('AfterInitialize'); }
public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddCssFile('candy.css'); //$this->AddSideMenu(); $this->AddJsFile('candy.js'); // Application global js } parent::Initialize(); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('js/library/jquery.js'); $this->AddJsFile('js/library/jquery.livequery.js'); $this->AddJsFile('js/library/jquery.form.js'); $this->AddJsFile('js/library/jquery.popup.js'); $this->AddJsFile('js/library/jquery.menu.js'); $this->AddJsFile('js/library/jquery.gardenhandleajaxform.js'); $this->AddJsFile('js/global.js'); $this->AddCssFile('style.css'); $GuestModule = new GuestModule($this); $GuestModule->MessageCode = "It looks like you're new here. If you want to take part in the discussions, click one of these buttons!"; $this->AddModule($GuestModule); parent::Initialize(); }
/** * Initializes a frontend controller with the Best Filter, New Discussion, and * Discussion Filter modules. */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery-ui.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddCssFile('reactions.css'); $this->AddModule('BestFilterModule'); $this->AddModule('NewDiscussionModule'); $this->AddModule('DiscussionFilterModule'); }
/** * Add JS, CSS, modules. Automatically run on every use. * * @since 2.0.0 * @access public */ public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('jquery.expander.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddCssFile('menu.css'); $this->AddModule('GuestModule'); parent::Initialize(); $this->SetData('Breadcrumbs', array(array('Name' => T('Search'), 'Url' => '/search'))); }
/** * 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() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); // Add Modules $this->AddModule('GuestModule'); $this->AddModule('SignedInModule'); parent::Initialize(); Gdn_Theme::Section('ActivityList'); $this->SetData('Breadcrumbs', array(array('Name' => T('Activity'), 'Url' => '/activity'))); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) { $this->AddCssFile('style.css'); } else { $this->AddCssFile('admin.css'); } $this->MasterView = 'admin'; parent::Initialize(); }
public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->Head->AddScript('js/library/jquery.js'); $this->Head->AddScript('js/library/jquery.livequery.js'); $this->Head->AddScript('js/library/jquery.form.js'); $this->Head->AddScript('js/library/jquery.popup.js'); $this->Head->AddScript('js/library/jquery.menu.js'); $this->Head->AddScript('js/library/jquery.gardenhandleajaxform.js'); $this->Head->AddScript('js/global.js'); } $this->AddCssFile('default.css'); $this->AddCssFile('menu.css'); $this->AddCssFile('popup.css'); $this->AddCssFile('form.css'); parent::Initialize(); }
/** * 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() { // Set up head $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery-ui.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); // Add modules // $this->AddModule('MeModule'); $this->AddModule('GuestModule'); $this->AddModule('SignedInModule'); parent::Initialize(); }
/** * Adds JS, CSS, & modules. Automatically run on every use. * * @since 2.0.0 * @access public */ public function Initialize() { $this->ModuleSortContainer = 'Profile'; $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddModule('GuestModule'); parent::Initialize(); Gdn_Theme::Section('Profile'); if ($this->EditMode) { $this->CssClass .= 'EditMode'; } $this->SetData('Breadcrumbs', array()); }
/** * This sets the badges controller up to look like a front end page. It also * adds some leader board modules. */ public function Initialize() { parent::Initialize(); $this->Application = 'Yaga'; $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery-ui.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddCssFile('badges.css'); $this->AddModule('BadgesModule'); $Module = new LeaderBoardModule(); $Module->GetData('w'); $this->AddModule($Module); $Module = new LeaderBoardModule(); $this->AddModule($Module); }
/** * 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() { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) { $this->AddCssFile('style.css'); } else { if (!C('Garden.Cdns.Disable', FALSE)) { $this->AddCssFile('http://fonts.googleapis.com/css?family=Rokkitt'); } $this->AddCssFile('admin.css'); } $this->MasterView = 'admin'; parent::Initialize(); }
public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->Head->AddScript('js/library/jquery.js'); $this->Head->AddScript('js/library/jquery.livequery.js'); $this->Head->AddScript('js/library/jquery.form.js'); $this->Head->AddScript('js/library/jquery.popup.js'); $this->Head->AddScript('js/library/jquery.menu.js'); $this->Head->AddScript('js/library/jquery.gardenhandleajaxform.js'); $this->Head->AddScript('js/global.js'); } $this->AddCssFile('menu.css'); $this->AddCssFile('popup.css'); $this->AddModule('PoweredByVanillaModule'); if (!in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) { $this->AddCssFile('garden.css'); } parent::Initialize(); }
public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.menu.js'); $this->AddJsFile('global.js'); if ($this->AdminView) { $this->MasterView = 'admin'; $this->AddCssFile('admin.css'); } else { $this->AddCssFile('style.css'); } $this->AddCssFile('candy.css'); $this->AddJsFile('candy.js'); // Application global js } parent::Initialize(); }
public function Initialize() { $this->Permission('Garden.SignIn.Allow'); if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('jquery.gardenmorepager.js'); $this->AddJsFile('jquery.autogrow.js'); $this->AddJsFile('jquery.autocomplete.js'); $this->AddJsFile('global.js'); $this->AddJsFile('conversations.js'); } $this->AddCssFile('style.css'); $this->AddCssFile('conversations.css'); parent::Initialize(); }
public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->Head->AddScript('js/library/jquery.js'); $this->Head->AddScript('js/library/jquery.livequery.js'); $this->Head->AddScript('js/library/jquery.form.js'); $this->Head->AddScript('js/library/jquery.popup.js'); $this->Head->AddScript('js/library/jquery.menu.js'); $this->Head->AddScript('js/library/jquery.gardenhandleajaxform.js'); $this->Head->AddScript('js/global.js'); } $this->AddCssFile('menu.css'); $this->AddCssFile('popup.css'); $GuestModule = new GuestModule($this); $GuestModule->MessageCode = "It looks like you're new here. If you want to take part in the discussions, click one of these buttons!"; $this->AddModule($GuestModule); $this->AddModule('PoweredByVanillaModule'); parent::Initialize(); }
/** * 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() { // You've got to be signed in to send private messages. if (!Gdn::Session()->IsValid()) { Redirect('/entry/signin?Target=' . urlencode($this->SelfUrl)); } if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('jquery.autogrow.js'); $this->AddJsFile('jquery.tokeninput.js'); $this->AddJsFile('global.js'); $this->AddJsFile('conversations.js'); } $this->AddCssFile('style.css'); $this->AddCssFile('conversations.css'); parent::Initialize(); }
/** * Adds JS, CSS, & modules. Automatically run on every use. * * @since 2.0.0 * @access public */ public function Initialize() { $this->ModuleSortContainer = 'Profile'; $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('jquery.autosize.min.js'); $this->AddJsFile('global.js'); $this->AddCssFile('style.css'); $this->AddCssFile('vanillicon.css', 'static'); $this->AddModule('GuestModule'); parent::Initialize(); Gdn_Theme::Section('Profile'); if ($this->EditMode) { $this->CssClass .= 'EditMode'; } $this->SetData('Breadcrumbs', array()); $this->CanEditPhotos = C('Garden.Profile.EditPhotos') || Gdn::Session()->CheckPermission('Garden.Users.Edit'); }
public function Initialize() { $this->Permission('Garden.SignIn.Allow'); if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); $this->Head->AddScript('js/library/jquery.js'); $this->Head->AddScript('js/library/jquery.livequery.js'); $this->Head->AddScript('js/library/jquery.form.js'); $this->Head->AddScript('js/library/jquery.popup.js'); $this->Head->AddScript('js/library/jquery.menu.js'); $this->Head->AddScript('js/library/jquery.gardenhandleajaxform.js'); $this->Head->AddScript('js/library/jquery.gardenmorepager.js'); $this->Head->AddScript('js/library/jquery.autogrow.js'); $this->Head->AddScript('js/library/jquery.autocomplete.js'); $this->Head->AddScript('js/global.js'); $this->Head->AddScript('/applications/conversations/js/conversations.js'); } $this->AddCssFile('default.css'); $this->AddCssFile('menu.css'); $this->AddCssFile('popup.css'); $this->AddCssFile('conversations.css'); parent::Initialize(); }
public function Initialize() { $this->Head = new HeadModule($this); $this->AddJsFile('js/library/jquery.js'); $this->AddJsFile('js/library/jquery.livequery.js'); $this->AddJsFile('js/library/jquery.form.js'); $this->AddJsFile('js/library/jquery.popup.js'); $this->AddJsFile('js/library/jquery.menu.js'); $this->AddJsFile('js/library/jquery.gardenhandleajaxform.js'); $this->AddJsFile('js/global.js'); $this->AddCssFile('setup.css'); Gdn_Controller::Initialize(); }
/** * Switch MasterView. Include JS, CSS used by all methods. * * Always called by dispatcher before controller's requested method. * * @since 2.0.0 * @access public */ public function Initialize() { // Set up head $this->Head = new HeadModule($this); $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('jquery.atwho.js'); $this->AddJsFile('global.js'); if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) { $this->AddCssFile('style.css'); } else { $this->AddCssFile('admin.css'); } // Change master template $this->MasterView = 'admin'; parent::Initialize(); Gdn_Theme::Section('Dashboard'); }
/** * Include JS, CSS, and modules used by all methods of this controller. * Called by dispatcher before controller's requested method. */ public function Initialize() { if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); } $this->AddJsFile('jquery.js'); $this->AddJsFile('jquery.livequery.js'); $this->AddJsFile('jquery.form.js'); $this->AddJsFile('jquery.popup.js'); $this->AddJsFile('jquery.gardenhandleajaxform.js'); $this->AddJsFile('global.js'); $this->AddCssFile('admin.css'); $this->AddCssFile('pagessettings.css'); // Call Gdn_Controller's Initialize() as well. $this->MasterView = 'admin'; parent::Initialize(); Gdn_Theme::Section('Dashboard'); }