This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,49 @@
$(document).ready(function(){
if($('.ybc_fancy').length > 0)
{
$('.ybc_fancy').fancybox();
}
if($('.widget_sortable').length > 0)
{
$( "#widget_sortable_1, #widget_sortable_2, #widget_sortable_3, #widget_sortable_4, #widget_sortable_5, #widget_sortable_6, #widget_sortable_7, #widget_sortable_8, #widget_sortable_9, #widget_sortable_10, #widget_sortable_11, #widget_sortable_12, #widget_sortable_13, #widget_sortable_14, #widget_sortable_15, #widget_sortable_16, #widget_sortable_17, #widget_sortable_18" ).sortable({
connectWith: ".widget_sortable",
update: function(e,ui){
if (this === ui.item.parent()[0]){
$.ajax({
url : ybc_widget_sort_url,
type: 'POST',
data: getYbcWidgetOrders(),
dataType : 'json',
success: function()
{
},
error: function(){
}
});
}
}
}).disableSelection();
}
});
function getYbcWidgetOrders()
{
$orderStr = 'reorder=yes';
widgetHook = '';
ik = 0;
$('.widget_hook').each(function(){
widgetHook = $(this).attr('rel');
if($(this).find('.widget_item').length > 0)
{
ik=0;
$(this).find('.widget_item').each(function(){
ik++;
$orderStr += '&widget['+$(this).attr('rel')+']='+ik+','+widgetHook;
});
}
});
return $orderStr;
}

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;