2019-09-10 06:27:33 +02:00
|
|
|
<?php
|
|
|
|
$fields = OpalEstate_Search::get_setting_search_fields();
|
|
|
|
if ( ! $fields ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-10-26 11:36:18 +02:00
|
|
|
$type = isset( $type ) ? $type : '';
|
|
|
|
$column = isset( $GLOBALS['group-info-column'] ) ? $GLOBALS['group-info-column'] : 3;
|
|
|
|
if ( $type != 'input' ) {
|
2019-09-10 06:27:33 +02:00
|
|
|
$col_class = 'col-lg-' . ( 12 / absint( $column ) ) . ' col-md-' . ( 12 / absint( $column ) ) . ' col-sm-' . ( 12 / absint( $column ) );
|
|
|
|
} else {
|
|
|
|
$col_class = 'column-item';
|
|
|
|
}
|
2019-10-26 11:36:18 +02:00
|
|
|
|
2019-09-10 06:27:33 +02:00
|
|
|
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; ?>
|
|
|
|
|