| @@ 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; |
|
| @@ 1930-1934 (lines=5) @@ | ||
| 1927 | global $wpdb; |
|
| 1928 | $theme = wp_get_theme(); |
|
| 1929 | ||
| 1930 | if ($theme->parent()) {
|
|
| 1931 | $theme_name = str_replace(" ", "_", $theme->parent()->get('Name'));
|
|
| 1932 | } else {
|
|
| 1933 | $theme_name = str_replace(" ", "_", $theme->get('Name'));
|
|
| 1934 | } |
|
| 1935 | ||
| 1936 | $theme_compats = get_option('gd_theme_compats');
|
|
| 1937 | $current_compat = get_option('gd_theme_compat');
|
|