Opal-Estate-Pro/templates/search-box/fields/group-info.php

22 lines
696 B
PHP
Raw Normal View History

2019-09-10 06:27:33 +02:00
<?php
$fields = OpalEstate_Search::get_setting_search_fields();
if ( ! $fields ) {
return;
}
$type = isset( $type ) ? $type : '';
$column = isset( $GLOBALS['group-info-column'] ) ? $GLOBALS['group-info-column'] : 3;
if( $type != 'input' ) {
$col_class = 'col-lg-' . ( 12 / absint( $column ) ) . ' col-md-' . ( 12 / absint( $column ) ) . ' col-sm-' . ( 12 / absint( $column ) );
} else {
$col_class = 'column-item';
}
foreach ( $fields as $key => $label ): ?>
<?php if ( 'areasize' == $key ) : continue; endif; ?>
<div class="<?php echo esc_attr( $col_class ); ?>">
<?php opalestate_property_render_field_template( $key, $label, $type ); ?>
</div>
<?php endforeach; ?>