PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.2.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.2.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 / Queue / tmpl / scheduled.php

scheduled.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.2.2, at back/Views/Queue/tmpl/scheduled.php

107 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <form id="acym_form" action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm" data-abide novalidate>
2 <?php
3 $isEmpty = empty($data['allElements']) && empty($data['search']) && empty($data['tag']) && empty($data['status']);
4 if (!$isEmpty) {
5 $data['toolbar']->displayToolbar($data);
6 }
7 ?>
8 <div id="acym__queue" class="acym__content">
9 <?php
10 $workflow = $data['workflowHelper'];
11 echo $workflow->displayTabs($this->steps, 'scheduled');
12 ?>
13
14 <?php if ($isEmpty) { ?>
15 <div class="grid-x text-center">
16 <h1 class="acym__listing__empty__title cell"><?php echo acym_translation('ACYM_YOU_DONT_HAVE_ANY_CAMPAIGN_IN_QUEUE'); ?></h1>
17 <h1 class="acym__listing__empty__subtitle cell"><?php echo acym_translation('ACYM_SEND_ONE_AND_SEE_HOW_AMAZING_QUEUE_IS'); ?></h1>
18 </div>
19 <?php } else { ?>
20 <?php if (empty($data['allElements'])) { ?>
21 <h1 class="cell acym__listing__empty__search__title text-center"><?php echo acym_translation('ACYM_NO_RESULTS_FOUND'); ?></h1>
22 <?php } else { ?>
23 <div class="grid-x acym__listing acym__listing__view__squeue">
24 <div class="cell grid-x acym__listing__header hide-for-small-only">
25 <div class="acym__listing__header__title cell medium-auto">
26 <?php echo acym_translation('ACYM_MAILS'); ?>
27 </div>
28 <div class="acym__listing__header__title cell large-3 hide-for-medium-only text-center">
29 <?php echo acym_translation('ACYM_RECIPIENTS'); ?>
30 </div>
31 <div class="acym__listing__header__title cell medium-4 text-center">
32 <?php echo acym_translation('ACYM_SENDING_DATE'); ?>
33 </div>
34 <div class="cell medium-2"></div>
35 </div>
36 <?php foreach ($data['allElements'] as $row) {
37 ?>
38 <div data-acy-elementid="<?php echo acym_escape($row->id); ?>" class="cell grid-x acym__listing__row">
39 <div class="cell medium-auto acym_vcenter">
40 <div class="acym__listing__title">
41 <?php
42 $afterName = $row->language;
43 if (!empty($row->sending_params['abtest'])) {
44 $afterName = $row->subject;
45 } elseif (!empty($data['languages'][$row->language])) {
46 $afterName = $data['languages'][$row->language]->name;
47 }
48 $afterName = empty($afterName) ? '' : ' - '.$afterName
49 ?>
50 <h6 class="acym__listing__title__primary acym_text_ellipsis"><?php echo acym_escape($row->name.$afterName); ?></h6>
51 <span class="acym__listing__title__secondary acym_text_ellipsis"><?php echo acym_escape($row->subject); ?></span>
52 </div>
53 </div>
54 <div class="cell large-3 hide-for-medium-only hide-for-small-only text-center">
55 <div class="queue_lists">
56 <?php
57 $i = 0;
58 $class = 'acym_subscription acymicon-circle';
59 foreach ($row->lists as $oneList) {
60 if ($i === 6) {
61 echo acym_tooltip(
62 [
63 'hoveredText' => '<i data-campaign="'.$row->id.'" class="acym_subscription acymicon-add"></i>',
64 'textShownInTooltip' => acym_translation('ACYM_SHOW_ALL_LISTS'),
65 ]
66 );
67 $class .= ' is-hidden';
68 }
69 echo acym_tooltip(
70 [
71 'hoveredText' => '<i class="'.$class.'" style="color:'.$oneList->color.'"></i>',
72 'textShownInTooltip' => $oneList->name,
73 ]
74 );
75 $i++;
76 }
77 ?>
78 </div>
79 </div>
80 <div class="cell medium-4 small-9">
81 <?php echo acym_date($row->sending_date, acym_getDateTimeFormat()); ?>
82 </div>
83 <div class="cell medium-2 small-3">
84 <div class="acym_vcenter">
85 <?php
86 echo '<div class="acym_action_buttons">';
87 echo acym_tooltip(
88 [
89 'hoveredText' => '<i class="acymicon-times-circle acym__queue__cancel__button" mailid="'.$row->id.'"></i>',
90 'textShownInTooltip' => acym_translation('ACYM_CANCEL_SCHEDULING'),
91 ]
92 );
93 echo '</div>';
94 ?>
95 </div>
96 </div>
97 </div>
98 <?php } ?>
99 </div>
100 <?php echo $data['pagination']->display('squeue'); ?>
101 <?php } ?>
102 <?php } ?>
103 <?php acym_formOptions(true, 'scheduled'); ?>
104 <input type="hidden" name="acym__queue__cancel__mail_id">
105 </div>
106 </form>
107