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,7 @@
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 10 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 css
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 img
-rw-r--r-- 1 30094 users 882 Aug 31 2021 index.php
drwxr-xr-x 2 30094 users 6 Oct 6 10:16 js
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 templates

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 440 Aug 31 2021 jxproductzoomer.css

View File

@@ -0,0 +1,32 @@
#views_block-1 {
margin-top: 10px;
}
#image-block .span_link {
z-index: 1000;
}
.zoomLens {
max-width: 100%;
}
body > * .zoomContainer {
left: 0 !important;
top: 0 !important;
}
.images-container .product-cover .layer {
opacity: 1;
width: auto;
height: auto;
left: auto;
top: 10px;
right: 10px;
z-index: 6;
background: none;
}
.images-container .product-cover .layer i {
font-size: 30px;
line-height: 1;
}

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 4955 Aug 31 2021 window-positions.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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,6 @@
drwxr-xr-x 2 30094 users 6 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 882 Aug 31 2021 index.php
-rw-r--r-- 1 30094 users 84316 Aug 31 2021 jquery.ez-plus.js
-rw-r--r-- 1 30094 users 6068 Aug 31 2021 jxproductzoomer.js
-rw-r--r-- 1 30094 users 3741 Aug 31 2021 jxproductzoomer_admin.js

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,164 @@
/**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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() {
if (typeof(JXPRODUCTZOOMER_LIVE_MODE) == 'undefined' || !JXPRODUCTZOOMER_LIVE_MODE) {
return false;
}
var $d = $(this);
// update zoomed image when page is loaded
applyProductElevateZoom('body', $('.product-images li img.selected:visible').attr('data-image-large-src'));
// do if image changing is on hover
if (JXPRODUCTZOOMER_IMAGE_CHANGE_EVENT && !JXPRODUCTZOOMER_IS_MOBILE) {;
$d.on('mouseenter', '.product-images li img', function() {
if (!$(this).hasClass('selected')) {
$(this).closest('.product-images').find('img').removeClass('selected');
$(this).trigger('click').addClass('selected');
}
if (!$('.modal:visible').length) {
applyProductElevateZoom('#content', $(this).attr('data-image-large-src'));
} else if ($('.modal.quickview').length) {
applyProductElevateZoom('.quickview', $(this).attr('data-image-large-src'));
}
});
} else {
// refresh zoomed image on item click
$d.on('click', '.product-images li img', function() {
if (!$('.modal:visible').length) {
applyProductElevateZoom('#content', $(this).attr('data-image-large-src'));
} else if ($('.modal.quickview').length) {
applyProductElevateZoom('.quickview', $(this).attr('data-image-large-src'));
}
});
}
if (!JXPRODUCTZOOMER_FANCY_BOX) {
$('.layer').hide();
}
// refresh zoomed image on color change
prestashop.on('updatedProduct', function (e) {
if (!$('.quickview').length) {
applyProductElevateZoom('#content', $('.product-images li img.selected:visible').attr('data-image-large-src'));
} else {
applyProductElevateZoom('.quickview', $('.product-images li img.selected:visible').attr('data-image-large-src'));
}
});
// refresh zoomed image in quickview modal
prestashop.on('clickQuickView', function (e) {
setTimeout(function() {
applyProductElevateZoom('.quickview', $('.product-images li img.selected:visible').attr('data-image-large-src'));
}, 1000);
});
});
$(window).on('resize', function() {
$('.zoomContainer').remove();
if (!$('.quickview').length) {
applyProductElevateZoom('#content', $('.product-images li img.selected:visible').attr('data-image-large-src'));
} else {
applyProductElevateZoom('.quickview', $('.product-images li img.selected:visible').attr('data-image-large-src'));
}
});
// reload the image zoomer when event happened
function applyProductElevateZoom(container, image) {
var bigimage = image;
if (JXPRODUCTZOOMER_IS_MOBILE || (typeof(contentOnly) != 'undefined') && contentOnly) {
JXPRODUCTZOOMER_ZOOM_TYPE = 'lens';
JXPRODUCTZOOMER_ZOOM_SHOW_LENS = true;
}
if (JXPRODUCTZOOMER_ZOOM_TYPE == 'inner') {
JXPRODUCTZOOMER_ZOOM_SCROLL = false;
JXPRODUCTZOOMER_ZOOM_LEVEL = 1;
}
if (JXPRODUCTZOOMER_ZOOM_TYPE == 'lens') {
JXPRODUCTZOOMER_ZOOM_BORDER_SIZE = JXPRODUCTZOOMER_ZOOM_LENS_BORDER_SIZE;
JXPRODUCTZOOMER_ZOOM_BORDER_COLOR = JXPRODUCTZOOMER_ZOOM_LENS_BORDER_COLOR;
}
$(container).find('.product-cover img').ezPlus({
attrBigImageSrc: bigimage,
zoomType: JXPRODUCTZOOMER_ZOOM_TYPE,
zoomContainerAppendTo: $(container).find('.product-cover'), //zoom container parent selector
responsive: JXPRODUCTZOOMER_ZOOM_RESPONSIVE,
cursor: JXPRODUCTZOOMER_ZOOM_CURSOR,
easing: JXPRODUCTZOOMER_ZOOM_EASING,
easingAmount: JXPRODUCTZOOMER_ZOOM_EASING_AMOUNT,
scrollZoom: JXPRODUCTZOOMER_ZOOM_SCROLL,
zoomLevel: JXPRODUCTZOOMER_ZOOM_LEVEL,
minZoomLevel: JXPRODUCTZOOMER_ZOOM_MIN_LEVEL,
maxZoomLevel: JXPRODUCTZOOMER_ZOOM_MAX_LEVEL,
scrollZoomIncrement: JXPRODUCTZOOMER_ZOOM_SCROLL_INCREMENT,
touchEnabled: false,
zIndex: 5,
// window settings
zoomWindowFadeIn: JXPRODUCTZOOMER_ZOOM_WINDOW_FADE_IN,
zoomWindowFadeOut: JXPRODUCTZOOMER_ZOOM_WINDOW_FADE_OUT,
zoomWindowWidth: JXPRODUCTZOOMER_ZOOM_WINDOW_WIDTH,
zoomWindowHeight: JXPRODUCTZOOMER_ZOOM_WINDOW_HEIGHT,
zoomWindowOffsetX: JXPRODUCTZOOMER_ZOOM_WINDOW_OFFSET_X,
zoomWindowOffsetY: JXPRODUCTZOOMER_ZOOM_WINDOW_OFFSET_Y,
zoomWindowPosition: JXPRODUCTZOOMER_ZOOM_WINDOW_POSITION,
zoomWindowBgColour: JXPRODUCTZOOMER_ZOOM_WINDOW_BG_COLOUR,
borderSize: JXPRODUCTZOOMER_ZOOM_BORDER_SIZE,
borderColour: JXPRODUCTZOOMER_ZOOM_BORDER_COLOR,
// end window settings
// lens setings
showLens: JXPRODUCTZOOMER_ZOOM_SHOW_LENS,
lensSize: JXPRODUCTZOOMER_ZOOM_LENS_SIZE,
lensFadeIn: JXPRODUCTZOOMER_ZOOM_FADE_IN,
lensFadeOut: JXPRODUCTZOOMER_ZOOM_FADE_OUT,
lensOpacity: JXPRODUCTZOOMER_ZOOM_LENS_OPACITY,
lensShape: JXPRODUCTZOOMER_ZOOM_LENS_SHAPE,
lensColour: JXPRODUCTZOOMER_ZOOM_LENS_COLOUR,
lensBorderSize: JXPRODUCTZOOMER_ZOOM_LENS_BORDER_SIZE,
lensBorderColour: JXPRODUCTZOOMER_ZOOM_LENS_BORDER_COLOR,
containLensZoom: JXPRODUCTZOOMER_ZOOM_CONTAIN_LENS_ZOOM,
//end lens settings
// tint settins
tint: JXPRODUCTZOOMER_ZOOM_TINT,
tintColour: JXPRODUCTZOOMER_ZOOM_TINT_COLOUR,
tintOpacity: JXPRODUCTZOOMER_ZOOM_TINT_OPACITY,
zoomTintFadeIn: JXPRODUCTZOOMER_ZOOM_WINDOW_TINT_FADE_IN,
zoomTintFadeOut: JXPRODUCTZOOMER_ZOOM_WINDOW_TINT_FADE_OUT,
// callBacks
onZoomedImageLoaded: function() {
if (!JXPRODUCTZOOMER_FANCY_BOX) {
$('.layer').hide();
}
},
// responsive
respond: [
{
range: '1-767',
zoomType: 'lens'
}]
});
}

View File

@@ -0,0 +1,107 @@
/**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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() {
jxproductzoomer_extended_settings_check();
$(document).on('change', 'select[name="JXPRODUCTZOOMER_ZOOM_TYPE"]', function() {
if (jxproductzoomer_extended_settings_status()) {
jxproductzoomer_type_check();
}
});
$(document).on('change', 'input[name="JXPRODUCTZOOMER_ZOOM_TINT"]', function() {
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_TINT', 'tint');
});
$(document).on('change', 'input[name="JXPRODUCTZOOMER_ZOOM_SHOW_LENS"]', function() {
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_SHOW_LENS', 'lens');
});
$(document).on('change', 'input[name="JXPRODUCTZOOMER_ZOOM_EASING"]', function() {
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_EASING', 'easing');
});
$(document).on('change', 'input[name="JXPRODUCTZOOMER_EXTENDED_SETTINGS"]', function() {
jxproductzoomer_extended_settings_check();
});
});
function jxproductzoomer_setting_check(name, type) {
jxproductzoomer_setting_status = $('input[name="'+name+'"]:checked').val();
if (jxproductzoomer_setting_status) {
$('.form-group.'+type+'-block').removeClass('hidden');
} else {
$('.form-group.'+type+'-block').addClass('hidden');
}
}
function jxproductzoomer_type_check() {
jxproductzoomer_type = $('select[name="JXPRODUCTZOOMER_ZOOM_TYPE"]').val();
if (jxproductzoomer_type == 'window') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('window-type')) {
$(this).removeClass('hidden');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_TINT', 'tint');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_SHOW_LENS', 'lens');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_EASING', 'easing');
} else {
$(this).addClass('hidden');
}
});
} else if (jxproductzoomer_type == 'lens') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('lens-type')) {
$(this).removeClass('hidden');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_TINT', 'tint');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_SHOW_LENS', 'lens');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_EASING', 'easing');
} else {
$(this).addClass('hidden');
}
});
} else if (jxproductzoomer_type == 'inner') {
$('.form-wrapper > .form-group').each(function() {
if ($(this).hasClass('inner-type')) {
$(this).removeClass('hidden');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_TINT', 'tint');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_SHOW_LENS', 'lens');
jxproductzoomer_setting_check('JXPRODUCTZOOMER_ZOOM_EASING', 'easing');
} else {
$(this).addClass('hidden');
}
});
}
}
function jxproductzoomer_extended_settings_check() {
if (jxproductzoomer_extended_settings_status()) {
jxproductzoomer_type_check();
} else {
$('.form-group.extended-settings').addClass('hidden');
}
}
function jxproductzoomer_extended_settings_status() {
return $('input[name="JXPRODUCTZOOMER_EXTENDED_SETTINGS"]:checked').val();
}

View File

@@ -0,0 +1,5 @@
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 admin
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 hook
-rw-r--r-- 1 30094 users 882 Aug 31 2021 index.php

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 _configure

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 helpers

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 form

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1084 Aug 31 2021 form.tpl

View File

@@ -0,0 +1,35 @@
{**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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)
*}
{extends file="helpers/form/form.tpl"}
{block name="field"}
{if $input.type == 'jxproductzoomer_sample_image'}
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<img src="{$image_path|escape:'html':'UTF-8'}/window-positions.png" alt="" />
<p class="help-block">{l s='Once positioned, use zoomWindowOffsetx and zoomWindowOffsety to adjust
Possible values: 1-16' mod='jxproductzoomer'}</p>
</div>
</div>
{/if}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,4 @@
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 929 Aug 31 2021 jxproductzoomer-mobile.tpl
-rw-r--r-- 1 30094 users 930 Aug 31 2021 jxproductzoomer.tpl

View File

@@ -0,0 +1,28 @@
{**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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)
*}
<script type="text/javascript">
{foreach from=$settings key=variable item=content name=content}
var {$variable|escape:'html':'UTF-8'} = {if !$content.value}false{elseif $content.type == 'string'}'{$content.value|escape:'html':'UTF-8'}'{else}{$content.value|escape:'html':'UTF-8'}{/if};
{/foreach}
var JXPRODUCTZOOMER_IS_MOBILE = true;
</script>

View File

@@ -0,0 +1,28 @@
{**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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)
*}
<script type="text/javascript">
{foreach from=$settings key=variable item=content name=content}
var {$variable|escape:'html':'UTF-8'} = {if !$content.value}false{elseif $content.type == 'string'}'{$content.value|escape:'html':'UTF-8'}'{else}{$content.value|escape:'html':'UTF-8'}{/if};
{/foreach}
var JXPRODUCTZOOMER_IS_MOBILE = false;
</script>

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2019 Zemez
*
* JX Product Zoomer
*
* 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;