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,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}