ldc-groupe/content/plugins/wpml-string-translation/classes/menus/theme-plugin-localization-ui/class-st-theme-localization-ui-utils.php

20 lines
466 B
PHP
Raw Normal View History

2020-04-17 16:50:36 +02:00
<?php
class WPML_ST_Theme_Localization_Utils {
/** @return array */
public function get_theme_data() {
$themes = wp_get_themes();
$theme_data = array();
foreach ( $themes as $theme_folder => $theme ) {
$theme_data[ $theme_folder ] = array(
'path' => $theme->get_theme_root() . '/' . $theme->get_stylesheet(),
'name' => $theme->get( 'Name' ),
'TextDomain' => $theme->get( 'TextDomain' ),
);
}
return $theme_data;
}
}