<?php
/**
 * Property List Preloader Template
 * Always uses LIST view to match the list card layout
 *
 * @package     Havenlytics
 * @subpackage  Templates/Preloaders
 * @since       2.2.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// Always use list view for list preloader
$hvnly_view_type = 'list';
$hvnly_count = isset( $args['count'] ) ? absint( $args['count'] ) : 6;
?>

<div class="hvnly-property-grid-preloader hvnly-preloader-container hvnly-list-view list-view"
    id="hvnly-property-grid-preloader" data-component="property-grid" data-view="list">

    <?php for ( $hvnly_i = 0; $hvnly_i < $hvnly_count; $hvnly_i++ ) : ?>
    <?php hvnly_get_template_part( 'preloaders/property-card' ); ?>
    <?php endfor; ?>

</div>