Exemplo n.º 1
0
 /**
  * Returns themes array
  *
  * @return array
  */
 public static function get_themes_by_key()
 {
     $themes = array();
     $wp_themes = Util_Theme::get_themes();
     foreach ($wp_themes as $wp_theme) {
         $theme_key = Util_Theme::get_theme_key($wp_theme['Theme Root'], $wp_theme['Template'], $wp_theme['Stylesheet']);
         $themes[$theme_key] = $wp_theme['Name'];
     }
     return $themes;
 }
 private static function is_theme_found()
 {
     if (!is_network_admin()) {
         return defined('PARENT_THEME_NAME') && PARENT_THEME_NAME == 'Genesis';
     }
     $themes = Util_Theme::get_themes();
     $theme_found = false;
     foreach ($themes as $theme) {
         if (strtolower($theme->Template) == 'genesis') {
             return true;
         }
     }
 }
Exemplo n.º 3
0
 /**
  * Return array of themes
  *
  * @return array
  */
 function get_themes()
 {
     $themes = array();
     $wp_themes = Util_Theme::get_themes();
     foreach ($wp_themes as $wp_theme) {
         $theme_key = sprintf('%s/%s', $wp_theme['Template'], $wp_theme['Stylesheet']);
         $themes[$theme_key] = $wp_theme['Name'];
     }
     return $themes;
 }