first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,235 @@
/*!
Zoom 1.7.20
license: MIT
http://www.jacklmoore.com/zoom
*/
(function ($) {
var defaults = {
url: false,
callback: false,
target: false,
duration: 120,
on: 'mouseover', // other options: grab, click, toggle
touch: true, // enables a touch fallback
onZoomIn: false,
onZoomOut: false,
magnify: 1
};
// Core Zoom Logic, independent of event listeners.
$.zoom = function(target, source, img, magnify) {
var targetHeight,
targetWidth,
sourceHeight,
sourceWidth,
xRatio,
yRatio,
offset,
$target = $(target),
position = $target.css('position'),
$source = $(source);
// The parent element needs positioning so that the zoomed element can be correctly positioned within.
target.style.position = /(absolute|fixed)/.test(position) ? position : 'relative';
target.style.overflow = 'hidden';
img.style.width = img.style.height = '';
$(img)
.addClass('zoomImg')
.css({
position: 'absolute',
top: 0,
left: 0,
opacity: 0,
width: img.width * magnify,
height: img.height * magnify,
border: 'none',
maxWidth: 'none',
maxHeight: 'none'
})
.appendTo(target);
return {
init: function() {
targetWidth = $target.outerWidth();
targetHeight = $target.outerHeight();
if (source === target) {
sourceWidth = targetWidth;
sourceHeight = targetHeight;
} else {
sourceWidth = $source.outerWidth();
sourceHeight = $source.outerHeight();
}
xRatio = (img.width - targetWidth) / sourceWidth;
yRatio = (img.height - targetHeight) / sourceHeight;
offset = $source.offset();
},
move: function (e) {
var left = (e.pageX - offset.left),
top = (e.pageY - offset.top);
top = Math.max(Math.min(top, sourceHeight), 0);
left = Math.max(Math.min(left, sourceWidth), 0);
img.style.left = (left * -xRatio) + 'px';
img.style.top = (top * -yRatio) + 'px';
}
};
};
$.fn.zoom = function (options) {
return this.each(function () {
var
settings = $.extend({}, defaults, options || {}),
//target will display the zoomed image
target = settings.target && $(settings.target)[0] || this,
//source will provide zoom location info (thumbnail)
source = this,
$source = $(source),
img = document.createElement('img'),
$img = $(img),
mousemove = 'mousemove.zoom',
clicked = false,
touched = false;
// If a url wasn't specified, look for an image element.
if (!settings.url) {
var srcElement = source.querySelector('img');
if (srcElement) {
settings.url = srcElement.getAttribute('data-src') || srcElement.currentSrc || srcElement.src;
}
if (!settings.url) {
return;
}
}
$source.one('zoom.destroy', function(position, overflow){
$source.off(".zoom");
target.style.position = position;
target.style.overflow = overflow;
img.onload = null;
$img.remove();
}.bind(this, target.style.position, target.style.overflow));
img.onload = function () {
var zoom = $.zoom(target, source, img, settings.magnify);
function start(e) {
zoom.init();
zoom.move(e);
// Skip the fade-in for IE8 and lower since it chokes on fading-in
// and changing position based on mousemovement at the same time.
$img.stop()
.fadeTo($.support.opacity ? settings.duration : 0, 1, $.isFunction(settings.onZoomIn) ? settings.onZoomIn.call(img) : false);
}
function stop() {
$img.stop()
.fadeTo(settings.duration, 0, $.isFunction(settings.onZoomOut) ? settings.onZoomOut.call(img) : false);
}
// Mouse events
if (settings.on === 'grab') {
$source
.on('mousedown.zoom',
function (e) {
if (e.which === 1) {
$(document).one('mouseup.zoom',
function () {
stop();
$(document).off(mousemove, zoom.move);
}
);
start(e);
$(document).on(mousemove, zoom.move);
e.preventDefault();
}
}
);
} else if (settings.on === 'click') {
$source.on('click.zoom',
function (e) {
if (clicked) {
// bubble the event up to the document to trigger the unbind.
return;
} else {
clicked = true;
start(e);
$(document).on(mousemove, zoom.move);
$(document).one('click.zoom',
function () {
stop();
clicked = false;
$(document).off(mousemove, zoom.move);
}
);
return false;
}
}
);
} else if (settings.on === 'toggle') {
$source.on('click.zoom',
function (e) {
if (clicked) {
stop();
} else {
start(e);
}
clicked = !clicked;
}
);
} else if (settings.on === 'mouseover') {
zoom.init(); // Preemptively call init because IE7 will fire the mousemove handler before the hover handler.
$source
.on('mouseenter.zoom', start)
.on('mouseleave.zoom', stop)
.on(mousemove, zoom.move);
}
// Touch fallback
if (settings.touch) {
$source
.on('touchstart.zoom', function (e) {
e.preventDefault();
if (touched) {
touched = false;
stop();
} else {
touched = true;
start( e.originalEvent.touches[0] || e.originalEvent.changedTouches[0] );
}
})
.on('touchmove.zoom', function (e) {
e.preventDefault();
zoom.move( e.originalEvent.touches[0] || e.originalEvent.changedTouches[0] );
})
.on('touchend.zoom', function (e) {
e.preventDefault();
if (touched) {
touched = false;
stop();
}
});
}
if ($.isFunction(settings.callback)) {
settings.callback.call(img);
}
};
img.setAttribute('role', 'presentation');
img.src = settings.url;
});
};
$.fn.zoom.defaults = defaults;
}(window.jQuery));

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,168 @@
$(document).ready(function(){
var activeTab = $('input[name="submited_tab"]').val();
if($('#'+activeTab).length > 0)
{
$('#'+activeTab).addClass('active');
$('.'+activeTab).addClass('active');
}
else
{
$('#ybc_tab_general').addClass('active');
$('.ybc_tab_general').addClass('active');
}
$('.ybc_tab > li').click(function(){
$('.ybc_tab > li').removeClass('active');
$('.ybc-form-group').removeClass('active');
$(this).addClass('active');
$('.'+$(this).data('tab')).addClass('active');
$('input[name="submited_tab"]').val($(this).attr('id'));
});
$('#module_form_submit_btn').click(function(){
ybcFileUpload = false;
$('input[type="file"]').each(function(){
if($(this).val())
ybcFileUpload = true;
});
if(!ybcFileUpload && !$(this).hasClass('active'))
{
$('.ybc-udpate-message').html('');
$('.bootstrap > .alert').remove();
$(this).addClass('active');
$('.ybc-tc-loading').addClass('active');
$('.ybc-update-success-msg').remove();
$('.ybc-update-error-msg').remove();
$.ajax({
url: $('#module_form').attr('action')+'&ajax=1',
type: 'post',
dataType: 'json',
data: $('#module_form').serialize(),
success: function(json)
{
$('#module_form_submit_btn').removeClass('active');
$('.ybc-tc-loading').removeClass('active');
if(json.error)
{
$('.ybc-udpate-message').html(json.error);
$('.ybc-tc-loading').after('<div class="ybc-update-error-msg" style="display: none;">'+json.errorAlert+'</div>');
$('.ybc-update-success-msg').fadeIn().delay(3000).fadeOut();
}
else
if(json.success)
{
$('.ybc-tc-loading').after('<div class="ybc-update-success-msg" style="display: none;">'+json.success+'</div>');
$('.ybc-update-success-msg').fadeIn().delay(3000).fadeOut();
if(json.reload)
location.reload();
}
},
error: function()
{
$('#module_form_submit_btn').removeClass('active');
$('.ybc-tc-loading').removeClass('active');
}
});
return false;
}
});
//Custom color
if($('#YBC_TC_SKIN').val()=='CUSTOM')
{
$('.ybc_custom_color').addClass('active').removeClass('color-off');
}
else
$('.ybc_custom_color').removeClass('active').addClass('color-off');
$('#YBC_TC_SKIN').change(function(){
if($(this).val()=='CUSTOM')
{
$('.ybc_custom_color').addClass('active').removeClass('color-off');
}
else
{
$('.ybc_custom_color').removeClass('active').addClass('color-off');
}
});
$('#ybc_submit_import').click(function(){
if(!$('#ybc_submit_import').hasClass('active') && confirm($('#ybc_import_warning_msg').text()))
{
$('#ybc_submit_import').addClass('active');
$('.ybc-tc-import-loading').addClass('active');
$('.ybc-import-error-msg').remove();
$('.ybc-import-success-msg').remove();
$.ajax({
url: $('#module_form').attr('action')+'&import_data=1',
type: 'post',
dataType: 'json',
data: $('#module_form').serialize(),
success: function(json)
{
$('#ybc_submit_import').removeClass('active');
$('.ybc-tc-import-loading').removeClass('active');
if(json.error)
{
$('.ybc-tc-import-loading').after('<div class="ybc-import-error-msg alert alert-danger" style="display: none;">'+json.error+'</div>');
$('.ybc-import-error-msg').fadeIn();
}
else
if(json.success)
{
$('.ybc-tc-import-loading').after('<div class="ybc-import-success-msg alert alert-success" style="display: none;">'+json.success+'</div>');
$('.ybc-import-success-msg').fadeIn().delay(3000).fadeOut();
if(json.reload)
location.reload();
}
},
error: function()
{
$('#ybc_submit_import').removeClass('active');
$('.ybc-tc-import-loading').removeClass('active');
},
});
}
return false;
});
$('#ybc_submit_export').click(function(){
if(!$('#ybc_submit_export').hasClass('active') && confirm($('#ybc_export_warning_msg').text()))
{
$('#ybc_submit_export').addClass('active');
$('.ybc-tc-import-loading').addClass('active');
$('.ybc-import-error-msg').remove();
$('.ybc-import-success-msg').remove();
$.ajax({
url: $('#module_form').attr('action'),
type: 'post',
dataType: 'json',
data: 'export_data=1',
success: function(json)
{
$('#ybc_submit_export').removeClass('active');
$('.ybc-tc-import-loading').removeClass('active');
if(json.error)
{
$('.ybc-tc-import-loading').after('<div class="ybc-import-error-msg alert alert-danger" style="display: none;">'+json.error+'</div>');
$('.ybc-import-error-msg').fadeIn();
}
else
if(json.success)
{
$('.ybc-tc-import-loading').after('<div class="ybc-import-success-msg alert alert-success" style="display: none;">'+json.success+'</div>');
$('.ybc-import-success-msg').fadeIn().delay(3000).fadeOut();
if(json.reload)
location.reload();
}
},
error: function()
{
$('#ybc_submit_export').removeClass('active');
$('.ybc-tc-import-loading').removeClass('active');
},
});
}
return false;
});
});

