first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
/**
* 2015-2017 Bonpresta
*
* Bonpresta Awesome Image Slider
*
* 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 Bonpresta
* @copyright 2015-2017 Bonpresta
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
$(document).ready(function(){
$('.bootstrap .bonslick > tbody tr td.dragHandle').wrapInner('<div class="positions"/>');
$('.bootstrap .bonslick > tbody tr td.dragHandle').wrapInner('<div class="dragGroup"/>');
initAjaxTabs();
});
function initAjaxTabs(){
$('.bonslick > tbody tr').each(function(){
var id = $(this).find('td:first').text();
$(this).attr('id', 'item_'+id.trim());
});
var $tabslides = $('.bonslick > tbody');
$tabslides.sortable({
cursor: 'move',
items: '> tr',
update: function(event, ui){
$('.bonslick > tbody > tr').each(function(index){
$(this).find('.positions').text(index + 1);
});
}
}).bind('sortupdate', function() {
var orders = $(this).sortable('toArray');
$.ajax({
type: 'POST',
url: ajax_theme_url + '&ajax',
headers: { "cache-control": "no-cache" },
dataType: 'json',
data: {
action: 'updatepositionform',
item: orders,
},
success: function(msg){
if (msg.error) {
showErrorMessage(msg.error);
return;
}
showSuccessMessage(msg.success);
}
});
});
};

View File

@@ -0,0 +1,61 @@
/**
* 2015-2017 Bonpresta
*
* Bonpresta Awesome Image Slider
*
* 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 Bonpresta
* @copyright 2015-2017 Bonpresta
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
$(document).ready(function(){
if(BON_SLICK_CAROUSEL_DOTS == 1) {
var BON_SLICK_CAROUSEL_DOTS_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_DOTS_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_NAV == 1) {
var BON_SLICK_CAROUSEL_NAV_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_NAV_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_AUTOPLAY == 1) {
var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_LOOP == 1) {
var BON_SLICK_CAROUSEL_LOOP_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_LOOP_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_DRAG == 1) {
var BON_SLICK_CAROUSEL_DRAG_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_DRAG_SCRIPT = false;
}
$('.bonslick-slider').slick({
infinite: BON_SLICK_CAROUSEL_LOOP_SCRIPT,
autoplaySpeed: BON_SLICK_CAROUSEL_TIME,
autoplaySpeed: BON_SLICK_CAROUSEL_TIME,
draggable: BON_SLICK_CAROUSEL_DRAG_SCRIPT,
dots: BON_SLICK_CAROUSEL_DOTS_SCRIPT,
arrows: BON_SLICK_CAROUSEL_NAV_SCRIPT,
autoplay: BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT,
slidesToShow: 1,
slidesToScroll: 1,
}
);
});

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2015-2017 Bonpresta
*
* Bonpresta Awesome Image Slider
*
* 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 Bonpresta
* @copyright 2015-2017 Bonpresta
* @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