예제 #1
0
 public function init()
 {
     parent::init();
     $this->setModuleId();
     $this->view->headLink()->offsetSetStylesheet($this->_moduleID, $this->view->locateFile('sitemap.css'));
     $this->view->headLink()->appendStylesheet($this->view->locateFile('sitemap.css'));
 }
예제 #2
0
 public function init()
 {
     parent::init();
     if (!$this->_isXmlHttpRequest) {
         $this->view->headlink()->appendStylesheet($this->view->locateFile('profile.css'));
     }
 }
예제 #3
0
파일: Action.php 프로젝트: anunay/stentors
 public function init()
 {
     parent::init();
     $this->view->assign('user', $this->view->auth());
     $session = new Cible_Sessions();
     // Defines the default interface language
     if ($this->_config->defaultInterfaceLanguage) {
         $this->_defaultInterfaceLanguage = $this->_config->defaultInterfaceLanguage;
     }
     // Check if the current interface language should be different than the default one
     $this->_currentInterfaceLanguage = !empty($session->languageID) ? $session->languageID : $this->_defaultInterfaceLanguage;
     if ($this->_getParam('setLang')) {
         $this->_currentInterfaceLanguage = Cible_FunctionsGeneral::getLanguageID($this->_getParam('setLang'));
     }
     // Registers the current interface language for future uses
     $this->_registry->set('languageID', $this->_currentInterfaceLanguage);
     $session->languageID = $this->_currentInterfaceLanguage;
     $suffix = Cible_FunctionsGeneral::getLanguageSuffix($this->_currentInterfaceLanguage);
     $this->_registry->set('languageSuffix', $suffix);
     // Defines the default edit language
     if ($this->_config->defaultEditLanguage) {
         $this->_currentEditLanguage = $this->_config->defaultEditLanguage;
     } else {
         $this->_currentEditLanguage = $this->_defaultEditLanguage;
     }
     $this->_currentEditLanguage = !empty($session->currentEditLanguage) ? $session->currentEditLanguage : $this->_currentEditLanguage;
     // Check if the current edit language should be different than the default one
     if ($this->_getParam('lang')) {
         $this->_currentEditLanguage = Cible_FunctionsGeneral::getLanguageID($this->_getParam('lang'));
     }
     // Registers the current edit language for future uses
     $this->_registry->set('currentEditLanguage', $this->_currentEditLanguage);
     $session->currentEditLanguage = $this->_currentEditLanguage;
     if (Cible_FunctionsGeneral::extranetLanguageIsAvailable($this->getCurrentInterfaceLanguage()) == 0) {
         $session = new Cible_Sessions();
         $this->_currentInterfaceLanguage = $this->_config->defaultInterfaceLanguage;
         // Registers the current interface language for future uses
         $this->_registry->set('languageID', $this->_currentInterfaceLanguage);
         $session->languageID = $this->_currentInterfaceLanguage;
         $suffix = Cible_FunctionsGeneral::getLanguageSuffix($this->_currentInterfaceLanguage);
         $this->_registry->set('languageSuffix', $suffix);
     }
     $hasProfile = false;
     $hasVideos = true;
     $modProfile = Cible_FunctionsModules::modulesProfile();
     if (count($modProfile) > 0) {
         $hasProfile = true;
     }
     $this->view->assign('hasProfile', $hasProfile);
     $this->view->assign('hasVideos', $hasVideos);
 }
예제 #4
0
 /**
  * Set some properties to redirect and process actions.
  *
  * @access public
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->setModuleId();
     $this->view->headLink()->offsetSetStylesheet($this->_moduleID, $this->view->locateFile('banners.css'));
     $this->view->headLink()->appendStylesheet($this->view->locateFile('banners.css'));
     $dataImagePath = "data/images/";
     $this->_imagesFolder = $dataImagePath . $this->_moduleTitle . "/";
     $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/";
     $this->_rootVideoPath = Zend_Registry::get("www_root") . "/data/files/videos/";
     $this->_rootFilePath = "data/files/" . $this->_moduleTitle . "/";
     $this->view->cleaction = $this->_name;
     $this->_imgIndex = 'imagefeat';
 }
예제 #5
0
 public function init()
 {
     $Param = $this->getRequest('Params');
     //var_dump($this->getRequest()->getActionName());
     $Action = $this->getRequest()->getActionName();
     parent::init();
     // echo $Action;
     if ($Action != "site-map") {
         $langId = Zend_Registry::get('languageID');
         //parent::init();
         $this->setModuleId();
         $this->view->headLink()->offsetSetStylesheet($this->_moduleID, $this->view->locateFile('catalog.css'));
         $this->view->headLink()->appendStylesheet($this->view->locateFile('catalog.css'));
         //        $oTypes       = new TypesObject();
         $oCollections = new SubCategoriesObject();
         //        $oClientele   = new ClienteleObject();
         //        $types       = $oTypes->getAll($langId);
         $collections = $oCollections->getAll($langId);
         //        $clienteles  = $oClientele->clienteleList($langId);
         //        $this->view->types       = $types;
         $this->view->collections = $collections;
         //        $this->view->clientele   = $clienteles;
     }
 }