<?php
/**
 * Loop - Team Members Template
 *
 * This template can be overridden by copying it to mytheme/addons-for-elementor/addons/team-members/loop.php
 *
 */

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

if ($settings['style'] == 'style1')

    $container_style = 'tfl-uber-grid-container ' . tfl_get_grid_classes($settings);
else
    $container_style = 'tfl-container';

?>

<div class="tfl-team-members-v2 tfl-team-members-<?php echo $settings['style']; ?> <?php echo $container_style; ?>">

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

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

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

        <?php tfl_get_template_part("addons/team-members-v2/style1", $args); ?>

    <?php endforeach; ?>

</div><!-- .tfl-team-members -->

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