public static function galerie()
 {
     $smarty = Utils::smartyInit();
     $smarty->assign('style', 'galerie_style');
     $smarty->assign('photos', GalerieModel::getGalerie());
     $smarty->assign('galerie', true);
     $smarty->display('galerie.html');
 }
 public function getslideshowpicsMethod()
 {
     $this->bAjaxMethod = true;
     $oGalerie = new GalerieModel();
     echo $oGalerie->GetSlideshowPics();
 }
 public function getvignettesMethod()
 {
     $this->bAjaxMethod = true;
     $oGalerie = new GalerieModel();
     echo $oGalerie->getVignette();
 }
示例#4
0
 /**
  * Return the URL and the name of the theme
  *
  * @access public
  * @return array
  */
 public function getGalleriaTheme($galerie)
 {
     $theme = array();
     $objThemesSRC = GalerieModel::findPublishedById($galerie, array('themesSRC'));
     $objThemes = \FilesModel::findByUuid($objThemesSRC->themesSRC);
     // Retrieve the name of the theme
     $themeName = substr(strrchr($objThemes->path, '/'), 1);
     $theme[0] = $objThemes->path;
     $theme[1] = $themeName;
     /* Example of results with the default theme
      *
      * The path :
      * $theme[0] = files/galleria/themes/classic
      *
      * The name of the theme
      * $theme[1] = classic
      */
     return $theme;
 }