Exemplo n.º 1
0
 protected function _setup()
 {
     parent::_setup();
     $view = $this->getView();
     $view->addTemplatePath(array($GLOBALS['fs_base'] . '/app/views/Screenshot'));
     $view->stable = HordeWeb_Utils::getStableApps();
 }
Exemplo n.º 2
0
 /**
  *
  */
 protected function _setup()
 {
     parent::_setup();
     $view = $this->getView();
     $view->addTemplatePath(array($GLOBALS['fs_base'] . '/app/views/Library', $GLOBALS['fs_base'] . '/app/views/Library/libraries/' . $this->_matchDict->library));
     $view->libraryName = $this->_matchDict->library;
     $view->shortLibraryName = str_replace('Horde_', '', $view->libraryName);
     $view->libraries = HordeWeb_Utils::getLibraries()->listLibraries();
 }
Exemplo n.º 3
0
 protected function _setup()
 {
     parent::_setup();
     $view = $this->getView();
     $view->hasAdditional = file_exists($GLOBALS['fs_base'] . '/app/views/Download/apps/' . $this->_matchDict->app . '/additional.html.php');
     $view->addTemplatePath(array($GLOBALS['fs_base'] . '/app/views/Download', $GLOBALS['fs_base'] . '/app/views/Download/apps/' . $this->_matchDict->app));
     $view->stable = HordeWeb_Utils::getH3Apps();
     $view->h4Stable = HordeWeb_Utils::getH4Apps();
 }
Exemplo n.º 4
0
 /**
  *
  */
 protected function _setup()
 {
     parent::_setup();
     $view = $this->getView();
     $view->addTemplatePath(array($GLOBALS['fs_base'] . '/app/views/App', $GLOBALS['fs_base'] . '/app/views/App/apps/' . $this->_matchDict->app));
     $view->appname = $this->_matchDict->app;
     $view->hasAuthors = file_exists($GLOBALS['fs_base'] . '/app/views/App/apps/' . $this->_matchDict->app . '/appauthors.html.php');
     $view->hasDocs = file_exists($GLOBALS['fs_base'] . '/app/views/App/apps/' . $this->_matchDict->app . '/docs');
     $view->hasScreenshots = file_exists($GLOBALS['fs_base'] . '/app/views/App/apps/' . $this->_matchDict->app . '/appscreenshots.html.php');
     $view->hasRoadmap = file_exists($GLOBALS['fs_base'] . '/app/views/App/apps/' . $this->_matchDict->app . '/approadmap.html.php');
     // @TODO: Look this up in some kind of config/lookup array.
     $view->appnameHuman = in_array($this->_matchDict->app, array('imp', 'mimp', 'dimp')) ? Horde_String::upper($this->_matchDict->app) : Horde_String::ucfirst($this->_matchDict->app);
 }
Exemplo n.º 5
0
 protected function _setup()
 {
     parent::_setup();
     $view = $this->getView();
     $view->addTemplatePath(array($GLOBALS['fs_base'] . '/app/views/Home'));
 }