first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

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 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-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,35 @@
#smartyTemplatesManagerMenu ul.tab {
list-style: none;
padding: 0;
margin: 0
}
#smartyTemplatesManagerMenu ul.tab li a {
background-color: white;
border: 1px solid #DDDDDD;
display: block;
margin-bottom: -1px;
padding: 10px 15px;
}
#smartyTemplatesManagerMenu ul.tab li a {
display: block;
color: #555555;
text-decoration: none
}
#smartyTemplatesManagerMenu 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 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-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,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 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-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,156 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* Email Templates Manager
* version 1.0.0
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
$('document').ready(function () {
$('.smartyTemplatesManager').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 () {
$('.smartyTemplatesManager').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 displayEtmTab(tab) {
$('.etm_tab').hide();
$('.etm_tab_page').removeClass('selected');
$('#etm_' + tab).show();
$('#etm_link_' + tab).addClass('selected');
}
function displayModulePageTab(tab) {
$('.module_page_tab').hide();
$('.tab-row.active').removeClass('active');
$('#module_page_' + tab).show();
$('#module_page_link_' + tab).parent().addClass('active');
}
function BindEtmScripts() {
$('#table-etm .btn-group-action a.edit').off().click(function (e) {
e.preventDefault();
$.ajax({
url: etm_module_url + $(this).attr('href'),
cache: false,
success: function (response) {
$('#etm_manageTemplates').html(response);
BindEtmScripts();
;
}
});
});
$('#etm_button_templateSave').off().click(function (e) {
e.preventDefault();
$.ajax({
type: 'POST',
url: etm_module_url + $(this).attr('href'),
data: $('#editTemplateForm').serialize(),
cache: false,
success: function (response) {
showNoticeMessage('Templates saved with success');
}
});
});
$('#table-etm .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: etm_module_url + $(this).attr('href'),
cache: false,
success: function (response) {
clicked.parents('tr').find('td').parent().hide();
showNoticeMessage('Template removed with success');
}
});
}
});
$('.etm_button_createNew').off().click(function (e) {
clicked = $(this);
e.preventDefault();
if ($('#etm_newname').val().length < 4) {
showErrorMessage('Template must have at least 5 characters');
} else {
$.ajax({
url: etm_module_url + $(this).attr('href'),
data: 'name=' + $('#etm_newname').val(),
cache: false,
success: function (resp) {
showNoticeMessage('Template created with success');
$.ajax({
url: etm_module_url,
data: 'refreshListOfTemplates=1',
cache: false,
success: function (response) {
$('#etm_manageTemplates').html(response);
BindEtmScripts();
showNoticeMessage('List of templates reloaded');
}
});
}
});
}
});
$('#etm_button_backToList').off().click(function (e) {
e.preventDefault();
$.ajax({
url: etm_module_url,
data: 'refreshListOfTemplates=1',
cache: false,
success: function (response) {
$('#etm_manageTemplates').html(response);
BindEtmScripts();
showNoticeMessage('List of templates reloaded');
}
});
});
}

View File

