| @@ 679-683 (lines=5) @@ | ||
| 676 | ||
| 677 | $theme = wp_get_theme(); |
|
| 678 | ||
| 679 | if ($theme->parent()) {
|
|
| 680 | $theme_name = str_replace(" ", "_", $theme->parent()->get('Name'));
|
|
| 681 | } else {
|
|
| 682 | $theme_name = str_replace(" ", "_", $theme->get('Name'));
|
|
| 683 | } |
|
| 684 | ||
| 685 | if (in_array($theme_name, array('Avada', 'Enfold', 'X', 'Divi', 'Genesis', 'Jupiter', 'Multi_News'))) {// list of themes that have php files
|
|
| 686 | $theme_settings['geodir_theme_compat_code'] = $theme_name; |
|
| @@ 2267-2271 (lines=5) @@ | ||
| 2264 | global $wpdb; |
|
| 2265 | $theme = wp_get_theme(); |
|
| 2266 | ||
| 2267 | if ($theme->parent()) {
|
|
| 2268 | $theme_name = str_replace(" ", "_", $theme->parent()->get('Name'));
|
|
| 2269 | } else {
|
|
| 2270 | $theme_name = str_replace(" ", "_", $theme->get('Name'));
|
|
| 2271 | } |
|
| 2272 | ||
| 2273 | $theme_compats = get_option('gd_theme_compats');
|
|
| 2274 | $current_compat = get_option('gd_theme_compat');
|
|