PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
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 / Mails / tmpl / edit_info_followup.php

edit_info_followup.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.1.0, at back/Views/Mails/tmpl/edit_info_followup.php

114 lines 4.4 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 <div class="cell medium-6">
6 <label>
7 <?php echo esc_html(acym_translation('ACYM_NAME')); ?>
8 <input name="mail[name]" type="text" class="acy_required_field" value="<?php echo esc_attr($data['mail']->name); ?>" required>
9 </label>
10 </div>
11 <div class="cell medium-6">
12 <label>
13 <?php echo esc_html(acym_translation('ACYM_EMAIL_SUBJECT')); ?>
14 <input name="mail[subject]" type="text" value="<?php echo esc_attr($data['mail']->subject); ?>" <?php echo in_array(
15 $data['mail']->type,
16 [$data['mailClass']::TYPE_WELCOME, $data['mailClass']::TYPE_UNSUBSCRIBE, $data['mailClass']::TYPE_AUTOMATION]
17 ) ? 'required' : ''; ?>>
18 </label>
19 </div>
20 <div class="cell xlarge-3 medium-6">
21 <label>
22 <?php
23 echo esc_html(acym_translation('ACYM_FROM_NAME'));
24 $fromName = esc_attr(empty($data['mail']->from_name) ? '' : $data['mail']->from_name);
25 ?>
26 <input name="mail[from_name]" type="text" placeholder="<?php echo esc_attr($this->config->get('from_name')); ?>" value="<?php echo esc_attr($fromName); ?>">
27 </label>
28 </div>
29 <div class="cell xlarge-3 medium-6">
30 <label>
31 <?php
32 echo esc_html(acym_translation('ACYM_FROM_EMAIL'));
33 $fromEmail = esc_attr(empty($data['mail']->from_email) ? '' : $data['mail']->from_email);
34 ?>
35 <input name="mail[from_email]" type="text" placeholder="<?php echo esc_attr($this->config->get('from_email')); ?>" value="<?php echo esc_attr($fromEmail); ?>">
36 </label>
37 </div>
38 <div class="cell xlarge-3 medium-6">
39 <label>
40 <?php
41 echo esc_html(acym_translation('ACYM_REPLYTO_NAME'));
42 $replyToNameValue = esc_attr(empty($data['mail']->reply_to_name) ? '' : $data['mail']->reply_to_name);
43 ?>
44 <input name="mail[reply_to_name]"
45 type="text"
46 placeholder="<?php echo esc_attr($this->config->get('replyto_name')); ?>"
47 value="<?php echo esc_attr($replyToNameValue); ?>">
48 </label>
49 </div>
50 <div class="cell xlarge-3 medium-6">
51 <label>
52 <?php
53 echo esc_html(acym_translation('ACYM_REPLYTO_EMAIL'));
54 $replyToEmailValue = esc_attr(empty($data['mail']->reply_to_email) ? '' : $data['mail']->reply_to_email);
55 ?>
56 <input name="mail[reply_to_email]"
57 type="text"
58 placeholder="<?php echo esc_attr($this->config->get('replyto_email')); ?>"
59 value="<?php echo esc_attr($replyToEmailValue); ?>">
60 </label>
61 </div>
62 <div class="cell large-6 grid-x acym_vcenter acym__mail__edit__followup">
63 <?php
64 $inputDelay = '<input type="number"
65 class="cell large-1 medium-3 margin-left-1"
66 min="0"
67 name="followup[delay]"
68 value="'.esc_attr(empty($data['mail']->delay) ? 0 : $data['mail']->delay).'">';
69 $selectDelayUnit = '<span class="cell large-3 medium-5 margin-left-1 margin-right-1">'.acym_select(
70 $data['delay_unit'],
71 'followup[delay_unit]',
72 empty($data['mail']->delay_unit) ? $data['default_delay_unit'] : $data['mail']->delay_unit,
73 ['class' => 'acym__select']
74 ).'</span>';
75 echo wp_kses(
76 acym_translationSprintf('ACYM_SEND_IT_X_X_AFTER_TRIGGER', $inputDelay, $selectDelayUnit),
77 [
78 'input' => [
79 'type' => true,
80 'class' => true,
81 'min' => true,
82 'name' => true,
83 'value' => true,
84 ],
85 'span' => [
86 'class' => true,
87 ],
88 'select' => [
89 'name' => true,
90 'id' => true,
91 'class' => true,
92 ],
93 'option' => [
94 'value' => true,
95 'selected' => true,
96 ],
97 ]
98 );
99 ?>
100 <input type="hidden" name="followup[id]" value="<?php echo empty($data['followup_id']) ? 0 : esc_attr($data['followup_id']); ?>">
101 </div>
102
103 <?php if (!empty($data['langChoice'])) { ?>
104 <div class="cell large-6 xlarge-3">
105 <label class="cell">
106 <?php
107 echo esc_html(acym_translation('ACYM_EMAIL_LANGUAGE'));
108 acym_info(['textShownInTooltip' => 'ACYM_EMAIL_LANGUAGE_DESC']);
109 acym_languageOption($data['langChoice']['links'], $data['langChoice']['name']);
110 ?>
111 </label>
112 </div>
113 <?php } ?>
114