| 1 |
<?php |
| 2 |
$beforeSave = ''; |
| 3 |
if (!empty($data['translation_languages'])) { |
| 4 |
$beforeSave = 'data-before-action="languageCampaign"'; |
| 5 |
} |
| 6 |
?> |
| 7 |
<div class="cell grid-x margin-top-1"> |
| 8 |
<div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1"> |
| 9 |
<?php |
| 10 |
echo acym_backToListing( |
| 11 |
in_array($data['currentCampaign']->sending_type, ['birthday', 'woocommerce_cart']) |
| 12 |
? 'campaigns&task=specificListing&type='.$data['currentCampaign']->sending_type : null |
| 13 |
); |
| 14 |
?> |
| 15 |
</div> |
| 16 |
<div class="cell medium-auto grid-x text-right"> |
| 17 |
<div class="cell medium-auto"></div> |
| 18 |
<?php if ($data['from'] == 'create') { ?> |
| 19 |
<button <?php echo $beforeSave; ?> |
| 20 |
data-task="save" |
| 21 |
data-step="tests" |
| 22 |
type="submit" |
| 23 |
class="cell medium-shrink button margin-bottom-0 acy_button_submit"> |
| 24 |
<?php echo strtoupper(acym_translation('ACYM_SAVE_CONTINUE')); ?><i class="acymicon-chevron-right"></i> |
| 25 |
</button> |
| 26 |
<?php } else { ?> |
| 27 |
<button <?php echo $beforeSave; ?> |
| 28 |
data-task="save" |
| 29 |
data-step="listing" |
| 30 |
type="submit" |
| 31 |
class="cell button-secondary medium-shrink button medium-margin-bottom-0 margin-next-1 acy_button_submit"> |
| 32 |
<?php echo acym_translation('ACYM_SAVE_EXIT'); ?> |
| 33 |
</button> |
| 34 |
<button <?php echo $beforeSave; ?> |
| 35 |
data-task="save" |
| 36 |
data-step="tests" |
| 37 |
type="submit" |
| 38 |
class="cell medium-shrink button margin-bottom-0 acy_button_submit"> |
| 39 |
<?php echo acym_translation('ACYM_SAVE_CONTINUE'); ?><i class="acymicon-chevron-right"></i> |
| 40 |
</button> |
| 41 |
<?php } ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|