27 lines
1.1 KiB
PHP
Executable File
27 lines
1.1 KiB
PHP
Executable File
<?php
|
|
global $property, $post;
|
|
|
|
$facilities = $property->get_facilities();
|
|
|
|
?>
|
|
|
|
<?php if ( 'on' === $property->get_block_setting( 'facilities' ) && $facilities && isset( $facilities[0] ) && ! empty( $facilities[0] ) ): ?>
|
|
<div class="property-facilities box-inner-summary">
|
|
<h5 class="list-group-item-heading"><?php esc_html_e( "Facilities", "opalestate" ); ?></h5>
|
|
<div class="list-group-item-text">
|
|
<div class="<?php echo apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?>">
|
|
<?php foreach ( $facilities as $facility ): ?>
|
|
<div class="col-lg-6 col-sm-6 active">
|
|
<span>
|
|
<i class="fa fa-check"></i>
|
|
<?php echo esc_html( $facility[ OPALESTATE_PROPERTY_PREFIX . 'public_facilities_key' ] ); ?> :
|
|
</span>
|
|
|
|
<span><?php echo esc_html( $facility[ OPALESTATE_PROPERTY_PREFIX . 'public_facilities_value' ] ); ?></span>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|