| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<div class="cell grid-x text-center acym__campaign__email__save-button"> |
| 6 |
<div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left"> |
| 7 |
<?php |
| 8 |
$campaignType = $data['mailInformation']->sending_type ?? $data['campaign_type']; |
| 9 |
acym_backToListing( |
| 10 |
in_array($campaignType, ['birthday', 'woocommerce_cart']) |
| 11 |
? 'campaigns&task=specificListing&type='.$campaignType : null |
| 12 |
); |
| 13 |
?> |
| 14 |
</div> |
| 15 |
<div class="cell medium-auto grid-x text-right"> |
| 16 |
<div class="cell medium-auto"></div> |
| 17 |
<?php if (!empty($data['campaignID'])) { ?> |
| 18 |
<button data-before-action="<?php echo esc_attr($data['before-save']); ?>" |
| 19 |
data-task="save" |
| 20 |
data-step="listing" |
| 21 |
type="submit" |
| 22 |
class="cell button-secondary medium-shrink button medium-margin-bottom-0 margin-next-1 acy_button_submit"> |
| 23 |
<?php echo esc_html(acym_translation('ACYM_SAVE_EXIT')); ?> |
| 24 |
</button> |
| 25 |
<?php } ?> |
| 26 |
<button data-before-action="<?php echo esc_attr($data['before-save']); ?>" |
| 27 |
data-task="save" |
| 28 |
data-step="recipients" |
| 29 |
type="submit" |
| 30 |
class="cell medium-shrink button margin-bottom-0 acy_button_submit"> |
| 31 |
<?php echo esc_html(acym_translation('ACYM_SAVE_CONTINUE')); ?> |
| 32 |
<i class="acymicon-chevron-right"></i> |
| 33 |
</button> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
|