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,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,254 @@
/*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
.flags_block {
padding-top:10px;
}
.pointer {
cursor: pointer;
}
.my_language_flags span {
margin-right: 5px;
padding: 0 10px;
}
.my_language_flags span {
display: inline-block;
border: 1px solid #cecece;
background: #cecece;
}
.my_language_flags span.button-outline {
display: inline-block;
border: 1px solid #cecece;
background: none !important;
}
#htmlboxproConfiguration .inactive {
opacity: 0.5
}
#htmlboxproConfiguration .hookslist ul {
padding: 0px;
}
#htmlboxproConfiguration .hbpslides li {
font-size: 10px !important;
list-style: none;
margin: 0 0 4px 0;
padding: 10px 5px;
background-color: #F4E6C9;
border: #CCCCCC solid 1px;
color: #000;
}
#htmlboxproConfiguration .hname a {
font-size: 12px !important;
}
#htmlboxproConfiguration .hbpslides li:hover {
border: 1px #000 dashed;
}
#htmlboxproConfiguration .checkbx {
padding: 5px;
border-left: 1px solid #c0c0c0;
background: #f2f2f2;
border-bottom: 1px solid #FFF;
border-top: 1px solid #c0c0c0;
}
#htmlboxproConfiguration .activate {
display: inline-block;
float: left;
padding-right: 3px;
}
#htmlboxproConfiguration .hbpremove:hover, #htmlboxproConfiguration .hbpedit:hover, #htmlboxproConfiguration .hbpduplicate:hover, #htmlboxproConfiguration .hbpedit:hover {
opacity:1.0!important;
}
#htmlboxproConfiguration .hbpremove {
opacity: 0.3;
position: relative;
top: -5px;
width: 24px;
height: 24px;
display: inline-block;
float: right;
background: url("../img/trash.png") top no-repeat;
cursor: pointer;
}
#htmlboxproConfiguration .hookslist .hbpedit {
margin-right: 6px;
opacity: 0.3;
position: relative;
top: -4px;
width: 24px;
height: 24px;
display: inline-block;
float: right;
background: url("../img/edit.png") top no-repeat;
cursor: pointer;
}
#htmlboxproConfiguration .hbpduplicate {
margin-right: 6px;
opacity: 0.3;
position: relative;
top: -4px;
width: 24px;
height: 24px;
display: inline-block;
float: right;
background: url("../img/duplicate.png") top no-repeat;
cursor: pointer;
}
#htmlboxproConfiguration .hookslist .hoptions {
padding: 10px;
background: #fff;
border-right: 1px solid #c0c0c0;
border-bottom: 1px solid #FFF;
border-top: 1px solid #c0c0c0;
margin-right: 10px;
text-align:center;
}
#htmlboxproConfiguration .hookslist .hname {
min-width: 144px;
padding: 10px;
padding-left: 5px;
background: #f2f2f2;
border-bottom: 1px solid #FFF;
border-top: 1px solid #c0c0c0;
margin-right: 10px;
}
#htmlboxproConfiguration .hookslist a {
font-weight: bold;
}
#htmlboxproConfiguration .hookslist a:hover {
font-weight: bold;
color: red;
}
#htmlboxproConfiguration .hook_blocks {
display: none;
}
#htmlboxproConfiguration .hook_blocks .hname, #htmlboxproConfiguration .hook_blocks .hoptions {
border-top: none;
}
#htmlboxproConfiguration .language_flags {
display: none;
}
#htmlboxproConfiguration .displayed_flag {
float: right;
margin-left: 10px;
}
#htmlboxproConfiguration .inconsistency0 {
width: 5px;
background: red;
padding: 10px;
border: 1px solid red!important;
}
#htmlboxproConfiguration .inconsistency1 {
width: 5px;
background: green;
padding: 10px;
border: 1px solid green!important;
}
.inconsistency td {
padding: 5px;
border: 1px solid #c0c0c0;
}
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a {
padding: 0;
margin: 0;
margin-bottom: 10px;
font-family: 'arial', sans-serif;
}
#cssmenu:before,
#cssmenu:after,
#cssmenu > ul:before,
#cssmenu > ul:after {
content: '';
display: table;
}
#cssmenu:after,
#cssmenu > ul:after {
clear: both;
}
#cssmenu {
zoom: 1;
height: 69px;
background: url(../img/bottom-bg.png) repeat-x center bottom;
border-radius: 2px;
}
#cssmenu ul {
background: url(../img/nav-bg.png) repeat-x 0px 4px;
height: 69px;
}
#cssmenu ul li {
float: left;
list-style: none;
}
#cssmenu ul li a {
display: block;
height: 37px;
padding: 22px 30px 0;
margin: 4px 2px 0;
border-radius: 2px 2px 0 0;
text-decoration: none;
font-weight: bold;
font-size: 16px;
color: white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .75);
opacity: .9;
box-sizing: content-box;
}
#cssmenu ul li:first-child a {
margin: 4px 2px 0 0;
}
#cssmenu ul li a:hover,
#cssmenu ul li.active a {
background: url(../img/color.png) center bottom;
display: block;
height: 37px;
margin-top: 0px;
padding-top: 26px;
color: #9b4106;
text-shadow: 0 1px 1px rgba(255, 255, 255, .35);
opacity: 1;
}
.searchToolInput {
width:60px!important;
font-size:11px!important;
margin:0px!important;
height:auto!Important;
padding:0px!important;
}
i.mce-i-searchreplace::before {
content: '\f002';
}
i.mce-i-visualblocks::before {
content: '\f009';
}
i.mce-i-charmap::before {
content: '\f157';
}
i.mce-i-hr::before {
content: 'hr';
font-size: 13px;
top: -5px;
position: relative;
border-bottom: 1px solid #000;
padding-bottom: 3px;
}

View File

@@ -0,0 +1,22 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
<div class="panel">
<h3><i class='icon-cogs'></i> {l s='This block uses custom hook' mod='htmlboxpro'} {$custom_hook_name}</h3>
<div class="alert alert-info">
{l s='This block is attached to custom hook. To display it in .tpl file use:' mod='htmlboxpro'}
</div>
<pre>{literal}{hook::exec('{/literal}{$custom_hook_name}{literal}') nofilter}{/literal}</pre>
<br/>
<div class="alert alert-info">
{l s='If you want to use this custom hook inside list of products and display contents for selected products on that list use code:' mod='htmlboxpro'}
</div>
<pre>{literal}{hook h='{/literal}{$custom_hook_name}{literal}' product=$product}{/literal}</pre>
</div>

View File

@@ -0,0 +1,11 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
{$tpl_form nofilter}

View File

@@ -0,0 +1,12 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
{$custom_hook nofilter}
{$tpl_form nofilter}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,74 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
function changeLanguageMine(field, fieldsString, id_language_new, iso_code) {
$('.langbutton' + field).addClass('button-outline');
$('#langbutton' + field + '_' + id_language_new).removeClass('button-outline');
$('div[id^=' + field + '_]').hide();
$('#' + field + '_' + id_language_new).show();
}
$(document).ready(function () {
$("#hbp_newhook_button").toggle(function () {
$("#hbp_newhook_form").show("fast");
}, function () {
$("#hbp_newhook_form").hide("fast");
});
$(".editbutton, .duplicatebutton").hover(
function () {
$(this).fadeTo("fast", 1.0);
},
function () {
$(this).fadeTo("fast", 0.3);
}
);
$(".remove, .edit, .duplicate").hover(
function () {
$(this).fadeTo("fast", 1.0);
},
function () {
$(this).fadeTo("fast", 0.3);
}
);
$(".accordion").clickToggleHtmlBox(
function () {
$(".hook_blocks").css("display", "none");
var alt = $(this).attr("alt");
//$(".hook_"+alt).css("display","table-row");
$(".hook_" + alt).show("fast");
},
function () {
$(".hook_blocks").css("display", "none");
var alt = $(this).attr("alt");
//$(".hook_"+alt).css("display","none");
$(".hook_" + alt).hide("fast");
}
);
});
(function ($) {
$.fn.clickToggleHtmlBox = function (func1, func2) {
var funcs = [func1, func2];
this.data('toggleclicked', 0);
this.click(function () {
var data = $(this).data();
var tc = data.toggleclicked;
$.proxy(funcs[tc], this)();
data.toggleclicked = (tc + 1) % 2;
});
return this;
};
}(jQuery));

View File

@@ -0,0 +1,75 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
function tinySetup(config) {
if (typeof tinyMCE === 'undefined') {
setTimeout(function () {
tinySetup(config);
}, 100);
return;
}
if (!config)
config = {};
var editor_selector = 'rte';
//if (typeof config['editor_selector'] !== 'undefined')
//var editor_selector = config['editor_selector'];
if (typeof config['editor_selector'] != 'undefined')
config['selector'] = '.' + config['editor_selector'];
//safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview
default_config = {
selector: ".rte",
plugins: "visualblocks, preview searchreplace print insertdatetime, hr charmap colorpicker anchor code link image paste pagebreak table contextmenu filemanager table code media autoresize textcolor emoticons",
toolbar2: "newdocument,print,|,bold,italic,underline,|,strikethrough,superscript,subscript,|,forecolor,colorpicker,backcolor,|,bullist,numlist,outdent,indent",
toolbar1: "styleselect,|,formatselect,|,fontselect,|,fontsizeselect,",
toolbar3: "code,|,table,|,cut,copy,paste,searchreplace,|,blockquote,|,undo,redo,|,link,unlink,anchor,|,image,emoticons,media,|,inserttime,|,preview,|, visualblocks,charmap,hr,",
external_filemanager_path: ad + "/filemanager/",
filemanager_title: "File manager",
external_plugins: {"filemanager": ad + "/filemanager/plugin.min.js"},
extended_valid_elements: 'link[*], pre[*],script[*],style[*]',
valid_children: "+body[meta|style|script|iframe|section|link],a[embed|sub|sup|textarea|strong|strike|small|em|form|frame|iframe|input|select|legend|button|div|img|h1|h2|h3|h4|h5|h6|h7|span|p|section|pre|b|u|i|a|ol|ul|li|table|td|tr|th|tbody|thead],pre[iframe|section|script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]",
valid_elements: '*[*]',
allow_html_in_named_anchor: true,
force_p_newlines: false,
cleanup: false,
statusbar: false,
forced_root_block: false,
force_br_newlines: true,
relative_urls: false,
convert_urls: false,
remove_script_host: false,
menu: {
edit: {title: 'Edit', items: 'undo redo | cut copy paste | selectall'},
insert: {title: 'Insert', items: 'media image link | pagebreak'},
view: {title: 'View', items: 'visualaid'},
format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
table: {title: 'Table', items: 'inserttable tableprops deletetable | cell row column'},
tools: {title: 'Tools', items: 'code'}
}
}
$.each(default_config, function (index, el) {
if (config[index] === undefined)
config[index] = el;
});
tinyMCE.init(config);
}
$().ready(function () {
tinySetup();
});

View File

@@ -0,0 +1,75 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
function tinySetup(config) {
if (typeof tinyMCE === 'undefined') {
setTimeout(function () {
tinySetup(config);
}, 100);
return;
}
if (!config)
config = {};
var editor_selector = 'rte';
//if (typeof config['editor_selector'] !== 'undefined')
//var editor_selector = config['editor_selector'];
if (typeof config['editor_selector'] != 'undefined')
config['selector'] = '.' + config['editor_selector'];
//safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview
default_config = {
selector: ".rte",
plugins: "visualblocks, preview searchreplace print insertdatetime, hr charmap colorpicker anchor code link image paste pagebreak table contextmenu filemanager table code media autoresize textcolor emoticons",
toolbar2: "newdocument,print,|,bold,italic,underline,|,strikethrough,superscript,subscript,|,forecolor,colorpicker,backcolor,|,bullist,numlist,outdent,indent",
toolbar1: "styleselect,|,formatselect,|,fontselect,|,fontsizeselect,",
toolbar3: "code,|,table,|,cut,copy,paste,searchreplace,|,blockquote,|,undo,redo,|,link,unlink,anchor,|,image,emoticons,media,|,inserttime,|,preview,|, visualblocks,charmap,hr,",
external_filemanager_path: ad + "/filemanager/",
filemanager_title: "File manager",
external_plugins: {"filemanager": ad + "/filemanager/plugin.min.js"},
extended_valid_elements: 'link[*], pre[*],script[*],style[*]',
valid_children: "+body[meta|style|script|iframe|section|link],a[embed|sub|sup|textarea|strong|strike|small|em|form|frame|iframe|input|select|legend|button|div|img|h1|h2|h3|h4|h5|h6|h7|span|p|section|pre|b|u|i|a|ol|ul|li|table|td|tr|th|tbody|thead],pre[iframe|section|script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]",
valid_elements: '*[*]',
allow_html_in_named_anchor: true,
force_p_newlines: false,
cleanup: false,
forced_root_block: false,
force_br_newlines: true,
relative_urls: true,
statusbar: false,
convert_urls: true,
remove_script_host: false,
menu: {
edit: {title: 'Edit', items: 'undo redo | cut copy paste | selectall'},
insert: {title: 'Insert', items: 'media image link | pagebreak'},
view: {title: 'View', items: 'visualaid'},
format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
table: {title: 'Table', items: 'inserttable tableprops deletetable | cell row column'},
tools: {title: 'Tools', items: 'code'}
}
}
$.each(default_config, function (index, el) {
if (config[index] === undefined)
config[index] = el;
});
tinyMCE.init(config);
}
$().ready(function () {
tinySetup();
});

View File

@@ -0,0 +1,14 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
<div class="panel">
<h3><i class="icon-cogs"></i> {l s='Html box pro' mod='htmlboxpro'}</h3>
<div class="alert alert-info">{$message nofilter}</div>
</div>

View File

@@ -0,0 +1,44 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
<link href="../modules/htmlboxpro/views/css/styles.css" rel="stylesheet" type="text/css" />
{if Configuration::get('hbp_notinyjs')!=1}
<script type="text/javascript" src="{$ps_base_uri}js/tiny_mce/tinymce.min.js"></script>
{/if}
<script type="text/javascript" src="{$ps_base_uri}js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="../modules/htmlboxpro/views/js/script.js"></script>
<script type="text/javascript">
var iso = "{$isoTinyMCE}";
var pathCSS = "{$theme_css_dir}";
var ad = "{$ad}";
{literal}
function toggleEditor(id){
tinyMCE.execCommand("mceToggleEditor", false, id);
}
{/literal}
</script>
{if Configuration::get('hbp_tiny') == 1}
{if Configuration::get('hbp_forceurls') != 1}
<script type="text/javascript" src="../modules/htmlboxpro/views/js/tinymce16.inc.js"></script>
{else}
<script type="text/javascript" src="../modules/htmlboxpro/views/js/tinymce16-force-urls.inc.js"></script>
{/if}
{else}
<script type="text/javascript" src="{$ps_base_uri}js/admin/tinymce.inc.js"></script>
{literal}
<script>
$().ready(function () {tinySetup(); });
</script>
{/literal}
{/if}

View File

@@ -0,0 +1,104 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
{extends file="helpers/form/form.tpl"}
{block name="input" append}
{if isset($input)}
{if $input.name == 'hbp_body'}
{if isset($input.maxchar) && $input.maxchar}<div class="input-group">{/if}
{assign var=use_textarea_autosize value=true}
{if isset($input.lang) AND $input.lang}
{foreach $languages as $language}
{if $languages|count > 1}
<div class="form-group translatable-field lang-{$language.id_lang}"{if $language.id_lang != $defaultFormLanguage} style="display:none;"{/if}>
<div class="col-lg-9 clearfix" style="margin-bottom:10px;">
<a class="btn btn-default" onclick="toggleEditor('{if isset($input.id)}{$input.id}{else}{$input.name}{/if}_{$language.id_lang}')">
<i class="fa fa-code"></i> {l s='Switch editor'}
</a>
</div>
<div class="col-lg-10">
{/if}
{if isset($input.maxchar) && $input.maxchar}
<span id="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}_counter" class="input-group-addon">
<span class="text-count-down">{$input.maxchar|intval}</span>
</span>
{/if}
<textarea{if isset($input.readonly) && $input.readonly} readonly="readonly"{/if} name="{$input.name}_{$language.id_lang}" id="{if isset($input.id)}{$input.id}{else}{$input.name}{/if}_{$language.id_lang}" class="{if isset($input.autoload_rte) && $input.autoload_rte}rte autoload_rte{else}textarea-autosize{/if}{if isset($input.class)} {$input.class}{/if}"{if isset($input.maxlength) && $input.maxlength} maxlength="{$input.maxlength|intval}"{/if}{if isset($input.maxchar) && $input.maxchar} data-maxchar="{$input.maxchar|intval}"{/if}>{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}</textarea>
{if $languages|count > 1}
</div>
<div class="col-lg-1">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=language}
<li>
<a href="javascript:hideOtherLanguage({$language.id_lang});" tabindex="-1">{$language.name}</a>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
{/foreach}
{if isset($input.maxchar) && $input.maxchar}
<script type="text/javascript">
$(document).ready(function () {
{foreach from=$languages item=language}
countDown($("#{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}"), $("#{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}_counter"));
{/foreach}
});
</script>
{/if}
{else}
{if isset($input.maxchar) && $input.maxchar}
<span id="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}_counter" class="input-group-addon">
<span class="text-count-down">{$input.maxchar|intval}</span>
</span>
{/if}
<textarea{if isset($input.readonly) && $input.readonly} readonly="readonly"{/if} name="{$input.name}" id="{if isset($input.id)}{$input.id}{else}{$input.name}{/if}" {if isset($input.cols)}cols="{$input.cols}"{/if} {if isset($input.rows)}rows="{$input.rows}"{/if} class="{if isset($input.autoload_rte) && $input.autoload_rte}rte autoload_rte{else}textarea-autosize{/if}{if isset($input.class)} {$input.class}{/if}"{if isset($input.maxlength) && $input.maxlength} maxlength="{$input.maxlength|intval}"{/if}{if isset($input.maxchar) && $input.maxchar} data-maxchar="{$input.maxchar|intval}"{/if}>{$fields_value[$input.name]|escape:'html':'UTF-8'}</textarea>
{if isset($input.maxchar) && $input.maxchar}
<script type="text/javascript">
$(document).ready(function () {
countDown($("#{if isset($input.id)}{$input.id}{else}{$input.name}{/if}"), $("#{if isset($input.id)}{$input.id}{else}{$input.name}{/if}_counter"));
});
</script>
{/if}
{/if}
{if isset($input.maxchar) && $input.maxchar}</div>{/if}
{elseif $input.name == 'hbp_timfrom' || $input.name == 'hbp_timto'}
<div class="input-group col-lg-4">
<input id="{$input.name}" type="text" data-hex="true" class="timepicker" name="{$input.name}" value="{$fields_value[$input.name]}">
<span class="input-group-addon"><i class="icon-time"></i></span>
</div>
{/if}
{/if}
{literal}
<script>
$('.timepicker').timepicker({
prevText: '',
nextText: '',
dateFormat: 'HH:ii:ss tt',
currentText: '{/literal}{l s='Now' mod='htmlboxpro'}{literal}',
closeText: '{/literal}{l s='Done' mod='htmlboxpro'}{literal}',
ampm: false,
amNames: ['AM', 'A'],
pmNames: ['PM', 'P'],
timeFormat: 'hh:mm:ss tt',
timeSuffix: '',
timeOnlyTitle: '{/literal}{l s='Choose Time' mod='htmlboxpro'}{literal}',
timeText: '{/literal}{l s='Time' mod='htmlboxpro'}{literal}',
hourText: '{/literal}{l s='Hour' mod='htmlboxpro'}{literal}',
minuteText: '{/literal}{l s='Minute' mod='htmlboxpro'}{literal}',
});
</script>
{/literal}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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 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-2016 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;