Your IP : 216.73.216.224


Current Path : /var/www/html/modules/mod_nobosstestimonials/tmpl/theme/
Upload File :
Current File : /var/www/html/modules/mod_nobosstestimonials/tmpl/theme/model2.php

<?php
/**
 * @package			No Boss Extensions
 * @subpackage  	No Boss Testimonials
 * @author			No Boss Technology <contact@nobosstechnology.com>
 * @copyright		Copyright (C) 2018 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;

?>
<script type="text/javascript">
    var jsConfig = {};
    jsConfig = <?php echo json_encode($jsConfig); ?>;
    if (moduleList === undefined) {
        var moduleList = [];
    }
    moduleList["<?php echo $module->name . '_' . $module->id; ?>"] = jsConfig;
</script>

<section <?php echo "module-id={$module->name}_{$module->id}"; ?> style="<?php echo $externalArea->external_area_height; ?><?php echo $sectionStyle; ?> <?php if(!empty($testimonialsBackground)){ echo $testimonialsBackground; }?>"
    class="nobossmodule__section <?php echo "{$module->name} {$module->name}--{$theme}"; ?>  <?php if ($testimonialsBackgroundType == 'background-image'){ echo ' testimonials-banner'; } ?> "> 
    <div 
        class="testimonials app-controller"
        data-callback="testimonials"
        style=""
    >
    <?php if($externalArea->content_display_mode) { ?>
        <div class="nb-container">
            <div class="<?php echo $itemColumns; ?>">
    <?php } ?>
    <?php // Exibe cabeçalho dos depoimentos ?>
    <?php require JModuleHelper::getLayoutPath($extensionName, 'common/external_area');?>
    
    <?php // Verifica se existe pelo menos 1 depoimento. ?>
        <div class="testimonials-container" data-slider>
        <?php if($itemsCustomization->show_arrows != 'none' && count($testimonials) > 3 && $itemsCustomization->items_orientation != "vertical"){ 
            require JModuleHelper::getLayoutPath('mod_nobosstestimonials', 'common/arrows');
        } ?>
            <div data-list class="<?php echo !empty($itemsCustomization->enable_dragging) ? 'draggable' : '' ?> testimonials-inner testimonials--<?php echo $paramsTestimonials->itemsOrientation; ?>">
                <?php // Exibe template conforme o tipo do depoimento. 
                foreach($testimonials as $key => $testimonial){ 
                    // Este model aceita somente depoimentos em texto
                    if($testimonial->display_type == 'text'){
                        // renderiza o template de depoimentos em texto
                        require JModuleHelper::getLayoutPath('mod_nobosstestimonials', 'theme/' . $theme . '_' . $testimonial->display_type); 
                    } 
                } ?>
            </div>
            <?php // verifica se os dots devem ser exibidos e inclui o arquivo ?>
            <?php if($itemsCustomization->show_dots){ 
                require JModuleHelper::getLayoutPath('mod_nobosstestimonials', 'common/dots');
            } ?>		
        </div>
         <?php if($externalArea->content_display_mode) { ?>
            </div>
        </div>
    <?php } ?>
    </div>
</section>