| @@ -1,16 +1,25 @@ | ||
| 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 | +?> | |
| 1 | 5 | <form id="acym_form" |
| 2 | - action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl').'&task='.acym_getVar('string', 'task').'&campaignId='.acym_getVar('string', 'campaignId')); ?>" | |
| 3 | - method="post" | |
| 4 | - name="acyForm" | |
| 5 | - class="acym__form__campaign__edit"> | |
| 6 | - <input type="hidden" value="<?php echo !empty($data['campaign']->id) ? $data['campaign']->id : ''; ?>" name="campaignId" id="acym__campaign__recipients__form__campaign"> | |
| 6 | + action="<?php echo esc_url( | |
| 7 | + acym_completeLink(acym_getVar('cmd', 'ctrl').'&task='.acym_getVar('string', 'task').'&campaignId='.acym_getVar('string', 'campaignId')) | |
| 8 | + ); ?>" | |
| 9 | + method="post" | |
| 10 | + name="acyForm" | |
| 11 | + class="acym__form__campaign__edit"> | |
| 12 | + <input type="hidden" | |
| 13 | + value="<?php echo !empty($data['campaign']->id) ? esc_attr($data['campaign']->id) : ''; ?>" | |
| 14 | + name="campaignId" | |
| 15 | + id="acym__campaign__recipients__form__campaign"> | |
| 7 | 16 | <div id="acym__campaigns__segment" class="grid-x"> |
| 8 | - <div class="cell <?php echo $data['containerClass']; ?> float-center grid-x acym__content"> | |
| 17 | + <div class="cell <?php echo esc_attr($data['containerClass']); ?> float-center grid-x acym__content"> | |
| 9 | 18 | <?php |
| 10 | 19 | $this->addSegmentStep($data['displaySegmentTab']); |
| 11 | 20 | $workflow = $data['workflowHelper']; |
| 12 | - echo $workflow->display($this->steps, $this->step, true, false, '', 'campaignId'); | |
| 21 | + $workflow->display($this->steps, $this->step, true, false, '', 'campaignId'); | |
| 13 | 22 | |
| 14 | 23 | if (!acym_level(ACYM_ENTERPRISE)) { |
| 15 | 24 | include acym_getView('campaigns', 'segment_splashscreen'); |
| 16 | 25 | } |
| @@ -16,24 +25,24 @@ | ||
| 16 | 25 | } |
| 17 | 26 | ?> |
| 18 | 27 | <div class="cell grid-x text-center acym__campaign__recipients__save-button cell"> |
| 19 | 28 | <div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left"> |
| 20 | - <?php echo acym_backToListing(); ?> | |
| 29 | + <?php acym_backToListing(); ?> | |
| 21 | 30 | </div> |
| 22 | 31 | <div class="cell medium-auto grid-x text-right"> |
| 23 | 32 | <div class="cell medium-auto"></div> |
| 24 | 33 | <button data-task="save" |
| 25 | - data-step="listing" | |
| 26 | - type="submit" | |
| 27 | - class="cell button-secondary medium-shrink button medium-margin-bottom-0 margin-right-1 acy_button_submit"> | |
| 28 | - <?php echo acym_translation('ACYM_SAVE_EXIT'); ?> | |
| 34 | + data-step="listing" | |
| 35 | + type="submit" | |
| 36 | + class="cell button-secondary medium-shrink button medium-margin-bottom-0 margin-next-1 acy_button_submit"> | |
| 37 | + <?php echo esc_html(acym_translation('ACYM_SAVE_EXIT')); ?> | |
| 29 | 38 | </button> |
| 30 | 39 | <button data-task="save" |
| 31 | - data-step="sendSettings" | |
| 32 | - type="submit" | |
| 33 | - class="cell medium-shrink button margin-bottom-0 acy_button_submit" | |
| 34 | - id="acym__campaign__recipients__save-continue"> | |
| 35 | - <?php echo acym_translation('ACYM_SAVE_CONTINUE'); ?><i class="acymicon-chevron-right"></i> | |
| 40 | + data-step="sendSettings" | |
| 41 | + type="submit" | |
| 42 | + class="cell medium-shrink button margin-bottom-0 acy_button_submit" | |
| 43 | + id="acym__campaign__recipients__save-continue"> | |
| 44 | + <?php echo esc_html(acym_translation('ACYM_SAVE_CONTINUE')); ?><i class="acymicon-chevron-right"></i> | |
| 36 | 45 | </button> |
| 37 | 46 | </div> |
| 38 | 47 | </div> |
| 39 | 48 | </div> |