download all files

This commit is contained in:
Roman Pyrih
2025-06-24 14:14:35 +02:00
parent ebed09c00b
commit 4c71b5d9c2
72007 changed files with 10407727 additions and 40029 deletions

View File

@@ -0,0 +1,192 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2020 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* html Templates Manager
* version 1.6.1
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
$(function() {
$('.htmlTemplatesManager').click(function (e) {
e.preventDefault();
clicked = $(this);
$.fancybox({
'helpers': {
media: true
},
'autoSize': false,
'type': 'ajax',
'showCloseButton': true,
'enableEscapeButton': true,
'href': clicked.attr('href'),
'width': '95%',
'height': '95%',
});
});
});
/*
$('document').ready(function () {
$('.htmlTemplatesManager').click(function (e) {
e.preventDefault();
clicked = $(this);
$.ajax({
url: clicked.attr('href'),
cache: false,
success: function (response) {
$.fancybox({
'type': 'html',
'showCloseButton': true,
'enableEscapeButton': true,
'href': clicked.attr('href'),
'content': response
});
}
});
});
});
*/
function displayptmTab(tab) {
$('.ptm_tab').hide();
$('.ptm_tab_page').removeClass('selected');
$('#ptm_' + tab).show();
$('#ptm_link_' + tab).addClass('selected');
}
function displayModulePageTabptm(tab) {
$('.module_page_tabptm').hide();
$('.tab-row.active').removeClass('active');
$('#module_page_' + tab).show();
$('#module_page_link_' + tab).parent().addClass('active');
}
function BindptmScripts() {
$('#table-ptm .btn-group-action a.edit').off().click(function (e) {
e.preventDefault();
$.ajax({
url: ptm_module_url + $(this).attr('href'),
cache: false,
success: function (response) {
$('#ptm_manageTemplates').html(response);
BindptmScripts();
runTinyMce();
}
});
});
$('#ptm_button_templateSave').off().click(function (e) {
e.preventDefault();
$.ajax({
type: 'POST',
url: ptm_module_url + $(this).attr('href'),
data: $('#editTemplateForm').serialize(),
cache: false,
success: function (response) {
showNoticeMessage('Templates saved with success');
}
});
});
$('#table-ptm .btn-group-action a.delete').off().click(function (e) {
clicked = $(this);
e.preventDefault();
if ($(this).attr('href').includes('name=reminder&') || $(this).attr('href').includes('name=reminder_status_change&')) {
showErrorMessage('Default template cant be removed');
} else {
$.ajax({
url: ptm_module_url + $(this).attr('href'),
cache: false,
success: function (response) {
clicked.parents('tr').find('td').parent().hide();
showNoticeMessage('Template removed with success');
$.ajax({
url: ptm_module_url,
data: 'refreshListOfTemplateshtmlSelecthtml=1',
cache: false,
success: function (response) {
$('.htmlTemplateManager_selectBox').html(response);
showNoticeMessage('Select input form templates reloaded');
}
});
}
});
}
});
$('.ptm_button_createNew').off().click(function (e) {
clicked = $(this);
e.preventDefault();
if ($('#ptm_newname').val().length < 4) {
showErrorMessage('Template must have at least 5 characters');
} else {
$.ajax({
url: ptm_module_url + $(this).attr('href'),
data: 'name=' + $('#ptm_newname').val(),
cache: false,
success: function (resp) {
showNoticeMessage('Template created with success');
$.ajax({
url: ptm_module_url,
data: 'refreshListOfTemplateshtml=1',
cache: false,
success: function (response) {
$('#ptm_manageTemplates').html(response);
BindptmScripts();
showNoticeMessage('List of templates reloaded');
$.ajax({
url: ptm_module_url,
data: 'refreshListOfTemplateshtmlSelecthtml=1',
cache: false,
success: function (response) {
$('.htmlTemplateManager_selectBox').html(response);
showNoticeMessage('Select input form templates reloaded');
}
});
}
});
}
});
}
});
$('#ptm_button_backToList').off().click(function (e) {
e.preventDefault();
$.ajax({
url: ptm_module_url,
data: 'refreshListOfTemplateshtml=1',
cache: false,
success: function (response) {
$('#ptm_manageTemplates').html(response);
BindptmScripts();
showNoticeMessage('List of templates reloaded');
}
});
});
$('.ptm_maximize_html, .ptm_maximize_txt').click(function (e) {
e.preventDefault();
$('.ptm_html_code').removeClass('col-lg-6 col-md-6 col-sm-12');
$('.ptm_html_code').addClass('col-lg-12 col-md-12 col-sm-12');
$('.ptm_txt_code').removeClass('col-lg-6 col-md-6 col-sm-12');
$('.ptm_txt_code').addClass('col-lg-12 col-md-12 col-sm-12');
});
}
function runTinyMce(){
tinySetup({
editor_selector: "rte",
setup: function (ed) {
ed.on('blur', function (ed) {
tinyMCE.triggerSave();
});
}
});
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 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/afl-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 html
* 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-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;