1) { $this->assign('LANGUAGES', $list); } $this->_initIntroductionBlock(); $this->_initProjectsBlock(); $this->_initSocialMedia(); $this->_initContactBlock(); $this->_writeUserActivity(); $this->_initFeaturedIndustries(); $this->_initQuickSearch(); return $this; } public function getMenu() { if (null === $this->_content['menu']) { $this->_content['menu'] = Qs_SiteMap::getMenu(); } return $this->_content['menu']; } protected function _initIntroductionBlock() { $view = new App_Introduction_View(); $view->setDoc($this); $item = $view->getItem(); array_unshift($this->_content['ITEMS'], new Qs_Doc_Item($item)); return $this; } protected function _initProjectsBlock() { if (! in_array(strtolower(CURRENT_PAGE_FINAL), array('home', 'our-work', 'contact-us'))) { $view = new App_Projects_View(); $view->setDoc($this); $view->smallExec(); } return $this; } protected function _initSocialMedia() { $this->assign('_socialMedia', array( 'facebook' => App_Settings_Obj::get('facebookUrl'), 'twitter' => App_Settings_Obj::get('twitterUrl'), 'linkedin' => App_Settings_Obj::get('linkedinUrl'), )); return $this; } protected function _initContactBlock() { if (! in_array(strtolower(CURRENT_PAGE_FINAL), array('home', 'contact-us', 'contact-us/thanks.html'))) { $view = new App_Form_ContactBlock_View(); $view->setDoc($this); $view->exec(); } return $this; } protected function _writeUserActivity() { $userActivityObj = new App_UserActivity_AdminObj(); $userActivityObj->write(); return $this; } protected function _initFeaturedIndustries() { if ('our-work' !== strtolower(CURRENT_PAGE_FINAL)) { $block = App_Settings_Obj::get('featuredIndustriesBlock'); if ($block && '' !== (trim(strip_tags($block)))) { $this->assign('featuredIndustries', $block); } } return $this; } protected function _initQuickSearch() { $params = array( array('quick-search-name', 'Search Premier', false), ); $this->addScript('js/app/defaultHints.js'); $this->addInitFunction('setDefaultHints', array($params)); } }