/** * 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; }