<?php
/**
 * @package			No Boss Extensions
 * @subpackage  	No Boss Calendar
 * @author			No Boss Technology <contact@nobosstechnology.com>
 * @copyright		Copyright (C) 2020 No Boss Technology. All rights reserved.
 * @license			GNU Lesser General Public License version 3 or later; see <https://www.gnu.org/licenses/lgpl-3.0.en.html>
 */

defined('_JEXEC') or die;
?>

<?php // Percorre as legendas. ?>
<div class="nb-legends__categories" style="<?php echo $custom->categories_size; ?>">
	<?php foreach($dataCalendar['legends'] as $legend){ ?> 
		<?php if($legend->show_in_legends && substr($legend->id, 0, 4) !== "none"){ ?>
			<a href="#" data-category-id="<?php echo $legend->id; ?>" class="nb-legends__category" style='<?php echo "color: {$custom->categories_text_color};"; ?> <?php echo "background-color: {$legend->category_color};"; ?>'><?php echo $legend->legend; ?></a>
		<?php }?>
	<?php } ?>
</div>

