get_settings_for_display(); extract( $settings ); $layout = $settings['item_layout']; $attrs = $this->get_render_attribute_string( 'wrapper-style' ); if ( isset( $_GET['display'] ) && $_GET['display'] == 'grid' ) { $layout = 'grid'; } elseif ( isset( $_GET['display'] ) && $_GET['display'] == 'list' ) { $layout = 'list'; $attrs = 'class="column-list"'; } if ( is_front_page() ) { $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1; } else { $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; } $onlyfeatured = 0; // if ( isset( $_GET['s_agents'] ) ) { $query = Opalestate_Query::get_agents( [ "posts_per_page" => $posts_per_page, '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' ); ?>