2
modules/ybc_themeconfig/js/wow.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,232 @@
/*floating header*/
$(function() {
if ($('.header_bottom.ybc_float_header').length > 0)
{
if ( $('#header.layout_2').length > 0 || ('#header.layout_3').length > 0 ){
if ( $('.ybc-menu-wrapper').length > 0){
var sticky_navigation_offset_top = $('.ybc-menu-wrapper').offset().top;
}
}else{
var sticky_navigation_offset_top = $('.main-menu').offset().top;
}
var headerFloatingHeight = $('.main-menu').height();
var sticky_navigation = function(){
var scroll_top = $(window).scrollTop();
if (scroll_top > sticky_navigation_offset_top) {
if ($(window).width() >= 992){
$('.main-menu').addClass('scroll_heading').css({ 'position': 'fixed','z-index':'10'});
$('#header').css({'margin-bottom':''+headerFloatingHeight+'px'});
$('.main-menu').addClass('has_fixed');
$('.header_style_1 .ybc-menu-main-content').slideUp(0);
}
} else {
$('.main-menu').removeClass('scroll_heading').css({ 'position': 'relative','z-index':'0' });
$('#header').css({'margin-bottom':'0px'});
$('.main-menu').removeClass('has_fixed');
if ($(window).width() > 1199){
$('#index .header_style_1 .ybc-menu-main-content').slideDown(0);
} else {
$('#index .header_style_1 .ybc-menu-main-content').slideUp(0);
}
}
};
sticky_navigation();
$(window).scroll(function() {
sticky_navigation();
});
}
});
$(window).resize(function(){
if ($(window).width() < 768){
$('.ybc_custom_float_header').addClass('no_scroll_heading');
$('#header').addClass('no_scroll_header');
} else {
$('.ybc_custom_float_header').removeClass('no_scroll_heading');
$('#header').removeClass('no_scroll_header');
}
});
$(document).ready(function(){
$(document).on('click','.header_bottom.scroll_heading .ybc-menu-toggle',function(){
if ( $(window).width() > 767 && $(window).width() < 992){
$(this).parent().find('#ybc-menu-main-content').toggleClass('floating_active');
}
return false;
});
if ($(window).width() < 768){
$('.ybc_custom_float_header').addClass('no_scroll_heading');
$('#header').addClass('no_scroll_header');
} else {
$('.ybc_custom_float_header').removeClass('no_scroll_heading');
$('#header').removeClass('no_scroll_header');
}
});
$(document).ready(function() {
if(YBC_TC_FLOAT_CSS3)
{
if ($('.wow').length != 0 ) {
var wow = new WOW(
{
boxClass: 'wow', // animated element css class (default is wow)
animateClass: 'animated', // animation css class (default is animated)
offset: 0, // distance to the element when triggering the animation (default is 0)
mobile: false // trigger animations on mobile devices (true is default)
}
);
wow.init();
}
/* $(document).on('click','#home-page-tabs a', function(){
var datahref = $(this).attr('href');
$('.tab-content .tab-pane:not(.active) .wow').removeClass('animated').css({'visibility':'hidden','animation-name':'none'});
$(datahref+' .wow').delay(200).addClass('animated').css({'visibility':'visible','animation-name':'zoomIn'});
});*/
} else
{
$('.animated').removeClass('animated');
$('.animation').removeClass('animation');
}
});
//Panel
$(document).ready(function(){
$('.ybc_select_option li').click(function(){
var clickObj = $(this);
if(!$(this).parent('ul').hasClass('active'))
{
$(this).parent('ul').addClass('active');
$('.ybc-theme-panel-loading').show();
$.ajax({
url : YBC_TC_AJAX_URL,
type : 'post',
dataType : 'json',
data : {
'newConfigVal' : $(this).data('val'),
'configName' : $(this).parent('ul').attr('id')
},
success: function(json)
{
if(json['success'])
{
clickObj.parent('ul').find('li').removeClass('active');
clickObj.addClass('active');
if($('body').hasClass(json['oldClass']) && !json['noReplace'])
{
$('body').removeClass(json['oldClass']);
$('body').addClass(json['newClass']);
}
if(json.logo)
{
$('a img.logo').attr('src',json.logo);
}
if(json['reload'])
location.reload();
}
else
alert(json['error']);
$('.ybc-theme-panel-loading').fadeOut();
$('.ybc_select_option').removeClass('active');
},
error: function()
{
$('.ybc-theme-panel-loading').fadeOut();
$('.ybc_select_option').removeClass('active');
}
});
}
});
//Update bg
$('.ybc-theme-panel-bg').click(function(){
clickObj = this;
$('.ybc-theme-panel-loading').show();
$.ajax({
url : YBC_TC_AJAX_URL,
type : 'post',
dataType : 'json',
data : {
'newConfigVal' : $(this).attr('rel'),
'configName' : 'YBC_TC_BG_IMG'
},
success: function(json)
{
if(json['success'])
{
if($('body').hasClass(json['oldClass']))
{
$('body').removeClass(json['oldClass']);
$('body').addClass(json['newClass']);
$('.ybc-theme-panel-bg').removeClass('active');
$(clickObj).addClass('active');
}
}
else
alert(json['error']);
$('.ybc-theme-panel-loading').fadeOut();
},
error: function()
{
$('.ybc-theme-panel-loading').fadeOut();
}
});
});
//Reset button
$('#tc-reset').click(function(){
$('.ybc-theme-panel-loading').show();
$.ajax({
url : YBC_TC_AJAX_URL,
type : 'post',
dataType : 'json',
data : {
tcreset : 'yes'
},
success: function(json)
{
$('.ybc-theme-panel-loading').fadeOut();
location.reload();
},
error: function()
{
$('.ybc-theme-panel-loading').fadeOut();
location.reload();
}
});
});
//Settings button
$('.ybc-theme-panel-btn').click(function(){
if(!$('.ybc-theme-panel').hasClass('moving'))
{
if($('.ybc-theme-panel').hasClass('closed'))
{
$('.ybc-theme-panel').addClass('moving');
$('.ybc-theme-panel').animate({
'left' : 0
}, 1000,function(){
$('.ybc-theme-panel').removeClass('moving');
$('.ybc-theme-panel').removeClass('closed');
});
}
else
{
$('.ybc-theme-panel').addClass('moving');
$('.ybc-theme-panel').animate({
'left' : '-302px'
}, 1000,function(){
$('.ybc-theme-panel').removeClass('moving');
$('.ybc-theme-panel').addClass('closed');
});
}
}
});
});