first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
drwxr-xr-x 2 30094 users 5 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 867 Aug 31 2021 index.php
-rw-r--r-- 1 30094 users 3284 Aug 31 2021 jxproductlistgallery.js
-rw-r--r-- 1 30094 users 1684 Aug 31 2021 jxproductlistgallery_admin.js

View File

@@ -0,0 +1,32 @@
<?php
/*
* 2017-2019 Zemez
*
* JX Product List Gallery
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,96 @@
/*
* 2017-2019 Zemez
*
* JX Product List Gallery
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
/* Rollover */
$(document).ready(function () {
if (JX_PLG_TYPE != 'rollover') {
initCarousel();
}
var target = document.getElementById('products');
if (target) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
initCarousel();
});
});
observer.observe(target, {childList: true});
}
});
function initCarousel() {
$('.thumbnails-carousel').each(function () {
var thumbnailsCarousel = $(this);
thumbnailsCarousel.carousel({
interval: false
});
$(this).on('click', '.left', function (e) {
e.preventDefault();
e.stopPropagation();
thumbnailsCarousel.carousel('prev');
});
$(this).on('click', '.right', function (e) {
e.preventDefault();
e.stopPropagation();
thumbnailsCarousel.carousel('next');
});
$(this).on('click', '.carousel-indicators li', function (e) {
e.preventDefault();
e.stopPropagation();
thumbnailsCarousel.carousel($(this).data('slide-to'));
});
if ((JX_PLG_TYPE == 'gallery' && JX_PLG_USE_CAROUSEL) || (JX_PLG_TYPE == 'slideshow' && JX_PLG_USE_PAGER)) {
thumbnailsPosition(thumbnailsCarousel);
thumbnailsCarousel.on('slide.bs.carousel', function (e) {
thumbnailsPosition(thumbnailsCarousel, e);
})
}
});
}
function thumbnailsPosition(thumbnailsCarousel, e) {
var widthThumb = thumbnailsCarousel.find('.carousel-indicators li:first-child').outerWidth(true);
if (JX_PLG_TYPE != 'gallery') {
thumbnailsCarousel.find('.carousel-indicators').width(widthThumb * JX_PLG_CAROUSEL_NB);
}
if (e) {
var activeThumb = $(e.relatedTarget).index() + 1;
} else {
var activeThumb = thumbnailsCarousel.find('.carousel-indicators li.active').index() + 1;
}
if (activeThumb != thumbnailsCarousel.find('.carousel-indicators li').length) {
var visibleThumb = JX_PLG_CAROUSEL_NB - 1;
} else {
var visibleThumb = JX_PLG_CAROUSEL_NB;
}
if (activeThumb > visibleThumb) {
thumbnailsCarousel.find('.carousel-indicators li').css({
'-webkit-transform' : 'translateX(-' + widthThumb * (activeThumb - visibleThumb) + 'px)',
'-moz-transform' : 'translateX(-' + widthThumb * (activeThumb - visibleThumb) + 'px)',
'-ms-transform' : 'translateX(-' + widthThumb * (activeThumb - visibleThumb) + 'px)',
'-o-transform' : 'translateX(-' + widthThumb * (activeThumb - visibleThumb) + 'px)',
'transform' : 'translateX(-' + widthThumb * (activeThumb - visibleThumb) + 'px)'
});
} else {
thumbnailsCarousel.find('.carousel-indicators li').css({'-webkit-transform' : 'translateX(0)'});
}
}

View File

@@ -0,0 +1,57 @@
/*
* 2017-2019 Zemez
*
* JX Product List Gallery
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
$(document).ready(function() {
jxproductlistgallery_type_check();
$(document).on('change', 'select[name="JX_PLG_TYPE"]', function() {
jxproductlistgallery_type_check();
});
});
function jxproductlistgallery_type_check() {
jxproductlistgallery_type = $('select[name="JX_PLG_TYPE"]').val();
if (jxproductlistgallery_type == 'rollover') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('rollover-type')) {
$(this).removeClass('hidden');
} else {
$(this).addClass('hidden');
}
});
} else if (jxproductlistgallery_type == 'gallery') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('gallery-type')) {
$(this).removeClass('hidden');
} else {
$(this).addClass('hidden');
}
});
} else if (jxproductlistgallery_type == 'slideshow') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('slideshow-type')) {
$(this).removeClass('hidden');
} else {
$(this).addClass('hidden');
}
});
}
}