| @@ -85,9 +85,8 @@ | ||
| 85 | 85 | public function mailtemplate() |
| 86 | 86 | { |
| 87 | 87 | |
| 88 | 88 | $view_file = $this->input->post_get('file'); |
| 89 | - dump($view_file); | |
| 90 | 89 | |
| 91 | 90 | $file = false; |
| 92 | 91 | $sourceFile = null; |
| 93 | 92 | |
| @@ -856,8 +855,9 @@ | ||
| 856 | 855 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingMap'); |
| 857 | 856 | $self->add_widget('Wdk\Elementor\Widgets\WdkListinAgent'); |
| 858 | 857 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingAgentField'); |
| 859 | 858 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingAgentAvatar'); |
| 859 | + $self->add_widget('Wdk\Elementor\Widgets\WdkCoolListingCarousel'); | |
| 860 | 860 | }); |
| 861 | 861 | |
| 862 | 862 | // Import elementor templates |
| 863 | 863 | $page_listing_preview = $this->create_page(esc_html__('Listing Preview', 'wpdirectorykit'), '', 'elementor_canvas'); |
| @@ -906,8 +906,9 @@ | ||
| 906 | 906 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingMap'); |
| 907 | 907 | $self->add_widget('Wdk\Elementor\Widgets\WdkListinAgent'); |
| 908 | 908 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingAgentField'); |
| 909 | 909 | $self->add_widget('Wdk\Elementor\Widgets\WdkListingAgentAvatar'); |
| 910 | + $self->add_widget('Wdk\Elementor\Widgets\WdkCoolListingCarousel'); | |
| 910 | 911 | }); |
| 911 | 912 | |
| 912 | 913 | $page_results = $this->create_page(esc_html__('Results Listings', 'wpdirectorykit'), '', 'elementor_canvas'); |
| 913 | 914 | $this->elementor_assign($page_results->ID, 'page-results-listings.json'); |
| @@ -951,8 +952,11 @@ | ||
| 951 | 952 | wp_update_nav_menu_item((int)$menu_id, 0, $itemData); |
| 952 | 953 | |
| 953 | 954 | // assign menu to top menu |
| 954 | 955 | $locations = get_theme_mod( 'nav_menu_locations' ); |
| 956 | + if ( ! is_array( $locations ) ) { | |
| 957 | + $locations = array(); | |
| 958 | + } | |
| 955 | 959 | $locations[$first_menu] = $menu_id; |
| 956 | 960 | set_theme_mod('nav_menu_locations', $locations); |
| 957 | 961 | } |
| 958 | 962 | |
| @@ -1829,9 +1833,9 @@ | ||
| 1829 | 1833 | |
| 1830 | 1834 | update_option( 'wdk_is_category_enabled', '1' ); |
| 1831 | 1835 | update_option( 'wdk_is_location_enabled', '1' ); |
| 1832 | 1836 | update_option( 'wdk_is_address_enabled', '1' ); |
| 1833 | - update_option( 'wdk_is_results_page_require', '1' ); | |
| 1837 | + update_option( 'wdk_is_results_page_require', 0 ); | |
| 1834 | 1838 | update_option( 'wdk_seo_description', '2' ); |
| 1835 | 1839 | update_option( 'wdk_seo_keywords', '3' ); |
| 1836 | 1840 | update_option( 'wdk_card_slider_enable', '1' ); |
| 1837 | 1841 | update_option('elementor_load_fa4_shim', 'yes'); |
| @@ -1851,9 +1855,9 @@ | ||
| 1851 | 1855 | $page_title_message = $custom_message_title; |
| 1852 | 1856 | } |
| 1853 | 1857 | |
| 1854 | 1858 | if(!empty($option) && (get_option($option)) && get_post_status(get_option($option)) =='publish'){ |
| 1855 | - // $this->data['import_log'] .= '<div class="alert alert-danger" role="alert">'.$page_title_message.' '.esc_html__('Page already exists', 'wdk-membership').'</div>'; | |
| 1859 | + // $this->data['import_log'] .= '<div class="alert alert-danger" role="alert">'.$page_title_message.' '.esc_html__('Page already exists', 'wpdirectorykit').'</div>'; | |
| 1856 | 1860 | // return false; |
| 1857 | 1861 | } |
| 1858 | 1862 | |
| 1859 | 1863 | add_action('wdk-membership/elementor-elements/register_widget', function($self){ |
| @@ -1889,9 +1893,9 @@ | ||
| 1889 | 1893 | // Assign page. |
| 1890 | 1894 | if($page && !empty($option)) |
| 1891 | 1895 | update_option( $option, $page->ID, TRUE); |
| 1892 | 1896 | |
| 1893 | - $this->data['import_log'] .= '<div class="alert alert-success" role="alert">'.$page_title_message.' '.esc_html__('Page imported', 'wdk-membership').'</div>'; | |
| 1897 | + $this->data['import_log'] .= '<div class="alert alert-success" role="alert">'.$page_title_message.' '.esc_html__('Page imported', 'wpdirectorykit').'</div>'; | |
| 1894 | 1898 | |
| 1895 | 1899 | return $page->ID; |
| 1896 | 1900 | } |
| 1897 | 1901 | |