@@ -0,0 +1,225 @@
<?PHP
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* Smarty Template Variables Manager
* version 2.1.0
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*/
class htmlboxprosmartyTemplatesManager extends htmlboxpro
{
public $addon;
public $availableTemplateVars;
public function __construct($addon = null, $availableTemplateVars = false)
{
if (Tools::getValue('ajax') != 1 && Tools::getValue('configure') != $addon && Tools::getValue('smartyTemplatesManager') != 1) {
return;
}
$this->availableTemplateVars = $availableTemplateVars;
$this->addon = $addon;
$this->assignVariables();
if (Tools::getValue('smartyTemplatesManager') == 1 && Tools::getValue('ajax') == 1 && Tools::getValue('name', 'false') != 'false' && Tools::getValue('updateconfiguration', 'false') != 'false') {
echo $this->generateEditTemplateForm(Tools::getValue('name'));
} elseif (Tools::getValue('smartyTemplatesManager') == 1 && Tools::getValue('ajax') == 1 && Tools::getValue('name', 'false') != 'false' && Tools::getValue('deleteconfiguration', 'false') != 'false') {
$this->removeTemplate(Tools::getValue('name', 'template-name'));
} elseif (Tools::getValue('createNewTemplate') == 1 && Tools::getValue('ajax') == 1) {
$this->createNewTemplate(Tools::getValue('name', 'template-name'));
} elseif (Tools::getValue('refreshListOfTemplates') == 1 && Tools::getValue('ajax') == 1) {
echo $this->getFilesArray();
} elseif (Tools::getValue('refreshListOfTemplatesSelect') == 1 && Tools::getValue('ajax') == 1) {
echo $this->generaterefreshListOfTemplatesSelect();
} elseif (Tools::getValue('smartyTemplateSave') == 1 && Tools::getValue('ajax') == 1) {
$this->saveTemplate(Tools::getValue('etm_name', 'template-name'), Tools::getValue('etm_txt'));
} elseif (Tools::getValue('smartyTemplatesManager') == 1 && Tools::getValue('ajax') == 1) {
echo $this->generateFormm();
} elseif (Tools::getValue('ajax') == 1) {
die();
}
}
public function saveTemplate($name = 'template-name', $txt = '')
{
$file_tpl = "../modules/" . $this->addon . "/lib/smartyTemplatesManager/tpl/" . $name . '.tpl';
if (file_exists($file_tpl)) {
if (file_exists($file_tpl)) {
$file = fopen($file_tpl, "w");
fwrite($file, (isset($txt) ? $txt : ''));
fclose($file);
}
}
}
public function removeTemplate($name = 'template-name')
{
$file_tpl = "../modules/" . $this->addon . "/lib/smartyTemplatesManager/tpl/" . $name . '.tpl';
if (file_exists($file_tpl)) {
if (file_exists($file_tpl)) {
unlink($file_tpl);
}
}
}
public function createNewTemplate($name = 'template-name')
{
$file_tpl = "../modules/" . $this->addon . "/lib/smartyTemplatesManager/tpl/" . $name . '.tpl';
if (!file_exists($file_tpl)) {
$file = fopen($file_tpl, "w");
fwrite($file, '');
fclose($file);
}
}
public function getSmartyFilesArray()
{
$dir = "../modules/htmlboxpro/lib/smartyTemplatesManager/tpl/";
$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[$explode[0]]['name'] = $explode[0];
$files[$explode[0]]['shortcode'] = $this->formatShortcode($explode[0]);
}
}
}
return $files;
}
public function getFilesArray()
{
if (Tools::getValue('ajax', 'false') == 'false') {
return;
}
$helper = new HelperList();
$helper->table_id = 'etm';
$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 = 'etm_list';
$helper->_pagination = array(
50,
100,
);
$helper->identifier = 'name';
$helper->currentIndex = '';
$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_fields->fields_list['shortcode'] = array(
'title' => $this->l('Shortcode'),
'align' => 'left',
'type' => 'text',
'filter' => false,
);
$helper->listTotal = count($this->getSmartyFilesArray());
return $helper->generateList($this->getSmartyFilesArray(), $helper_fields->fields_list);
}
public function formatShortcode($value)
{
return '{smartyTemplate:' . $value . '}';
}
public function getSmartyTemplatesContents($name)
{
$contents = array();
$contents[$name]['tpl'] = $this->getExactTemplateContents('tpl', $name);
return $contents;
}
public function getExactTemplateContents($format, $name)
{
$file_tpl = "../modules/" . $this->addon . '/lib/smartyTemplatesManager/tpl/' . $name . '.' . $format;
if (file_exists($file_tpl) && $format == 'tpl') {
return file_get_contents($file_tpl);
}
}
public function generateFormm()
{
$this->assignVariables();
$context = Context::getContext();
echo $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/smartyTemplatesManager/views/mainForm.tpl');
}
public function generateSmartyTemplatesManagerButton()
{
$context = Context::getContext();
$this->assignVariables();
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/smartyTemplatesManager/views/buttonManager.tpl');
}
public function generateCreateTemplateForm()
{
$context = Context::getContext();
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/smartyTemplatesManager/views/createTemplateForm.tpl');
}
public function generateEditTemplateForm($name)
{
$context = Context::getContext();
$context->smarty->assign('etm_template', $this->getSmartyTemplatesContents($name));
$context->smarty->assign('etm_template_name', $name);
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/smartyTemplatesManager/views/editTemplateForm.tpl');
}
public function generaterefreshListOfTemplatesSelect()
{
$context = Context::getContext();
$context->smarty->assign('etm_select', $this->getSmartyFilesArray());
return $context->smarty->fetch(_PS_MODULE_DIR_ . $this->addon . '/lib/smartyTemplatesManager/views/selectInput.tpl');
}
public function returnSmartyContents($format, $contents, $name)
{
return (isset($contents[$name][$format]) ? $contents[$name][$format] : '');
}
public function assignVariables()
{
if (defined('_PS_ADMIN_DIR_')) {
$context = Context::getContext();
$context->smarty->assign('etm', $this);
$context->smarty->assign('etm_additional_variables', (isset($this->availableTemplateVars) ? $this->availableTemplateVars : false));
$context->smarty->assign('etm_addon', $this->addon);
$context->smarty->assign('etm_templates', $this->getFilesArray());
$context->smarty->assign('etm_create_template', $this->generateCreateTemplateForm());
$context->smarty->assign('etm_module_url', $context->link->getAdminLink('AdminModules', true) . '&smartyTemplatesManager=1&ajax=1&module=' . $this->addon . '&configure=' . $this->addon);
}
}
}
?>

