32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
|
<?php
|
||
|
global $property;
|
||
|
$meta_content = apply_filters( 'opalestate_single_meta_info', '' );
|
||
|
if ( empty( $meta_content ) ) {
|
||
|
$meta = $property->get_meta_shortinfo();
|
||
|
?>
|
||
|
|
||
|
<ul class="property-meta-list list-inline">
|
||
|
<?php if ( $meta ) : ?>
|
||
|
<?php foreach ( $meta as $key => $info ) : ?>
|
||
|
<?php if ( trim( $info['value'] ) ) : ?>
|
||
|
<li class="property-label-<?php echo esc_attr( $key ); ?>">
|
||
|
<div class="icon-box">
|
||
|
<i class="icon-property-<?php echo esc_attr( $key ); ?>"></i>
|
||
|
</div>
|
||
|
<div class="info-meta">
|
||
|
<span class="label-content">
|
||
|
<?php echo apply_filters( 'opalestate-pro' . $key . '_unit_format',
|
||
|
trim( $info['value'] ) ); ?>
|
||
|
</span>
|
||
|
<span class="label-property"><?php echo esc_html( $info['label'] ); ?></span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<?php endif; ?>
|
||
|
<?php endforeach; ?>
|
||
|
<?php endif; ?>
|
||
|
</ul>
|
||
|
|
||
|
<?php } else {
|
||
|
echo wp_kses_post( $meta_content );
|
||
|
}
|