File manager - Edit - /home/jardides/www/Jardi-design/j37/modules/mod_sliderck/tmpl/default.php
Back
<?php /** * @copyright Copyright (C) 2016 Cédric KEIFLIN alias ced1870 * http://www.template-creator.com * http://www.joomlack.fr * @license GNU/GPL * */ defined('_JEXEC') or die; ?> <div class="swiper-container swiper-layout-<?php echo $params->get('layout', 'over') ?> <?php echo $moduleclass_sfx ?>" id="sliderck<?php echo $module->id ?>" dir="<?php echo $langdirection ?>" data-effect="<?php echo $effect ?>"> <div class="swiper-wrapper"> <?php $i = 1; foreach ($items as $item) { // limit the number of slides if ($numberslides && $i > $numberslides) break; // set variables $link = $params->get('linkautoimage', '0') == '1' && $item->path ? JUri::root(true) . '/' . $item->path : $item->link; $linkClass = ( $linkposition == 'button' ? $params->get('linkbuttonclass', 'btn') . ' swiper-button' : ' swiper-link' ); $linkTarget = ( $params->get('linktarget', 'same') == 'new' ? ' target="_blank"' : '' ); $startLink = '<a class="' . $linkClass .'" href="' . $link . '"' . $lightboxAttribs . $linkTarget . '>'; ?> <div class="swiper-slide"> <?php // TODO : use height:calc(100% - <?php echo $captionheight // if ($item->path) { ?> <figure class="swiper-img-cont" style="background-image:url('<?php echo JUri::root(true) . '/' . $item->path ?>')"> <img class="swiper-img" alt="<?php echo $item->title ?>" src="<?php echo JUri::root(true) . '/' . $item->path ?>" /> </figure> <?php // } $showcaption = $params->get('showcaption', '1') == '1' && ($item->title || $item->desc); $showtitle = $params->get('showtitle', '1') == '1' && $item->title; $showdescription = $params->get('showdescription', '1') == '1' && $item->desc; if ($showcaption) { ?> <div class="swiper-caption"> <?php if ($showtitle) { ?> <div class="swiper-title"> <?php if ($link && $linkposition == 'title') { echo $startLink . $item->title . '</a>'; } else { echo $item->title; } ?> </div> <?php } ?> <?php if ($showdescription) { ?> <div class="swiper-desc"> <?php echo modSliderckHelper::substring($item->desc, $params->get('textlength', '100')) ?> </div> <?php } ?> <?php if (isset($item->more) && count($item->more)) { foreach ($item->more as $m) { echo $m; } } ?> <?php if ($link && $linkposition == 'caption') { echo $startLink . '</a>'; } ?> <?php if ($link && $linkposition == 'button') { ?> <?php echo $startLink . JText::_($params->get('linkbuttontext', 'MOD_SLIDERCK_LINK_BUTTON_TEXT')) . '</a>'; ?> <?php } ?> </div> <?php } ?> <?php if ($link && $linkposition == 'fullslide') { echo $startLink . '</a>'; } ?> </div> <?php $i++; } ?> </div> <?php if ($params->get('pagination', 'bullets') != 'none') { ?> <div class="swiper-pagination"></div> <?php } ?> <?php if ($params->get('navigationbuttons', '1') == '1') { ?> <div class="swiper-button-next"></div> <div class="swiper-button-prev"></div> <?php } ?> </div> <?php if ($params->get('pagination', 'bullets') == 'thumbs') { ?> <div class="swiper-container gallery-thumbs" id="sliderck<?php echo $module->id ?>thumbs" dir="<?php echo $langdirection ?>"> <div class="swiper-wrapper"> <?php $i = 1; foreach ($items as $item) { if ($numberslides && $i > $numberslides) break; ?> <div class="swiper-slide" style="background-image:url('<?php echo JUri::root(true) . '/' . $item->path ?>')"></div> <?php $i++; } ?> </div> </div> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings