first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

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}