diff --git a/inc/vendors/elementor/widgets/opalestate-search-property-results.php b/inc/vendors/elementor/widgets/opalestate-search-property-results.php index 6f4900a2..34e2a082 100755 --- a/inc/vendors/elementor/widgets/opalestate-search-property-results.php +++ b/inc/vendors/elementor/widgets/opalestate-search-property-results.php @@ -93,13 +93,23 @@ class Opalestate_search_property_results_Elementor_Widget extends Opalestate_Ele $this->add_control( 'style', [ - 'label' => esc_html__( 'Style Item Layout', 'opalestate-pro' ), + 'label' => esc_html__( 'Style Grid Layout', 'opalestate-pro' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => $this->get_template_post_type(), 'default' => 'grid', ] ); + $this->add_control( + 'style_list', + [ + 'label' => esc_html__( 'Style List Layout', 'opalestate-pro' ), + 'type' => \Elementor\Controls_Manager::SELECT, + 'options' => $this->get_template_post_type(), + 'default' => 'list', + ] + ); + $this->add_control( 'column', [ diff --git a/templates/elementor-templates/opalestate-search-property-results.php b/templates/elementor-templates/opalestate-search-property-results.php index a274e664..376e599b 100755 --- a/templates/elementor-templates/opalestate-search-property-results.php +++ b/templates/elementor-templates/opalestate-search-property-results.php @@ -1,14 +1,11 @@ - $settings['style'], - 'column' => $settings['column'] - ); -// echo time().'
 ha congtein' . print_r( $display ,1 ).'
'; - + $settings['style'], + 'style_list' => $settings['style_list'], + 'column' => $settings['column'], +]; ?>
- - - -
\ No newline at end of file + + diff --git a/templates/shortcodes/ajax-map-search-result.php b/templates/shortcodes/ajax-map-search-result.php index 3935eb7a..0148404a 100755 --- a/templates/shortcodes/ajax-map-search-result.php +++ b/templates/shortcodes/ajax-map-search-result.php @@ -35,16 +35,19 @@ $show = ( isset( $_GET['display'] ) && $_GET['display'] == 'list' ) || ( opalest have_posts() ): ?>
+ have_posts() ) : $query->the_post(); ?>
- +
have_posts() ) : $query->the_post();