<?php

// Id
$settings['id'] = substr(uniqid(), -3);

?>

<div class="tm-news-tabs uk-grid uk-grid-collapse uk-grid-match <?php echo $settings['class']; ?>" data-uk-grid-match="{target:'> div > ul'}" data-uk-grid-margin style="min-height: <?php echo $settings['min_height']; ?>px;">

    <div class="uk-width-medium-1-4 <?php echo $settings['tab_position'] == 'right' ? 'uk-float-right uk-flex-order-last-medium' : ''; ?>">
        <?php echo $this->render('plugins/widgets/' . $widget->getConfig('name')  . '/views/_nav.php', compact('items', 'settings')); ?>
    </div>

    <div class="uk-width-medium-3-4">
        <?php echo $this->render('plugins/widgets/' . $widget->getConfig('name')  . '/views/_content.php', compact('items', 'settings')); ?>
    </div>
</div>
