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,49 @@
/**
* 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
*/
#htmlTemplatesManagerMenu ul.tab {
list-style: none;
padding: 0;
margin: 0
}
#htmlTemplatesManagerMenu ul.tab li a {
background-color: white;
border: 1px solid #DDDDDD;
display: block;
margin-bottom: -1px;
padding: 10px 15px;
}
#htmlTemplatesManagerMenu ul.tab li a {
display: block;
color: #555555;
text-decoration: none
}
#htmlTemplatesManagerMenu ul.tab li a.selected {
color: #fff;
background: #00AFF0
}
#masspc_form .language_flags {
display: none
}
form#masspc_form {
background-color: #ebedf4;
border: 1px solid #ccced7;
/*min-height: 404px;*/
padding: 5px 10px 10px;
}

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;

View File

@@ -0,0 +1,225 @@
<?PHP
/**
* 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.7.1
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
class tinymceprohtmlTemplatesManager extends tinymcepro
{
public $addon;
public $availableTemplateVars;
public function __construct($addon = null, $availableTemplateVars = false)
{
//@ini_set('display_errors', 'on');
//@error_reporting(E_ALL | E_STRICT);
$this->availableTemplateVars = $availableTemplateVars;
$this->addon = $addon;
if (Tools::getValue('ajax') != 1 && Tools::getValue('configure') != $addon && Tools::getValue('htmlTemplatesManager') != 1) {
return;
}
if (Tools::getValue('htmlTemplatesManager')) {
$this->assignSmartyVariables();
}
if (Tools::getValue('htmlTemplatesManager') == 1 && Tools::getValue('ajax') == 1 && Tools::getValue('name', 'false') != 'false' && Tools::getValue('updateconfiguration', 'false') != 'false') {
echo $this->generateEditTemplateForm(Tools::getValue('name'));
} else if (Tools::getValue('htmlTemplatesManager') == 1 && Tools::getValue('ajax') == 1 && Tools::getValue('name', 'false') != 'false' && Tools::getValue('deleteconfiguration', 'false') != 'false') {
$removed_languages = array();
foreach (Language::getLanguages(false) AS $lang) {
$removed_languages[$lang['iso_code']] = true;
$this->removeTemplate(Tools::getValue('name', 'template-name'));
}
if (!isset($removed_languages['en'])) {
$this->removeTemplate(Tools::getValue('name', 'template-name'));
}
} else if (Tools::getValue('createNewTemplatehtml') == 1 && Tools::getValue('ajax') == 1) {
$created_languages = array();
foreach (Language::getLanguages(false) AS $lang) {
$created_languages[$lang['iso_code']] = true;
$this->createNewTemplatehtml(Tools::getValue('name', 'template-name'));
}
if (!isset($created_languages['en'])) {
$this->createNewTemplatehtml(Tools::getValue('name', 'template-name'));
}
} else if (Tools::getValue('refreshListOfTemplateshtml') == 1 && Tools::getValue('ajax') == 1) {
echo $this->getFilesArray();
} else if (Tools::getValue('refreshListOfTemplateshtmlSelecthtml') == 1 && Tools::getValue('ajax') == 1) {
echo $this->generaterefreshListOfTemplateshtmlSelecthtml();
} else if (Tools::getValue('htmlTemplateSave') == 1 && Tools::getValue('ajax') == 1) {
foreach (Language::getLanguages(false) AS $lang) {
$this->saveTemplate(Tools::getValue('ptm_name', 'template-name'), Tools::getValue('ptm_html'), Tools::getValue('ptm_txt'));
}
} else if (Tools::getValue('htmlTemplatesManager') == 1 && Tools::getValue('ajax') == 1) {
echo $this->generateForm();
}
return;
}
public function saveTemplate($name = 'template-name', $html, $txt)
{
$file_txt = "../modules/" . $this->addon . "/html/" . $name . '.txt';
if (file_exists($file_txt)) {
$file = fopen($file_txt, "w");
fwrite($file, (isset($txt) ? $txt : ''));
fclose($file);
}
}
public function removeTemplate($name = 'template-name')
{
$file_txt = "../modules/" . $this->addon . "/html/" . $name . '.txt';
if (file_exists($file_txt)) {
unlink($file_txt);
}
}
public function createNewTemplatehtml($name = 'template-name')
{
$file_txt = "../modules/" . $this->addon . "/html/" . $name . '.txt';
if (!file_exists($file_txt)) {
$file = fopen($file_txt, "w");
fwrite($file, '');
fclose($file);
}
}
public function gethtmlFilesArray()
{
$dir = "../modules/" . $this->addon . "/html/";
$dh = opendir($dir);
$files = array();
$exists = array();
while (false !== ($filename = readdir($dh))) {
if ($filename != ".." && $filename != "." && $filename != "" && $filename != "index.php") {
$explode = explode(".", $filename);
if (!isset($exists[$explode[0]])) {
$exists[$explode[0]] = true;
$files[]['name'] = $explode[0];
}
}
}
return $files;
}
public function getFilesArray()
{
if (Tools::getValue('ajax', 'false') == 'false') {
return;
}
$helper = new HelperList();
$helper->table_id = 'ptm';
$helper->_default_pagination = 50;
$helper->no_link = true;
$helper->simple_header = true;
$helper->shopLinkType = '';
$helper->actions = array('edit', 'delete');
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->module = $this;
$helper->list_id = 'ptm_list';
$helper->_pagination = array(
50,
100,
);
$helper->currentIndex = '';
$helper->identifier = 'name';
$helper_fields = new StdClass();
$helper_fields->fields_list = array();
$helper_fields->fields_list['name'] = array(
'title' => $this->l('Name'),
'align' => 'left',
'type' => 'text',
'filter' => false,
);
$helper->listTotal = count($this->gethtmlFilesArray());
return $helper->generateList($this->gethtmlFilesArray(), $helper_fields->fields_list);
}
public function gethtmlTemplatesContents($name)
{
$contents = array();
$this->createNewTemplatehtml(Tools::getValue('name', 'template-name'));
$contents[$name]['txt'] = $this->getExactTemplateContents('txt', $name);
return $contents;
}
public function getExactTemplateContents($format, $name)
{
$file_txt = "../modules/" . $this->addon . "/html/" . $name . '.' . $format;
if (file_exists($file_txt) && $format == 'txt') {
return file_get_contents($file_txt);
}
}
public function generateForm()
{
$context = Context::getContext();
echo $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/htmlTemplatesManager/views/mainForm.tpl');
}
public function generatehtmlTemplatesManagerButton()
{
$context = Context::getContext();
$this->assignSmartyVariables();
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/htmlTemplatesManager/views/buttonManager.tpl');
}
public function generateCreateTemplateForm()
{
$context = Context::getContext();
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/htmlTemplatesManager/views/createTemplateForm.tpl');
}
public function generateEditTemplateForm($name)
{
$context = Context::getContext();
$context->smarty->assign('ptm_template', $this->gethtmlTemplatesContents($name));
$context->smarty->assign('ptm_template_name', $name);
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/htmlTemplatesManager/views/editTemplateForm.tpl');
}
public function generaterefreshListOfTemplateshtmlSelecthtml()
{
$context = Context::getContext();
$context->smarty->assign('ptm_select', $this->gethtmlFilesArray());
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/htmlTemplatesManager/views/selectInput.tpl');
}
public static function returnhtmlContents($format, $contents, $name)
{
return (isset($contents[$name][$format]) ? $contents[$name][$format] : '');
}
public function assignSmartyVariables()
{
if (defined('_PS_ADMIN_DIR_')) {
$context = Context::getContext();
$context->smarty->assign('ptm', $this);
$context->smarty->assign('ptm_additional_variables', (isset($this->availableTemplateVars) ? $this->availableTemplateVars : false));
$context->smarty->assign('ptm_addon', $this->addon);
$context->smarty->assign('ptm_templates', $this->getFilesArray());
$context->smarty->assign('ptm_create_template', $this->generateCreateTemplateForm());
$context->smarty->assign('ptm_module_url', $context->link->getAdminLink('AdminModules', true) . '&htmlTemplatesManager=1&ajax=1&module=' . $this->addon . '&configure=' . $this->addon);
$context->smarty->assign('ptm_iso', file_exists(_PS_CORE_DIR_ . '/js/tiny_mce/langs/' . $context->language->iso_code . '.js') ? $context->language->iso_code : 'en');
$context->smarty->assign('ptm_path_css', _THEME_CSS_DIR_);
$context->smarty->assign('ptm_ad', __PS_BASE_URI__ . basename(_PS_ADMIN_DIR_));
}
}
}
?>

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;

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;

View File

@@ -0,0 +1,23 @@
{*
* 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
*}
<script type="text/javascript" src="../modules/{$ptm_addon}/lib/htmlTemplatesManager/js/htmlTemplatesManager.js"></script>
<script type="text/javascript" src="../js/tiny_mce/tinymce.min.js"></script>
<script type="text/javascript" src="../js/admin/tinymce.inc.js"></script>
<script>
var iso = '{$ptm_iso|addslashes}';
var pathCSS = '{$smarty.const._THEME_CSS_DIR_|addslashes}';
var ad = '{$ptm_ad|addslashes}';
</script>
<a href="{$ptm_module_url}" class="btn button btn-default htmlTemplatesManager"><i class="process-icon-edit"></i>{l s='html templates manager' mod='tinymcepro'}</a>

View File

@@ -0,0 +1,37 @@
{*
* 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
*}
<div class="panel">
<div class="panel-heading">{l s='Create new html template' mod='tinymcepro'}</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='Name of template' mod='tinymcepro'}
</label>
<div class="col-lg-9">
<div class="input-group col-lg-10">
{literal}
<input onkeypress="return /[a-z0-9A-Z-]/i.test(event.key)" type="text" name="ptm_newname" id="ptm_newname" value="" class="col-lg-4" required="required">
{/literal}
<p class="help-block">
{l s='Letters and numbers only' mod='tinymcepro'}
</p>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="panel-footer clearfx">
<a href="&createNewTemplatehtml=1" class="pull-right btn button btn-default ptm_button_createNew"><i class="process-icon-save"></i>{l s='Save' mod='tinymcepro'}</a>
</div>
</div>

View File

@@ -0,0 +1,32 @@
{*
* 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
*}
<form name="editTemplateForm" id="editTemplateForm">
<input type="hidden" name="ptm_name" value="{$ptm_template_name}"/>
<div class="panel">
<div class="panel-heading">
{l s='Edit template' mod='tinymcepro'} {$ptm_template_name}
</div>
<div class="clearfix"></div>
<textarea name="ptm_txt" rows="20">{$ptm->returnhtmlContents('txt', $ptm_template, $ptm_template_name)}</textarea>
<div class="clearfix"></div>
<div class="panel-footer clearfix">
<a href="&back" id="ptm_button_backToList" class="pull-left btn btn-default"><i class="process-icon-back"></i> {l s='Back' mod='tinymcepro'}</a>
<a href="&htmlTemplateSave=1" id="ptm_button_templateSave" class="pull-right btn btn-default"><i class="process-icon-save"></i> {l s='Save' mod='tinymcepro'}</a>
</div>
</div>
</form>

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;

View File

@@ -0,0 +1,60 @@
{*
* 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
*}
<link rel="stylesheet" href="../modules/{$ptm_addon}/lib/htmlTemplatesManager/css/htmlTemplatesManager.css">
<div id="content" class="bootstrap" style="padding:0px!important;">
<div class="panel clearfix">
<div class="panel-heading">{l s='html templates manager for module' mod='tinymcepro'} </div>
<div class="col-lg-2" id="htmlTemplatesManagerMenu">
<div class="productTabs">
<ul class="tab">
<li class="tab-row">
<a class="ptm_tab_page selected" id="ptm_link_manageTemplates"
href="javascript:displayptmTab('manageTemplates');">1. {l s='Edit templates' mod='tinymcepro'}</a>
<a class="ptm_tab_page" id="ptm_link_createTemplates"
href="javascript:displayptmTab('createTemplates');">2. {l s='Create template' mod='tinymcepro'}</a>
</li>
</ul>
</div>
{if $ptm_additional_variables != false}
<div class="panel">
<div class="alert alert-info">
<strong>{l s='additional html variables available exclusively for this module' mod='tinymcepro'}</strong>
</div>
{foreach $ptm_additional_variables as $variable => $key}
{$variable}
<br/>
{/foreach}
</div>
{/if}
</div>
<div class="col-lg-10">
<div id="ptm_manageTemplates" class="ptm_tab tab-pane" style="display:none;">
{$ptm_templates nofilter}
</div>
<div id="ptm_createTemplates" class="ptm_tab tab-pane" style="display:none;">
{$ptm_create_template nofilter}
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<script>
var ptm_module_url = '{$ptm_module_url|escape:javascript}';
$(document).ready(function () {
displayptmTab('manageTemplates');
BindptmScripts();
});
</script>

View File

@@ -0,0 +1,17 @@
{*
* 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
*}
{foreach $ptm_select as $select => $value}
<option value="{$value.name}">{$value.name}</option>
{/foreach}