<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( $request->_get_fields( 'view_page_secondary' ) ) :
	?>
	<div class="hp-listing__attributes hp-listing__attributes--secondary">
		<div class="hp-row">
			<?php
			foreach ( $request->_get_fields( 'view_page_secondary' ) as $field ) :
				if ( ! is_null( $field->get_value() ) ) :
					?>
					<div class="hp-col-lg-6 hp-col-xs-12">
						<div class="hp-listing__attribute hp-listing__attribute--<?php echo esc_attr( $field->get_slug() ); ?>">
							<?php echo $field->display(); ?>
						</div>
					</div>
					<?php
				endif;
			endforeach;
			?>
		</div>
	</div>
	<?php
endif;
