PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.10.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.10.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 / Users / tmpl / edit_history.php

edit_history.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.10.2, at back/Views/Users/tmpl/edit_history.php

136 lines 7.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!empty($data['user-information']->id)) { ?>
2 <div class="cell grid-x acym__users__display__history acym__content">
3 <div class="cell grid-x acym__users__history__toggle">
4 <button type="button"
5 class="cell small-6 acym__users__history__toggle-button acym__users__history__toggle-button-selected"
6 data-acym-toggle-history="mail"><?php echo acym_translation('ACYM_EMAIL_HISTORY'); ?></button>
7 <button type="button" class="cell small-6 acym__users__history__toggle-button" data-acym-toggle-history="user">
8 <?php echo acym_translation('ACYM_USER_HISTORY'); ?>
9 </button>
10 </div>
11 <div class="cell grid-x align-middle" data-acym-type="mail">
12 <?php if (empty($data['userMailHistory'])) {
13 echo '<h2 class="cell acym__title__primary__color text-center">'.acym_translation('ACYM_YOU_DIDNT_SENT_EMAIL_SUBSCRIBER').'</h2>';
14 } else { ?>
15 <div class="grid-x cell grid-margin-x acym__listing__header acym__listing__header__user_history text-center">
16 <div class="medium-4 hide-for-small-only cell acym__listing__header__title">
17 <?php echo acym_translation('ACYM_EMAIL_SUBJECT'); ?>
18 </div>
19 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
20 <?php echo acym_translation('ACYM_SEND_DATE'); ?>
21 </div>
22 <div class="medium-1 hide-for-small-only cell acym__listing__header__title">
23 <?php echo acym_translation('ACYM_OPEN'); ?>
24 </div>
25 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
26 <?php echo acym_translation('ACYM_OPEN_DATE'); ?>
27 </div>
28 <div class="medium-1 hide-for-small-only cell acym__listing__header__title">
29 <?php echo acym_translation('ACYM_CLICK'); ?>
30 </div>
31 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
32 <?php echo acym_translation('ACYM_BOUNCES'); ?>
33 </div>
34 </div>
35 <div class="acym__users__display__history__listing grid-x cell">
36 <?php foreach ($data['userMailHistory'] as $oneMailHistory) { ?>
37 <div class="grid-x cell text-center acym__listing__row grid-margin-x">
38 <div class="medium-4 cell acym__users__email__history__subject">
39 <a href="<?php echo acym_frontendLink('archive&task=view&id='.$oneMailHistory->id.'&'.acym_noTemplate()); ?>"
40 target="_blank"><?php echo $oneMailHistory->subject; ?></a>
41 </div>
42 <div class="medium-2 cell">
43 <?php echo empty($oneMailHistory->send_date) || '0000-00-00 00:00:00' == $oneMailHistory->send_date
44 ? '-'
45 : acym_tooltip(
46 [
47 'hoveredText' => acym_date(acym_getTimeFromUTCDate($oneMailHistory->send_date), 'd F H:i'),
48 'textShownInTooltip' => acym_date(acym_getTimeFromUTCDate($oneMailHistory->send_date), acym_getDateTimeFormat()),
49 ]
50 ); ?>
51 </div>
52 <div class="medium-1 cell text-center">
53 <?php echo $oneMailHistory->open; ?>
54 </div>
55 <div class="medium-2 cell text-center">
56 <?php echo empty($oneMailHistory->open_date)
57 ? '-'
58 : acym_tooltip(
59 [
60 'hoveredText' => acym_date(acym_getTimeFromUTCDate($oneMailHistory->open_date), 'd F H:i'),
61 'textShownInTooltip' => acym_date(acym_getTimeFromUTCDate($oneMailHistory->open_date), acym_getDateTimeFormat()),
62 ]
63 ); ?>
64 </div>
65 <div class="medium-1 cell text-center">
66 <?php echo $oneMailHistory->click; ?>
67 </div>
68 <div class="medium-2 cell text-center acym__listing__header__user_history__bounce">
69 <?php echo empty($oneMailHistory->bounce_rule) ? '-' : $oneMailHistory->ruleName; ?>
70 </div>
71 </div>
72 <?php } ?>
73 </div>
74 <?php } ?>
75 </div>
76 <div class="cell grid-x align-middle" data-acym-type="user">
77 <?php if (empty($data['userHistory'])) {
78 echo '<h2 class="cell acym__title__primary__color text-center">'.acym_translation('ACYM_USER_HISTORY_EMPTY').'</h2>';
79 } else { ?>
80 <div class="grid-x cell text-center grid-margin-x acym__listing__header acym__listing__header__user_history">
81 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
82 <?php echo acym_translation('ACYM_DATE'); ?>
83 </div>
84 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
85 <?php echo acym_translation('ACYM_IP'); ?>
86 </div>
87 <div class="medium-2 hide-for-small-only cell acym__listing__header__title">
88 <?php echo acym_translation('ACYM_ACTIONS'); ?>
89 </div>
90 <div class="medium-3 hide-for-small-only cell acym__listing__header__title">
91 <?php echo acym_translation('ACYM_DETAILS'); ?>
92 </div>
93 <div class="medium-3 hide-for-small-only cell acym__listing__header__title">
94 <?php echo acym_translation('ACYM_SOURCE'); ?>
95 </div>
96 </div>
97 <div class="acym__users__display__history__listing grid-x cell">
98 <?php
99 foreach ($data['userHistory'] as $key => $oneHistory) { ?>
100 <div class="grid-x cell text-center acym__listing__row grid-margin-x">
101 <div class="cell small-12 medium-2">
102 <?php echo acym_date($oneHistory->date, acym_getDateTimeFormat()); ?>
103 </div>
104 <div class="cell small-6 medium-2 acym__users__display__history__listing__ip">
105 <?php echo acym_escape($oneHistory->ip); ?>
106 </div>
107 <div class="cell small-6 medium-2">
108 <?php
109 $langKey = 'ACYM_ACTION_'.strtoupper($oneHistory->action);
110 $translation = acym_translation($langKey);
111 echo $translation === $langKey ? $oneHistory->action : $translation;
112 if ($oneHistory->action === 'unsubscribed' && !empty($oneHistory->unsubscribe_reason)) {
113 if (is_numeric($oneHistory->unsubscribe_reason)) {
114 $index = $oneHistory->unsubscribe_reason - 1;
115 $reason = $data['unsubReasons'][$index] ?? $oneHistory->unsubscribe_reason;
116 } else {
117 $reason = $oneHistory->unsubscribe_reason;
118 }
119 echo '<br />'.acym_escape($reason);
120 }
121 ?>
122 </div>
123 <div class="cell small-6 medium-3">
124 <?php if (!empty($oneHistory->data)) echo $oneHistory->data; ?>
125 </div>
126 <div class="cell small-6 medium-3">
127 <?php if (!empty($oneHistory->source)) echo $oneHistory->source; ?>
128 </div>
129 </div>
130 <?php } ?>
131 </div>
132 <?php } ?>
133 </div>
134 </div>
135 <?php }
136