first commit
This commit is contained in:
30
modules/ps_emailsmanager/views/templates/admin/addons.tpl
Normal file
30
modules/ps_emailsmanager/views/templates/admin/addons.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<div class="panel">
|
||||
<h3><i class="icon-picture-o"></i> {l s='Live from PrestaShop Addons' mod='ps_emailsmanager'}</h3>
|
||||
<div class="row margin-bottom">
|
||||
<div class="panel clearfix">
|
||||
<div class="col-lg-2 col-md-12 col-sm-12">
|
||||
<img alt="PrestaShop Addons" src="https://medias1.prestastore.com/themes/prestastore/img/front/logo.png">
|
||||
</div>
|
||||
<div class="col-lg-7 col-md-12 col-sm-12">
|
||||
{l s='Simply choose the template you prefer, then just personalize the colors, and all your automatic emails (account creation, order confirmation, payment accepted, etc.) will have a professional design optimized for all devices: computer, smartphone, tablet.' mod='ps_emailsmanager'}
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-12 col-sm-12">
|
||||
<a href="https://addons.prestashop.com/en/625-prestashop-email-templates?utm_source=back-office&utm_medium=emailtemplate&utm_content=download{$ps_version|intval}" class="btn btn-primary btn-lg btn-block" target="_blank" rel="noopener">{l s='See all email templates' mod='ps_emailsmanager'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{foreach from=$addons_products item=product}
|
||||
<div class="col-lg-3 col-md-6 col-sm-12">
|
||||
<div class="panel">
|
||||
<header class="panel-heading">{$product.displayName|escape:'htmlall':'UTF-8'}</header>
|
||||
<a href="{$product.url|escape:'quotes':'UTF-8'}?utm_source=back-office&utm_medium=emailtemplate&utm_content=download{$ps_version|intval}" target="_blank">
|
||||
<img class="img-responsive" src="{$product.cover.big|escape:'quotes':'UTF-8'}">
|
||||
</a>
|
||||
<br/>
|
||||
<a href="{$product.url|escape:'quotes':'UTF-8'}?utm_source=back-office&utm_medium=emailtemplate&utm_content=download{$ps_version|intval}" class="btn btn-primary btn-lg btn-block" target="_blank">{l s='Discover' mod='ps_emailsmanager'}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
69
modules/ps_emailsmanager/views/templates/admin/available.tpl
Normal file
69
modules/ps_emailsmanager/views/templates/admin/available.tpl
Normal file
@@ -0,0 +1,69 @@
|
||||
{*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if !empty($availableTemplates) && count($availableTemplates) > 1}
|
||||
<div class="panel">
|
||||
<h3>{l s='Available templates' mod='ps_emailsmanager'}</h3>
|
||||
<div class="row">
|
||||
{foreach from=$availableTemplates item=template}
|
||||
<div class="col-sm-12 col-md-6 col-lg-3">
|
||||
<div class="theme-container">
|
||||
<h4 class="theme-title" style="margin-bottom:0;">{$template.name|escape:'htmlall':'UTF-8'} {$template.version|escape:'htmlall':'UTF-8'}</h4>
|
||||
<div class="thumbnail-wrapper">
|
||||
<div class="action-wrapper">
|
||||
<div class="action-overlay"></div>
|
||||
<div class="action-buttons">
|
||||
<div class="btn-group">
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&select_template={$template.folder|escape:'htmlall':'UTF-8'}" class="btn btn-default">
|
||||
<i class="icon-check"></i> {l s='Use this template' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="{$previewLink|escape:'quotes':'UTF-8'}{$template.folder|escape:'htmlall':'UTF-8'}" target="_blank">
|
||||
<i class="icon-eye"></i> {l s='Preview' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
</li>
|
||||
{if $template.name != 'classic'}
|
||||
<li>
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&delete_template={$template.name|escape:'htmlall':'UTF-8'}" title="{l s='Delete this template' mod='ps_emailsmanager'}" class="delete" onclick="return confirm('{l s='This action will delete the template from your server. Are you sure?' mod='ps_emailsmanager' js=1}')">
|
||||
<i class="icon-trash"></i> {l s='Delete this template' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img class="center-block img-thumbnail" src="{$module_dir|escape:'quotes':'UTF-8'}imports/{$template.folder|escape:'htmlall':'UTF-8'}/preview.jpg" alt="{$template.name|escape:'htmlall':'UTF-8'}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<br />
|
||||
<fieldset id="available_templates">
|
||||
<legend>{l s='Available templates' mod='ps_emailsmanager'}</legend>
|
||||
{foreach from=$availableTemplates item=template}
|
||||
<div class="select_theme {if $currentTemplate.name == $template.name}select_theme_choice{/if}">
|
||||
{$template.name|escape:'htmlall':'UTF-8'} {$template.version|escape:'htmlall':'UTF-8'}<br><br>
|
||||
<img src="{$module_dir|escape:'htmlall':'UTF-8'}imports/{$template.folder|escape:'htmlall':'UTF-8'}/preview.jpg" alt="{$template.name|escape:'htmlall':'UTF-8'}"><br><br>
|
||||
<a href="{$previewLink|escape:'quotes':'UTF-8'}{$template.folder|escape:'htmlall':'UTF-8'}" class="button" target="_blank">
|
||||
{l s='Preview' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
<br />
|
||||
{if $currentTemplate.name != $template.name}
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&select_template={$template.folder|escape:'htmlall':'UTF-8'}" class="button">
|
||||
{l s='Use this template' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
{if $template.name != 'classic'}
|
||||
<br />
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&delete_template={$template.name|escape:'htmlall':'UTF-8'}" title="{l s='Delete this template' mod='ps_emailsmanager'}" class="button" onclick="return confirm('{l s='This action will delete the template from your server. Are you sure?' mod='ps_emailsmanager' js=1}')">
|
||||
{l s='Delete this template' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
{/if}
|
||||
{else}
|
||||
{if $template.name != 'classic'}
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&select_template={$template.folder|escape:'htmlall':'UTF-8'}" class="button">
|
||||
{l s='Change settings' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</fieldset>
|
||||
47
modules/ps_emailsmanager/views/templates/admin/current.tpl
Normal file
47
modules/ps_emailsmanager/views/templates/admin/current.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<h3>{l s='Current template' mod='ps_emailsmanager'}</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<img src="{$module_dir|escape:'quotes':'UTF-8'}imports/{$currentTemplate.name|escape:'quotes':'UTF-8'}/preview.jpg" style="width:200px;" class='center-block'>
|
||||
</div>
|
||||
<div class="col-md-6 col-centered">
|
||||
<h2>{$currentTemplate.name|escape:'htmlall':'UTF-8'} <small>{l s='version' mod='ps_emailsmanager'} {if isset($currentTemplate.version)}{$currentTemplate.version|escape:'htmlall':'UTF-8'}{/if}</small></h2>
|
||||
{if isset($currentTemplate.author)}<p>{l s='Author:' mod='ps_emailsmanager'} {$currentTemplate.author|escape:'htmlall':'UTF-8'}</p>{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
{if $currentTemplate.name != 'classic'}
|
||||
<a href="{$moduleLink|escape:'quotes':'UTF-8'}&select_template={$currentTemplate.name|escape:'htmlall':'UTF-8'}" class="btn btn-default pull-right">
|
||||
<i class="process-icon-configure"></i> {l s='Settings' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
{/if}
|
||||
<a href="{$previewLink|escape:'quotes':'UTF-8'}{$currentTemplate.name|escape:'htmlall':'UTF-8'}" class="btn btn-default pull-right" target="_blank">
|
||||
<i class="process-icon-preview"></i> {l s='Preview' mod='ps_emailsmanager'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
37
modules/ps_emailsmanager/views/templates/admin/help.tpl
Normal file
37
modules/ps_emailsmanager/views/templates/admin/help.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
{*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<h3>{l s='What does this module do?' mod='ps_emailsmanager'}</h3>
|
||||
<div class="emailsmanager-help">
|
||||
<img src="../modules/ps_emailsmanager/logo.png" />
|
||||
<p>{l s='This module allows you to easily add new email templates, modify them and save your configurations.' mod='ps_emailsmanager'}</p>
|
||||
<ul>
|
||||
<li>{l s='Start by importing a pack of template that you can buy on ' mod='ps_emailsmanager'} <a href="https://addons.prestashop.com/en/625-prestashop-email-templates" target="_blank">addons.prestashop.com</a></li>
|
||||
<li>{l s='In "Current template", you can preview your current template and modify it by clicking on Settings (not available for "classic").' mod='ps_emailsmanager'}</li>
|
||||
<li>{l s='In the last block, you can see all your available templates and choose one according to your needs !.' mod='ps_emailsmanager'}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
38
modules/ps_emailsmanager/views/templates/admin/help_15.tpl
Normal file
38
modules/ps_emailsmanager/views/templates/admin/help_15.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<fieldset>
|
||||
<legend>{l s='What does this module do?' mod='ps_emailsmanager'}</legend>
|
||||
<div class="emailsmanager-help">
|
||||
<img src="../modules/ps_emailsmanager/logo.png" />
|
||||
<p>{l s='This module allows you to easily add new email templates, modify them and save your configurations.' mod='ps_emailsmanager'}</p>
|
||||
<ul>
|
||||
<li>{l s='Start by importing a pack of template that you can buy on ' mod='ps_emailsmanager'} <a href="https://addons.prestashop.com/en/625-prestashop-email-templates" target="_blank">addons.prestashop.com</a></li>
|
||||
<li>{l s='In "Current template", you can preview your current template and modify it by clicking on Settings (not available for "classic").' mod='ps_emailsmanager'}</li>
|
||||
<li>{l s='In the last block, you can see all your available templates and choose one according to your needs !.' mod='ps_emailsmanager'}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</fieldset>
|
||||
<br />
|
||||
25
modules/ps_emailsmanager/views/templates/admin/index.php
Normal file
25
modules/ps_emailsmanager/views/templates/admin/index.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* 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-2014 PrestaShop SA
|
||||
* @license http://addons.prestashop.com/en/content/12-terms-and-conditions-of-use
|
||||
* 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;
|
||||
25
modules/ps_emailsmanager/views/templates/index.php
Normal file
25
modules/ps_emailsmanager/views/templates/index.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* 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-2014 PrestaShop SA
|
||||
* @license http://addons.prestashop.com/en/content/12-terms-and-conditions-of-use
|
||||
* 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;
|
||||
Reference in New Issue
Block a user