<?php

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

$container_style = 'tfl-container';

?>

<div class="tfl-list-items tfl-list-items-<?php //echo $settings['style']; ?> <?php echo $container_style; ?>">

    <?php
    if ($settings['list_bg']) {
        echo '<div class="bg-item" style="background-image: url(' . $settings['list_bg']['url'] . ')"></div>';
    }
    ?>


    <?php foreach ($settings['items'] as $index => $item): ?>

        <?php $args['index'] = $index; ?>

        <?php $args['item'] = $item; ?>

        <?php tfl_get_template_part("addons/list/style1", $args); ?>

    <?php endforeach; ?>

</div><!-- .tfl-list-items -->

<div class="tfl-clear"></div>