Files
2019-11-17 19:14:07 +01:00

370 lines
15 KiB
PHP

<?php
/**
* 2007-2017 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-2017 PrestaShop SA
* @license http://addons.prestashop.com/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*/
$leftColumn = false;
$rightColumn = false;
$txtsRight = 0;
$txtsLeft = 0;
$txtsCenter = 3;
$colors = 2;
$cartProducts = '<tr><td>%NAME%</td></tr><tr><td>%IMG%</td></tr>';
$style = 'text-decoration: none; display: block; color:#476688; font-size:30px;';
$style .= 'display:block;vertical-align:top;max-height:200px;';
$content =
'
<div width="600" align="center" valign="top" style="background-color:#%color_1%;">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="166" valign="middle" align="center">
<a href="%SHOP_LINK%" target="_blank">
<img style="'.$style.'"
src="%logo%" alt="%SHOP_NAME%" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="20px">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr><td bgcolor="#%color_2%">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top" style="padding: 5px;">
%center_1%
</td>
</tr>
</tbody>
</table>
</td>
<td width="320" align="right" valign="top">
<table width="320" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="35"></td>
<td width="280" height="35" align="left" style="padding: 5px;">
%center_2%
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="22">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
<tr>
<td width="600" height="32" bgcolor="#%color_1%">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="32" align="center">
%center_3%
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
';
$contentEdit1 = '
<div id="color_2_1_1_edit" width="600" align="center" valign="top" style="background-color:#%color_1%;">
<input id="color_picker_2_1_1_edit" class="color" name="color_picker_2_1_1" value="%color_1%" />
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="166" valign="middle" align="center">
<a href="%SHOP_LINK%" target="_blank"><img style="text-decoration: none; display: block; color:#476688; font-size:30px;display:block;vertical-align:top;max-height:200px;"
src="%logo%" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="20px">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr><td id="color_2_2_1_edit" bgcolor="#%color_2%">
<input id="color_picker_2_2_1_edit" class="color" name="color_picker_2_2_1" value="%color_2%" />
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top" style="padding: 5px;">
<textarea name="center_2_1_1" id="tpl2_center_1_1">%center_1%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
<td width="320" align="right" valign="top">
<table width="320" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="35"></td>
<td width="280" height="35" align="left" style="padding: 5px;">
<textarea name="center_2_2_1" id="tpl2_center_2_1">%center_2%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="22">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
<tr>
<td width="600" height="32" bgcolor="#%color_1%">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="32" align="center">
<textarea name="center_2_3_1" id="tpl2_center_3_1_edit">%center_3%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
';
$contentEdit2 = '
<div id="color_2_1_2_edit" width="600" align="center" valign="top" style="background-color:#%color_1%;">
<input id="color_picker_2_1_2_edit" class="color" name="color_picker_2_1_2" value="%color_1%" />
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="166" valign="middle" align="center">
<a href="%SHOP_LINK%" target="_blank"><img style="text-decoration: none; display: block; color:#476688; font-size:30px;display:block;vertical-align:top;max-height:200px;"
src="%logo%" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="20px">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr><td id="color_2_2_2_edit" bgcolor="#%color_2%">
<input id="color_picker_2_2_2_edit" class="color" name="color_picker_2_2_2" value="%color_2%" />
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top" style="padding: 5px;">
<textarea name="center_2_1_2" id="tpl2_center_1_2">%center_1%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
<td width="320" align="right" valign="top">
<table width="320" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="35"></td>
<td width="280" height="35" align="left" style="padding: 5px;">
<textarea name="center_2_2_2" id="tpl2_center_2_2">%center_2%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="22">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
<tr>
<td width="600" height="32" bgcolor="#%color_1%">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="32" align="center">
<textarea name="center_2_3_2" id="tpl2_center_3_2_edit">%center_3%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
';
$contentEdit3 = '
<div id="color_2_1_3_edit" width="600" align="center" valign="top" style="background-color:#%color_1%;">
<input id="color_picker_2_1_3_edit" class="color" name="color_picker_2_1_3" value="%color_1%" />
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="166" valign="middle" align="center">
<a href="%SHOP_LINK%" target="_blank">
<img style="text-decoration: none; display: block; color:#476688; font-size:30px;display:block;vertical-align:top;max-height:200px;"
src="%logo%" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="20px">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr><td id="color_2_2_3_edit" bgcolor="#%color_2%">
<input id="color_picker_2_2_3_edit" class="color" name="color_picker_2_2_3" value="%color_2%" />
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="280" align="left" valign="top" style="padding: 5px;">
<textarea name="center_2_1_3" id="tpl2_center_1_3">%center_1%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
<td width="320" align="right" valign="top">
<table width="320" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="35"></td>
<td width="280" height="35" align="left" style="padding: 5px;">
<textarea name="center_2_2_3" id="tpl2_center_2_3">%center_2%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="600" height="22">
<hr style="margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee">
</td>
</tr>
<tr>
<td width="600" height="32">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="40" height="32" align="center">
<textarea name="center_2_3_3" id="tpl2_center_3_3_edit">%center_3%</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
';