Exemple #1
0
	/**
	 * Returns theme information for the active theme -- dir, path, theme.xml, screenshot url
	 * @params boolean $nopreview If true, return the real active theme, not the preview
	 * @return array An array of Theme data
	 */
	public static function get_active_data( $nopreview = false )
	{
		$all_data = Themes::get_all_data();
		$active_theme_dir = basename( Themes::get_active_theme_dir( $nopreview ) );
		$active_data = $all_data[$active_theme_dir];
		return $active_data;
	}
Exemple #2
0
 /**
  * Returns theme information for the active theme -- dir, path, theme.xml, screenshot url
  * @return array An array of Theme data
  */
 public static function get_active_data()
 {
     $all_data = Themes::get_all_data();
     $active_theme_dir = basename(Themes::get_active_theme_dir());
     $active_data = $all_data[$active_theme_dir];
     return $active_data;
 }