lib/atpay/button/templates/wrap_default.liquid in atpay_buttons-1.2.1 vs lib/atpay/button/templates/wrap_default.liquid in atpay_buttons-1.3.0
- old
+ new
@@ -28,13 +28,15 @@
<!-- BUTTON CODE -->
<center>
<table class="reg_mailto" border='0' cellpadding='0' cellspacing='0' style='font-family: Tahoma; background-color:{{background_color}}; padding:10px 15px 10px 0; width:150px;'>
<tr>
- <td style='width:45px; padding-left:10px; height:39px; text-align:right;'>
- <a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto;' target="_blank"> <img src='{{image}}'> </a>
- </td>
+ {% if image %}
+ <td style='width:45px; padding-left:10px; height:39px; text-align:right;'>
+ <a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto;' target="_blank"> <img src='{{image}}'> </a>
+ </td>
+ {% endif %}
<td style='padding-right:0px; color: {{foreground_color}};font-size:24px; padding-top:3px; text-align:right;' valign='top'>
<a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto; text-decoration:none; color:{{foreground_color}};' target="_blank"> {{dollar}}</a>
</td>
<td class='cents' style='color:{{foreground_color}};font-size:12px; padding-left:3px; padding-top:6px; text-align:left; text-decoration:underline;' valign='top'>
<a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto; text-decoration:none; color:{{foreground_color}};' target="_blank"> {{cents}} </a>
@@ -42,14 +44,16 @@
</tr>
</table>
<table class='out_mailto' border='0' cellpadding='0' cellspacing='0' style='width:0; height:0; padding:0; margin:0; font-size:0;'>
<tr>
- <td class='cart'>
- <a href='{{outlook_url}}' style='display:none;' target="_blank">
- <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
- </a>
- </td>
+ {% if image %}
+ <td class='cart'>
+ <a href='{{outlook_url}}' style='display:none;' target="_blank">
+ <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
+ </a>
+ </td>
+ {% endif %}
<td class='dollar' style='width:0; height:0; padding:0; margin:0; font-size:0;' valign='top'>
<a href='{{outlook_url}}' style='display:none;' target="_blank">
{{dollar}}
</a>
</td>