<?php
/**
 * @package     Wt Quick Links
 * @copyright   Copyright (C) 2022-2023 Sergey Tolkachyov. All rights reserved.
 * @author      Sergey Tolkachyov - https://web-tolk.ru
 * @link 		https://web-tolk.ru
 * @version 	2.1.2
 * @license     GNU General Public License version 2 or later
 */

defined('_JEXEC') or die;
/**
 *      Variables
 *  $item->link_text
 *  $item->link_image
 *  $item->link_icon_css
 *  $item->link_additional_text
 *  $item->media_type
 *  $item->responsive_images
 *  $item->link_video
 *  $item->link_video_poster
 *  $item->is_responsive_videos
 *  $item->responsive_videos
 *  $item->use_link
 *  $item->url
 */
?>
<nav>
	<ul class="nav mod_wt_quick_links my-2 py-1 flex-nowrap overflow-auto flex-lg-wrap <?php echo $moduleclass_sfx; ?> ">
	<?php foreach ($list as $item) : ?>
        <li>
	        <?php if($item->use_link == 1 && !empty($item->url)):?>
				<a href="<?php echo $item->url; ?>" class="btn btn-sm text-nowrap">
			<?php endif;?>
                <?php echo $item->link_text; ?>
			<?php if($item->use_link == 1 && !empty($item->url)):?>
				</a>
			<?php endif;?>
        </li>
        <?php endforeach; ?>
    </ul>
</nav>