PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Views / Campaigns / tmpl / followup_condition.php

followup_condition.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.2, at back/Views/Campaigns/tmpl/followup_condition.php

95 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 <form id="acym_form"
6 action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>"
7 method="post"
8 name="acyForm"
9 class="cell grid-x align-center"
10 data-abide
11 novalidate>
12 <div id="acym__followup__condition" class="cell grid-x margin-y align-center acym__content margin-top-2 large-9">
13 <input type="hidden" name="id" value="<?php echo empty($data['followup']->id) ? '' : esc_attr($data['followup']->id); ?>">
14 <input type="hidden" name="trigger" value="<?php echo empty($data['followup']->trigger) ? esc_attr($data['trigger']) : ''; ?>">
15 <div class="cell grid-x">
16 <?php
17 $workflow = $data['workflowHelper'];
18 if (empty($data['followup']->id)) $data['workflowHelper']->disabledAfter = 'followupCondition';
19 $workflow->display($this->followupSteps, 'followupCondition', true, false, empty($data['followup']->trigger) ? '&trigger='.$data['trigger'] : '');
20 ?>
21 </div>
22 <p class="cell acym__followup__condition__desc padding-left-1"><?php echo esc_html(acym_translation('ACYM_FOLLOW_UP_CONDITION_DESC_1')); ?></p>
23 <p class="cell padding-left-1"><?php echo esc_html(acym_translation('ACYM_FOLLOW_UP_CONDITION_DESC_2')); ?></p>
24 <h5 class="cell padding-left-1 acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_SEND_FOLLOW_UP_EMAIL_IF')); ?></h5>
25 <div class="cell grid-x padding-left-1">
26 <?php
27 $allowedConditionTags = [
28 'span' => ['class' => true],
29 'select' => ['class' => true, 'name' => true, 'id' => true, 'multiple' => true],
30 'option' => ['value' => true, 'selected' => true, 'disabled' => true],
31 'input' => ['type' => true, 'name' => true, 'value' => true],
32 ];
33 if (!empty($data['followup']->condition) && empty($data['additionalCondition']) && !in_array($data['trigger'], ['user_subscribe', 'user_creation'])) {
34 echo '<p class="cell acym__color__orange padding-left-1"><b>'.esc_html(acym_translation('ACYM_MISSING_ADDON')).'</b></p>';
35 }
36 if (!empty($data['additionalCondition']) || $data['trigger'] == 'user_subscribe') {
37 echo '<h5 class="cell acym__title__primary__color padding-left-1">'.esc_html(acym_translation('ACYM_SPECIFIC_CONDITIONS_TRIGGER')).'</h5>';
38 }
39 foreach ($data['additionalCondition'] as $condition) {
40 ?>
41 <span class="cell grid-x acym_vcenter margin-top-1 padding-left-2"><?php echo $condition; ?></span>
42 <?php
43 }
44
45 ?>
46 <?php if ($data['trigger'] === 'user_subscribe') { ?>
47 <span class="cell grid-x acym_vcenter margin-bottom-1 margin-top-1 padding-left-2"><?php echo wp_kses(
48 acym_translationSprintf(
49 $data['lists_subscribe_translation'],
50 $data['select_status_lists'],
51 $data['lists_multiselect']
52 ),
53 $allowedConditionTags
54 ); ?></span>
55 <?php } ?>
56 <h5 class="cell acym__title__primary__color margin-top-2 padding-left-1"><?php echo esc_html(acym_translation('ACYM_CLASSIC_CONDITIONS')); ?></h5>
57 <?php if ($data['trigger'] !== 'user_subscribe') { ?>
58 <span class="cell grid-x acym_vcenter margin-bottom-1 margin-top-1 padding-left-2"><?php echo wp_kses(
59 acym_translationSprintf(
60 $data['lists_subscribe_translation'],
61 $data['select_status_lists'],
62 $data['lists_multiselect']
63 ),
64 $allowedConditionTags
65 ); ?></span>
66 <?php } ?>
67 <span class="cell grid-x acym_vcenter padding-left-2"><?php echo wp_kses(
68 acym_translationSprintf(
69 'ACYM_FOLLOW_UP_CONDITION_USER_SEGMENT',
70 $data['select_status_segments'],
71 $data['segments_multiselect']
72 ),
73 $allowedConditionTags
74 ); ?></span>
75 </div>
76 <div class="cell grid-x">
77 <div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left">
78 <?php acym_backToListing(); ?>
79 </div>
80 <div class="cell auto align-right grid-margin-x grid-x">
81 <button type="button" class="cell shrink acy_button_submit button button-secondary" data-task="save" data-step="listing"><?php echo esc_html(
82 acym_translation(
83 'ACYM_SAVE_EXIT'
84 )
85 ); ?></button>
86 <button type="button" class="cell shrink acy_button_submit button" data-task="save" data-step="followupEmail"><?php echo esc_html(
87 acym_translation('ACYM_SAVE_CONTINUE')
88 ); ?>
89 <i class="acymicon-chevron-right"></i></button>
90 </div>
91 </div>
92 </div>
93 <?php acym_formOptions(true, 'edit', 'followupCondition'); ?>
94 </form>
95