PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / trunk
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress vtrunk
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 10.3.0 10.4.0 All 60 releases
acymailing / front / FrontViews / Frontcampaigns / tmpl / send_settings_sending.php

send_settings_sending.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress trunk, at front/FrontViews/Frontcampaigns/tmpl/send_settings_sending.php

110 lines 5.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 use AcyMailing\Classes\CampaignClass;
5
6 ?>
7 <h5 class="cell margin-top-1 acym__title acym__title__secondary">
8 <?php echo esc_html(acym_translation('ACYM_WHEN_EMAIL_WILL_BE_SENT')); ?>
9 </h5>
10 <div class="cell grid-x align-center margin-top-1">
11 <div class="cell grid-x medium-11 acym__campaign__sendsettings__send-type grid-margin-x">
12 <?php if (!empty($data['currentCampaign']->sent) && empty($data['currentCampaign']->active)) { ?>
13 <div class="acym__hide__div"></div>
14 <h3 class="acym__title__primary__color acym__middle_absolute__text text-center">
15 <?php echo esc_html(acym_translation('ACYM_CAMPAIGN_ALREADY_QUEUED')); ?>
16 </h3>
17 <?php } ?>
18 <div class="cell grid-x grid-margin-x margin-bottom-2">
19 <div class="cell auto grid-x align-center">
20 <?php
21 $class = $data['currentCampaign']->send_now ? 'button-radio-selected' : 'button-radio-unselected';
22 $class .= $data['currentCampaign']->draft ? '' : ' disabled';
23 ?>
24 <button type="button"
25 class="cell medium-6 small-12 button-radio acym__campaign__sendsettings__buttons-type <?php echo esc_attr($class); ?>"
26 acym-button-radio-group="sendingType"
27 id="acym__campaign__sendsettings__now"
28 data-sending-type="<?php echo esc_attr($data['campaignClass']::SENDING_TYPE_NOW); ?>">
29 <?php echo esc_html(acym_translation('ACYM_NOW')); ?>
30 </button>
31 </div>
32 <?php
33 $class = $data['currentCampaign']->send_scheduled ? 'button-radio-selected' : 'button-radio-unselected';
34 $class .= $data['currentCampaign']->draft ? '' : ' disabled';
35 ?>
36 <div class="cell auto grid-x align-center">
37 <button type="button" <?php
38 if (acym_level(ACYM_ESSENTIAL)) {
39 echo 'data-acym-tooltip="'.esc_attr(acym_translationSprintf('ACYM_USE_THIS_FEATURE', 'AcyMailing Essential')).'"';
40 };
41 ?>
42 class="cell medium-6 small-12 button-radio acym__campaign__sendsettings__buttons-type <?php echo esc_attr($class); ?>"
43 acym-button-radio-group="sendingType"
44 id="acym__campaign__sendsettings__scheduled"
45 data-sending-type="<?php echo esc_attr(CampaignClass::SENDING_TYPE_SCHEDULED); ?>">
46 <?php echo esc_html(acym_translation('ACYM_SCHEDULED')); ?>
47 </button>
48 </div>
49 </div>
50 </div>
51 </div>
52
53 <h5 class="cell margin-top-1 margin-bottom-1 acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ADDITIONAL_SETTINGS')); ?></h5>
54 <div class="cell grid-x margin-top-1 margin-y">
55 <div class="cell medium-11 grid-margin-x grid-x acym__campaign__sendsettings__params"
56 data-show="acym__campaign__sendsettings__now" <?php echo $data['currentCampaign']->send_now ? '' : 'style="display: none"'; ?>>
57 <p class="cell"><?php echo esc_html(acym_translation('ACYM_SENT_AS_SOON_CAMPAIGN_SAVE')); ?></p>
58 </div>
59 <div class="cell grid-x acym__campaign__sendsettings__params"
60 data-show="acym__campaign__sendsettings__scheduled" <?php echo $data['currentCampaign']->send_scheduled ? '' : 'style="display: none"'; ?>>
61 <div class="cell grid-x acym__campaign__sendsettings__display-send-type-scheduled">
62 <p id="acym__campaign__sendsettings__scheduled__send-date__label" class="cell shrink padding-next-1">
63 <?php echo esc_html(acym_translation('ACYM_CAMPAIGN_WILL_BE_SENT')); ?>
64 </p>
65 <label class="cell shrink" for="acym__campaign__sendsettings__send">
66 <?php
67 $value = empty($data['currentCampaign']->sending_date) ? '' : acym_date($data['currentCampaign']->sending_date, 'Y-m-d H:i');
68 $required = $data['currentCampaign']->send_scheduled ? 'required="required"' : '';
69 acym_tooltip(
70 [
71 'hoveredText' => '<input
72 class="text-center acy_date_picker"
73 data-acym-translate="0"
74 type="text"
75 name="sendingDate"
76 id="acym__campaign__sendsettings__send-type-scheduled__date"
77 value="'.esc_attr($value).'"
78 readonly
79 '.$required.'>',
80 'textShownInTooltip' => acym_translation('ACYM_CLICK_TO_EDIT'),
81 ]
82 );
83 ?>
84 </label>
85 </div>
86 </div>
87 <?php if (!empty($data['langChoice'])) { ?>
88 <div class="cell grid-x">
89 <label class="cell medium-7 large-4">
90 <?php
91 echo esc_html(acym_translation('ACYM_EMAIL_LANGUAGE'));
92 acym_info(['textShownInTooltip' => 'ACYM_EMAIL_LANGUAGE_DESC']);
93 ?>
94 </label>
95 <div class="cell medium-5 large-3">
96 <?php acym_languageOption($data['langChoice']['links'], $data['langChoice']['name']); ?>
97 </div>
98 </div>
99 <?php } ?>
100 <div class="cell grid-x medium-10 large-7 xlarge-5">
101 <?php
102 acym_switch([
103 'name' => 'senderInformation[tracking]',
104 'value' => $data['currentCampaign']->tracking ?? 1,
105 'label' => acym_translation('ACYM_TRACK_THIS_CAMPAIGN'),
106 'tip' => ['textShownInTooltip' => 'ACYM_TRACK_THIS_CAMPAIGN_DESC'],
107 ]); ?>
108 </div>
109 </div>
110