geno/wp-content/plugins/mailpoet/views/newsletter/templates/blocks/coupon/block.hbs
2024-02-01 11:54:18 +00:00

13 lines
1.5 KiB
Handlebars

<div class="mailpoet_tools"></div>
<div class="mailpoet_content" data-automation-id="coupon_block">
<div class="mailpoet_editor_coupon" style="{{#ifCond model.styles.block.textAlign '==' 'left'}}margin: 0 auto 0 0; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'center'}}margin: auto; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'right'}}margin: 0 0 0 auto; {{/ifCond}}line-height: {{ model.styles.block.lineHeight }}; width: {{ model.styles.block.width }}; background-color: {{ model.styles.block.backgroundColor }}; color: {{ model.styles.block.fontColor }}; font-family: {{fontWithFallback model.styles.block.fontFamily }}; font-size: {{ model.styles.block.fontSize }}; font-weight: {{ model.styles.block.fontWeight }}; border: {{ model.styles.block.borderWidth }} {{ model.styles.block.borderStyle }} {{ model.styles.block.borderColor }}; border-radius: {{ model.styles.block.borderRadius }};">{{ model.code }}</div>
<div class="mailpoet_editor_coupon_overlay" style="{{#ifCond model.source '==' 'allCoupons'}}visibility: hidden;{{/ifCond}}">
<%= __('The coupon code will be auto-generated when this campaign is activated.') %>
{{#ifCond model.isStandardEmail '==' true}}
<%= __('All subscribers of this campaign will receive the same coupon code.') %>
{{else}}
<%= __('Each subscriber of this campaign will receive a new coupon code.') %>
{{/ifCond}}
</div>
</div>
<div class="mailpoet_block_highlight"></div>