<?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();
?>
<section class="<?php echo "{$module->name} {$module->name}--{$theme}"; ?> <?php echo !$externalArea->content_display_mode ? 'nb-full-width' : ''?> calendar-section" 
    style="<?php echo $sectionStyle; ?>"
    id="calendario-de-eventos"  <?php echo "module-id={$module->name}_{$module->id}"; ?>>
    
    <?php
    if($externalArea->content_display_mode) {
        ?>
        <div class="nb-container">
            <div class="<?php echo $itemColumns; ?>">
        <?php
    }
                // Carrega area externa
                require JModuleHelper::getLayoutPath($extensionName, 'common/external_area_content');

                // Carrega os cards dos eventos
                require JModuleHelper::getLayoutPath($extensionName, 'theme/model2_body');
                
                if($externalArea->content_display_mode) { 
        ?>
            </div>
        </div>
        <?php
    }
    ?>
</section>
