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'; } elseif ( isset( $_GET['display'] ) && $_GET['display'] == 'list' ) { $layout = 'list'; $attrs = 'class="column-list"'; } $onlyfeatured = 0; 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' ); ?>