| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/modules/mod_carouselck/tmpl/ |
Upload File : |
<?php
/**
* @copyright Copyright (C) 2012-2019 Cedric KEIFLIN alias ced1870
* https://www.joomlack.fr
* Module Carousel CK
* @license GNU/GPL
* */
// no direct access
defined('_JEXEC') or die('Restricted access');
// get the slideshow width
$width = ($params->get('width') AND $params->get('width') != 'auto') ? ' style="width:' . $params->get('width') . 'px;"' : '';
?>
<div class="carouselck<?php echo $params->get('moduleclass_sfx'); ?> carouselck_wrap <?php echo $params->get('skin'); ?>" id="carouselck_wrap_<?php echo $module->id; ?>"<?php echo $width; ?>>
<?php
foreach ($items as $i => $item) {
if ($params->get('limitslides', '') && $i >= $params->get('limitslides', ''))
break;
// B/C for V1
if (isset($item->imgname) && ! isset($item->image)) CarouselckHelper::legacyUpdateItem($item);
// automatically create the minified thumb and use it
$item->thumb = $item->image;
if ($params->get('thumbnails', '1') == '1' && $params->get('autocreatethumbs','1') && $params->get('usethumbstype', 'mini') == 'mini') {
$item->thumb = CarouselckHelper::resizeImage($item->image, $params->get('thumbnailwidth', '182'), $params->get('thumbnailheight', '187'));
}
// use the minified thumb but don't create it
else if ($params->get('thumbnails', '1') == '1' && $params->get('usethumbstype','mini') == 'mini'){
$thumbext = explode(".", $item->image);
$thumbext = end($thumbext);
$thumbfile = str_replace(basename($item->image), "th/" . basename($item->image), $item->image);
$thumbfile = str_replace("." . $thumbext, "_th." . $thumbext, $thumbfile);
if (file_exists(JPATH_ROOT . '/' . trim($thumbfile, '/'))) {
$item->thumb = JURI::root(true) . '/' . trim($thumbfile, '/');
}
}
// create new images for mobile
if ($params->get('usemobileimage', '0') && $params->get('autocreatethumbs','1')) {
$resolutions = explode(',', $params->get('mobileimageresolution', '640'));
foreach ($resolutions as $resolution) {
CarouselckHelper::resizeImage($item->image, (int)$resolution, '', (int)$resolution, '');
}
}
if ($item->alignment != 'default') {
$alignment = ' data-alignment="' . $item->alignment . '"';
} else {
$alignment = '';
}
$datacaptiontitle = str_replace("|dq|", "\"", (string)$item->title);
$datacaptiontext = str_replace("|dq|", "\"", (string)$item->text);
$datacaptionforlightbox = $datacaptiontitle . ( $datacaptiontext ? '::' . $datacaptiontext : '');
$dataalt = htmlspecialchars(str_replace("\"", """, str_replace(">", ">", str_replace("<", "<", $datacaptiontitle))));
$datatitle = ($params->get('lightboxcaption', 'caption') != 'caption') ? 'data-title="' . htmlspecialchars(str_replace("\"", """, str_replace(">", ">", str_replace("<", "<", $datacaptionforlightbox)))) . '" ' : '';
$datathumb = $params->get('pagination', '1') == '1' ? ' data-thumb="' . $item->thumb . '"' : '';
$album = ($params->get('lightboxgroupalbum', '0')) ? '[albumcarouselck' .$module->id .']' : '';
$target = ($item->target == 'default') ? $params->get('linktarget') : $item->target;
$datarel = ($target == 'lightbox') ? 'data-rel="lightbox' . $album . '" ' : '';
$datatime = ($item->time) ? ' data-time="' . $item->time . '"' : '';
$link = $params->get('linkautoimage', '0') == '1' && $item->image && !$item->link ? $item->image : $item->link;
if ($params->get('lightboxautolinkimages', '0') == '1') {
$item->link = $item->link ? $item->link : $item->image;
}
$linkposition = $params->get('linkposition', 'fullslide');
$linkClass = ( $linkposition == 'button' ? $params->get('linkbuttonclass', '') . ' carouselck-button' : ' carouselck-link' );
$linkTarget = ( $target == '_blank' ? ' target="_blank" rel="noopener noreferrer"' : '' );
$startLink = '<a class="' . $linkClass .'" href="' . $link . '"' . $linkTarget . '>';
?>
<div class="carouselck" <?php echo $datarel . $datatitle; ?>data-alt="<?php echo $dataalt; ?>"<?php echo $datathumb ?> data-src="<?php echo $item->image; ?>" <?php if ($link && $linkposition == 'fullslide') echo 'data-link="' . $link . '" data-target="' . $target . '"'; echo $alignment . $datatime; ?>>
<?php if ($params->get('imageforseo', '0')) { ?>
<img src="<?php echo $item->image; ?>" style="display:none" alt="<?php echo $item->title ?>" />
<?php } ?>
<?php if ($item->video) { ?>
<iframe src="<?php echo $item->video; ?>" width="100%" height="100%" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<?php
}
if (($params->get('usecaption', '1') == '1') && ($item->title || $item->text) && (($params->get('lightboxcaption', 'caption') != 'title' || $target != 'lightbox') || !$link)) {
?>
<?php if ($params->get('usecaption', '1')) { ?>
<div class="carouselck_caption <?php echo $params->get('captioneffect', 'moveFromBottom')?>">
<?php
// $showcaption = $params->get('usecaption', '1') == '1' && ($item->title || $item->desc);
$showtitle = $params->get('usetitle', '1') == '1' && $item->title;
$showdescription = $params->get('usecaptiondesc', '1') == '1' && $item->text;
if ($showtitle) { ?>
<div class="carouselck_caption_title">
<?php if ($link && $linkposition == 'title') {
echo $startLink . str_replace("|dq|", "\"", (string)$item->title) . '</a>';
} else {
echo $item->title;
} ?>
</div>
<?php } ?>
<?php if ($showdescription) { ?>
<div class="carouselck_caption_desc">
<?php
$caption = str_replace("|dq|", "\"", (string)$item->text);
$textlength = (int)$params->get('textlength', '0');
if ($params->get('fixhtml', '0') == '1' && trim($caption)) {
// Parse the html code of the text into a fixer to avoid bad rendering issues
$htmlfixer = new CarouselCKHtmlFixer();
$captionFixed = $htmlfixer->getFixedHtml(trim($caption));
$caption = $captionFixed;
}
if ($params->get('striptags', '0') == '1') {
$caption = strip_tags($caption);
}
if ($textlength > 0) {
$caption = CarouselckHelper::substring($caption, $textlength, '...', false);
}
echo $caption;
?>
</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_CAROUSELCK_LINK_BUTTON_TEXT')) . '</a>'; ?>
<?php } ?>
</div>
<?php }
?>
<?php
} else {
?>
<div class="carouselck_caption emptyck">
</div>
<?php
}
?>
</div>
<?php }
?>
</div>
<div style="clear:both;"></div>