| Current Path : /var/www/html/modules/mod_nobosstestimonials/tmpl/theme/ |
| Current File : /var/www/html/modules/mod_nobosstestimonials/tmpl/theme/model3.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. ?>
<?php if($itemsCustomization->show_arrows != 'none' && count($testimonials) > 3){
require JModuleHelper::getLayoutPath('mod_nobosstestimonials', 'common/arrows');
} ?>
<div class="testimonials-container">
<div data-list class="<?php echo !empty($itemsCustomization->enable_dragging) ? 'draggable' : '' ?> testimonials-inner <?php echo $paramsTestimonials->itemsHeight; ?>">
<?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 html do depoimento em texto no modelo atual
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 && count($testimonials) > 3){
require JModuleHelper::getLayoutPath('mod_nobosstestimonials', 'common/dots');
} ?>
</div>
<?php if($externalArea->content_display_mode) { ?>
</div>
</div>
<?php } ?>
</div>
</section>