diff --git a/templates/elementor-templates/opalestate-agency-collection.php b/templates/elementor-templates/opalestate-agency-collection.php index 2ccea4a5..4ae9b95a 100755 --- a/templates/elementor-templates/opalestate-agency-collection.php +++ b/templates/elementor-templates/opalestate-agency-collection.php @@ -1,59 +1,62 @@ - get_settings_for_display(); - $layout = $settings['item_layout']; - $attrs = $this->get_render_attribute_string( 'wrapper-style' ); - if( isset($_GET['display']) && $_GET['display'] == 'grid' ){ - $layout = 'grid'; +get_settings_for_display(); +$layout = $settings['item_layout']; +$attrs = $this->get_render_attribute_string( 'wrapper-style' ); +if ( isset( $_GET['display'] ) && $_GET['display'] == 'grid' ) { + $layout = 'grid'; - }else if( isset($_GET['display']) && $_GET['display'] == 'list' ){ - $layout = 'list'; - $attrs = 'class="column-list"'; - } - $onlyfeatured = 0; - if( isset($_GET['s_agents']) ) { - $query = Opalestate_Agency_Query::get_agencies( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured ); - } else { - $query = Opalestate_Agency_Query::get_search_agencies_query(); - } - - $rowcls = apply_filters('opalestate_row_container_class', 'opal-row'); +} elseif ( isset( $_GET['display'] ) && $_GET['display'] == 'list' ) { + $layout = 'list'; + $attrs = 'class="column-list"'; +} +$onlyfeatured = 0; +if ( isset( $_GET['s_agents'] ) ) { + $query = Opalestate_Agency_Query::get_agencies( [ "posts_per_page" => $limit, 'paged' => $paged ], $onlyfeatured ); +} else { + $query = Opalestate_Agency_Query::get_search_agencies_query(); +} + +$rowcls = apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?> - - -
-
-
- '.$query->found_posts.'' ) ?> -
-
-
-
- -
- -
-
+ + +
+
+
+
+ ' . $query->found_posts . '' ) ?> +
+
+
+
+ +
+ +
+
+
- have_posts() ): ?> -
-
> - have_posts() ): $query->the_post(); ?> -
- -
+ have_posts() ): ?> +
+
> + have_posts() ): $query->the_post(); ?> +
+ +
-
-
- max_num_pages ): ?> -
- max_num_pages ); ?> -
- +
+
+ max_num_pages ): ?> +
+ max_num_pages ); ?> +
+ -
- -
+
+ +
diff --git a/templates/elementor-templates/opalestate-agent-collection.php b/templates/elementor-templates/opalestate-agent-collection.php index 4ff77659..d089ea11 100755 --- a/templates/elementor-templates/opalestate-agent-collection.php +++ b/templates/elementor-templates/opalestate-agent-collection.php @@ -1,62 +1,65 @@ - get_settings_for_display(); - $layout = $settings['item_layout']; - $attrs = $this->get_render_attribute_string( 'wrapper-style' ); - if( isset($_GET['display']) && $_GET['display'] == 'grid' ){ - $layout = 'grid'; +get_settings_for_display(); +$layout = $settings['item_layout']; +$attrs = $this->get_render_attribute_string( 'wrapper-style' ); +if ( isset( $_GET['display'] ) && $_GET['display'] == 'grid' ) { + $layout = 'grid'; - }else if( isset($_GET['display']) && $_GET['display'] == 'list' ){ - $layout = 'list'; - $attrs = 'class="column-list"'; - } - - $onlyfeatured = 0 ; +} elseif ( isset( $_GET['display'] ) && $_GET['display'] == 'list' ) { + $layout = 'list'; + $attrs = 'class="column-list"'; +} - if( isset($_GET['s_agents']) ) { - $query = Opalestate_Query::get_agents( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured ); - } else { - $query = OpalEstate_Search::get_search_agents_query(); - } +$onlyfeatured = 0; - $form = $settings['search_form'] ? "search-agents-form-".$settings['search_form']: "search-agents-form"; - $rowcls = apply_filters('opalestate_row_container_class', 'opal-row'); +if ( isset( $_GET['s_agents'] ) ) { + $query = Opalestate_Query::get_agents( [ "posts_per_page" => $limit, 'paged' => $paged ], $onlyfeatured ); +} else { + $query = OpalEstate_Search::get_search_agents_query(); +} + +$form = $settings['search_form'] ? "search-agents-form-" . $settings['search_form'] : "search-agents-form"; +$rowcls = apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?> - - -
-
-
- '.$query->found_posts.'' ) ?> -
-
-
-
- -
- -
-
+ + +
+
+
+
+ ' . $query->found_posts . '' ) ?> +
+
+
+
+ +
+ +
+
+
- have_posts() ): ?> -
-
> - have_posts() ): $query->the_post(); ?> -
- -
+ have_posts() ): ?> +
+
> + have_posts() ): $query->the_post(); ?> +
+ +
-
-
- max_num_pages ): ?> -
- max_num_pages ); ?> -
- +
+
+ max_num_pages ): ?> +
+ max_num_pages ); ?> +
+ -
- -
+
+ +
diff --git a/templates/elementor-templates/opalestate-category-list.php b/templates/elementor-templates/opalestate-category-list.php index d1830f92..70585327 100755 --- a/templates/elementor-templates/opalestate-category-list.php +++ b/templates/elementor-templates/opalestate-category-list.php @@ -15,7 +15,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); ?>
-
> +
> term_id ); @@ -32,7 +32,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); } ?> -
> +
>
@@ -51,6 +51,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); '%1$s Property', '%1$s Properties', $category->count, + 'count properties', 'opalestate-pro' ), number_format_i18n( $category->count ) diff --git a/templates/elementor-templates/opalestate-city-list.php b/templates/elementor-templates/opalestate-city-list.php index 07d38e6f..592a6efa 100755 --- a/templates/elementor-templates/opalestate-city-list.php +++ b/templates/elementor-templates/opalestate-city-list.php @@ -15,7 +15,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); ?>
-
> +
> term_id ); @@ -32,7 +32,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); } ?> -
> +
>
@@ -51,6 +51,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' ); '%1$s Property', '%1$s Properties', $city->count, + 'count properties', 'opalestate-pro' ), number_format_i18n( $city->count )