View File

@@ -0,0 +1 @@
{l s='this is test of smarty code' mod='htmlboxpro'}

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 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-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,13 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 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
*}
<script type="text/javascript" src="../modules/{$etm_addon}/lib/smartyTemplatesManager/js/smartyTemplatesManager.js"></script>
<a href="{$etm_module_url}" class="btn button btn-default smartyTemplatesManager"><i class="process-icon-edit"></i>{l s='Smarty templates manager' mod='htmlboxpro'}</a>

View File

@@ -0,0 +1,34 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 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">
<div class="panel-heading">{l s='Create new template' mod='htmlboxpro'}</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='Name of template' mod='htmlboxpro'}
</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="etm_newname" id="etm_newname" value="" class="col-lg-4" required="required">
{/literal}
<p class="help-block">
{l s='Letters and numbers only' mod='htmlboxpro'}
</p>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="panel-footer clearfx">
<a href="&createNewTemplate=1" class="pull-right btn button btn-default etm_button_createNew"><i class="process-icon-save"></i>{l s='Save' mod='htmlboxpro'}</a>
</div>
</div>

View File

@@ -0,0 +1,32 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 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
*}
<form name="editTemplateForm" id="editTemplateForm">
<input type="hidden" name="etm_name" value="{$etm_template_name}"/>
<div class="panel">
<div class="panel-heading">{l s='Smarty template' mod='htmlboxpro'} {$etm_template_name}</div>
<div class="alert alert-info">
{l s='If you want to translate the contents to other languages you can use prestasho\'s translation tool (just remember about prestashops language syntax)' mod='htmlboxpro'}
<br/>
{l s='Remember to use correct smarty syntax, otherwise file will generate errors. You use this editor tool under your own responsibility.' mod='htmlboxpro'}</div>
<div id="module_page" class="module_page_tab">
<div class="etm_txt_code col-lg-12 col-md-12 col-sm-12">
<textarea name="etm_txt" rows="20">{$etm->returnSmartyContents('tpl', $etm_template, $etm_template_name)|escape:'htmlall'}</textarea>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div class="panel-footer clearfix">
<a href="&back" id="etm_button_backToList" class="pull-left btn btn-default"><i class="process-icon-back"></i> {l s='Back' mod='htmlboxpro'}</a>
<a href="&smartyTemplateSave=1" id="etm_button_templateSave" class="pull-right btn btn-default"><i class="process-icon-save"></i> {l s='Save' mod='htmlboxpro'}</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 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-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,57 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2019 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 rel="stylesheet" href="../modules/{$etm_addon}/lib/smartyTemplatesManager/css/smartyTemplatesManager.css">
<div id="content" class="bootstrap" style="padding:0px!important;">
<div class="panel clearfix">
<div class="panel-heading">{l s='Smarty templates manager for module' mod='htmlboxpro'} </div>
<div class="col-lg-2" id="smartyTemplatesManagerMenu">
<div class="productTabs">
<ul class="tab">
<li class="tab-row">
<a class="etm_tab_page selected" id="etm_link_manageTemplates"
href="javascript:displayEtmTab('manageTemplates');">1. {l s='Edit templates' mod='htmlboxpro'}</a>
<a class="etm_tab_page" id="etm_link_createTemplates"
href="javascript:displayEtmTab('createTemplates');">2. {l s='Create template' mod='htmlboxpro'}</a>
</li>
</ul>
</div>
{if $etm_additional_variables != false}
<div class="panel">
<div class="alert alert-info">
<strong>{l s='additional smarty variables available exclusively for this module' mod='htmlboxpro'}</strong><br/><br/>
{foreach $etm_additional_variables as $variable => $key}
{$variable}
<br/>
{/foreach}
</div>
</div>
{/if}
</div>
<div class="col-lg-10">
<div id="etm_manageTemplates" class="etm_tab tab-pane" style="display:none;">
{$etm_templates nofilter}
</div>
<div id="etm_createTemplates" class="etm_tab tab-pane" style="display:none;">
{$etm_create_template nofilter}
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<script>
var etm_module_url = '{$etm_module_url|escape:javascript}';
$(document).ready(function () {
displayEtmTab('manageTemplates');
BindEtmScripts();
});
</script>

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-2019 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
*}
{foreach $etm_select as $select => $value}
<option value="{$value.name}">{$value.name}</option>
{/foreach}