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_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' ); ?>