Update templates
This commit is contained in:
parent
d5bb6abe51
commit
b762d7ec6c
@ -11,7 +11,7 @@
|
||||
}
|
||||
$onlyfeatured = 0;
|
||||
if ( isset( $_GET['s_agents'] ) ) {
|
||||
$query = Opalestate_Agency_Query::get_agencies( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured );
|
||||
$query = Opalestate_Agency_Query::get_agencies( [ "posts_per_page" => $limit, 'paged' => $paged ], $onlyfeatured );
|
||||
} else {
|
||||
$query = Opalestate_Agency_Query::get_search_agencies_query();
|
||||
}
|
||||
@ -20,7 +20,8 @@
|
||||
?>
|
||||
|
||||
<?php if ( $settings['enable_sortable_bar'] ): ?>
|
||||
<div class="opalesate-archive-top"><div class="<?php echo $rowcls;?>">
|
||||
<div class="opalesate-archive-top">
|
||||
<div class="<?php echo esc_attr( $rowcls ); ?>">
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="collection-counter">
|
||||
<span><?php echo sprintf( esc_html__( 'Found %s Agency', 'opalestate-pro' ), '<span class="text-primary">' . $query->found_posts . '</span>' ) ?></span>
|
||||
@ -32,13 +33,15 @@
|
||||
</div>
|
||||
<?php opalestate_show_display_modes(); ?>
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="agency-collection-wrap">
|
||||
<?php if ( $query->have_posts() ): ?>
|
||||
<div class="agency-container">
|
||||
<div <?php echo $attrs; ?>>
|
||||
<?php $cnt=0; while( $query->have_posts() ): $query->the_post(); ?>
|
||||
<div <?php echo wp_kses_post( $attrs ); ?>>
|
||||
<?php $cnt = 0;
|
||||
while ( $query->have_posts() ): $query->the_post(); ?>
|
||||
<div class="column-item ">
|
||||
<?php echo opalestate_load_template_path( 'content-agency-' . $layout ); ?>
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@
|
||||
$onlyfeatured = 0;
|
||||
|
||||
if ( isset( $_GET['s_agents'] ) ) {
|
||||
$query = Opalestate_Query::get_agents( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured );
|
||||
$query = Opalestate_Query::get_agents( [ "posts_per_page" => $limit, 'paged' => $paged ], $onlyfeatured );
|
||||
} else {
|
||||
$query = OpalEstate_Search::get_search_agents_query();
|
||||
}
|
||||
@ -23,7 +23,8 @@
|
||||
?>
|
||||
|
||||
<?php if ( $settings['enable_sortable_bar'] ): ?>
|
||||
<div class="opalesate-archive-top"><div class="<?php echo esc_attr( $rowcls ); ?>">
|
||||
<div class="opalesate-archive-top">
|
||||
<div class="<?php echo esc_attr( $rowcls ); ?>">
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="collection-counter">
|
||||
<span><?php echo sprintf( esc_html__( 'Found %s Agents', 'opalestate-pro' ), '<span class="text-primary">' . $query->found_posts . '</span>' ) ?></span>
|
||||
@ -35,13 +36,15 @@
|
||||
</div>
|
||||
<?php opalestate_show_display_modes(); ?>
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="agents-collection-wrap">
|
||||
<?php if ( $query->have_posts() ): ?>
|
||||
<div class="agents-container">
|
||||
<div <?php echo $attrs; ?>>
|
||||
<?php $cnt=0; while( $query->have_posts() ): $query->the_post(); ?>
|
||||
<?php $cnt = 0;
|
||||
while ( $query->have_posts() ): $query->the_post(); ?>
|
||||
<div class="column-item ">
|
||||
<?php echo opalestate_load_template_path( 'content-agent-' . $layout ); ?>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' );
|
||||
|
||||
?>
|
||||
<div class="category-list-collection ">
|
||||
<div <?php echo $attrs; ?>>
|
||||
<div <?php echo wp_kses_post( $attrs ); ?>>
|
||||
<?php foreach ( $terms as $category ): ?>
|
||||
<?php
|
||||
$tax_link = get_term_link( $category->term_id );
|
||||
@ -32,7 +32,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' );
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="property-category-bg" <?php echo $style; ?>>
|
||||
<div class="property-category-bg" <?php echo wp_kses_post( $style ); ?>>
|
||||
</div>
|
||||
<div class="static-content">
|
||||
<div class="property-category-info text-center">
|
||||
@ -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 )
|
||||
|
@ -15,7 +15,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' );
|
||||
|
||||
?>
|
||||
<div class="city-list-collection ">
|
||||
<div <?php echo $attrs; ?>>
|
||||
<div <?php echo wp_kses_post( $attrs ); ?>>
|
||||
<?php foreach ( $terms as $city ): ?>
|
||||
<?php
|
||||
$tax_link = get_term_link( $city->term_id );
|
||||
@ -32,7 +32,7 @@ $attrs = $this->get_render_attribute_string( 'wrapper-style' );
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="property-city-bg" <?php echo $style; ?>>
|
||||
<div class="property-city-bg" <?php echo wp_kses_post( $style ); ?>>
|
||||
</div>
|
||||
<div class="static-content">
|
||||
<div class="property-city-info text-center">
|
||||
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user