コード例 #1
0
 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');
 }
コード例 #2
0
 public function getslideshowpicsMethod()
 {
     $this->bAjaxMethod = true;
     $oGalerie = new GalerieModel();
     echo $oGalerie->GetSlideshowPics();
 }
コード例 #3
0
 public function getvignettesMethod()
 {
     $this->bAjaxMethod = true;
     $oGalerie = new GalerieModel();
     echo $oGalerie->getVignette();
 }
コード例 #4
0
ファイル: Galleria.php プロジェクト: katgirl/galerie
 /**
  * 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;
 }