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 / Lists / tmpl / listing_listing.php

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

258 lines 13.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (empty($data['lists'])) { ?>
2 <h1 class="cell acym__listing__empty__search__title text-center"><?php echo acym_translation('ACYM_NO_RESULTS_FOUND'); ?></h1>
3 <?php } else { ?>
4 <div class="cell grid-x margin-top-1">
5 <div class="grid-x acym__listing__actions cell margin-bottom-1">
6 <?php
7 $actions = [
8 'setActive' => acym_translation('ACYM_ENABLE'),
9 'setInactive' => acym_translation('ACYM_DISABLE'),
10 'delete' => acym_translation('ACYM_DELETE'),
11 ];
12 echo acym_listingActions($actions);
13 ?>
14 </div>
15 <div class="cell grid-x align-justify">
16 <div class="cell grid-x large-shrink acym_vcenter">
17 <?php
18 $options = [
19 '' => ['ACYM_ALL', $data['listNumberPerStatus']['all']],
20 'active' => ['ACYM_ACTIVE', $data['listNumberPerStatus']['active']],
21 'inactive' => ['ACYM_INACTIVE', $data['listNumberPerStatus']['inactive']],
22 'visible' => ['ACYM_VISIBLE', $data['listNumberPerStatus']['visible']],
23 'invisible' => ['ACYM_INVISIBLE', $data['listNumberPerStatus']['invisible']],
24 ];
25 echo acym_filterStatus($options, $data['status'], 'lists_status');
26 ?>
27 </div>
28 <div class="cell large-shrink acym_listing_sort-by">
29 <?php echo acym_sortBy(
30 [
31 'id' => acym_strtolower(acym_translation('ACYM_ID')),
32 'name' => acym_translation('ACYM_NAME'),
33 'creation_date' => acym_translation('ACYM_DATE_CREATED'),
34 'active' => acym_translation('ACYM_ACTIVE'),
35 'visible' => acym_translation('ACYM_VISIBLE'),
36 ],
37 'lists',
38 $data['ordering']
39 ); ?>
40 </div>
41 </div>
42 </div>
43 <?php
44 $columnClassesText = acym_isAdmin() ? 'show-for-xxlarge medium-1 xxlarge-2' : 'is-hidden medium-1';
45 $columnClassesIcon = acym_isAdmin() ? 'hide-for-small-only hide-for-xxlarge medium-1 xxlarge-2' : 'hide-for-small-only medium-1';
46 $columnWidthClass = acym_isAdmin() ? 'medium-1 xxlarge-2' : 'medium-1';
47 ?>
48 <div class="grid-x acym__listing acym__listing__view__list">
49 <div class="grid-x cell acym__listing__header">
50 <div class="medium-shrink small-1 cell">
51 <input id="checkbox_all" type="checkbox" name="checkbox_all">
52 </div>
53 <div class="grid-x medium-auto small-11 cell acym__listing__header__title__container">
54 <div class="acym__listing__header__title cell auto">
55 <?php echo acym_translation('ACYM_LIST'); ?>
56 </div>
57 <div class="acym__listing__header__title cell <?php echo $columnClassesText; ?> text-center">
58 <?php echo acym_translation('ACYM_SUBSCRIBED'); ?>
59 </div>
60 <div class="acym__listing__header__title cell <?php echo $columnClassesIcon; ?> text-center">
61 <?php
62 echo acym_tooltip(
63 [
64 'hoveredText' => '<i class="acymicon-user-check"></i>',
65 'textShownInTooltip' => acym_translation('ACYM_SUBSCRIBED'),
66 ]
67 );
68 ?>
69 </div>
70 <?php if ($this->config->get('require_confirmation', 1) == 1) { ?>
71 <div class="acym__listing__header__title cell show-for-xxlarge <?php echo $columnClassesText; ?> text-center">
72 <?php echo acym_translation('ACYM_NOT_CONFIRMED'); ?>
73 </div>
74 <div class="acym__listing__header__title cell <?php echo $columnClassesIcon; ?> text-center">
75 <?php
76 echo acym_tooltip(
77 [
78 'hoveredText' => '<i class="acymicon-hourglass-2"></i>',
79 'textShownInTooltip' => acym_translation('ACYM_NOT_CONFIRMED'),
80 ]
81 );
82 ?>
83 </div>
84 <?php } ?>
85 <div class="acym__listing__header__title cell <?php echo $columnClassesText; ?> text-center">
86 <?php echo acym_translation('ACYM_UNSUBSCRIBED'); ?>
87 </div>
88 <div class="acym__listing__header__title cell <?php echo $columnClassesIcon; ?> text-center">
89 <?php
90 echo acym_tooltip(
91 [
92 'hoveredText' => '<i class="acymicon-user-minus"></i>',
93 'textShownInTooltip' => acym_translation('ACYM_UNSUBSCRIBED'),
94 ]
95 );
96 ?>
97 </div>
98 <div class="acym__listing__header__title cell <?php echo $columnClassesText; ?> text-center">
99 <?php echo acym_translation('ACYM_INACTIVE'); ?>
100 </div>
101 <div class="acym__listing__header__title cell <?php echo $columnClassesIcon; ?> text-center">
102 <?php
103 echo acym_tooltip(
104 [
105 'hoveredText' => '<i class="acymicon-close"></i>',
106 'textShownInTooltip' => acym_translation('ACYM_INACTIVE'),
107 ]
108 );
109 ?>
110 </div>
111 <div class="acym__listing__header__title cell hide-for-small-only medium-2 large-1 text-center">
112 <?php echo acym_translation('ACYM_STATUS'); ?>
113 </div>
114 <div class="large-1 cell hide-for-small-only hide-for-medium-only text-center acym__listing__header__title">
115 <?php echo acym_translation('ACYM_ACTIONS'); ?>
116 </div>
117 <div class="acym__listing__header__title cell hide-for-small-only medium-shrink text-center acym__listing__id">
118 <?php echo acym_translation('ACYM_ID'); ?>
119 </div>
120 </div>
121 </div>
122 <?php foreach ($data['lists'] as $list) {
123 $linkList = acym_completeLink(acym_getVar('cmd', 'ctrl').'&task=settings&listId='.intval($list->id));
124 ?>
125 <div data-acy-elementid="<?php echo acym_escape($list->id); ?>" class="grid-x cell align-middle acym__listing__row">
126 <div class="medium-shrink small-1 cell">
127 <input id="checkbox_<?php echo acym_escape($list->id); ?>" type="checkbox" name="elements_checked[]" value="<?php echo acym_escape($list->id); ?>">
128 </div>
129 <div class="grid-x medium-auto small-11 cell acym__listing__title__container">
130 <div class="cell auto grid-x acym__listing__title">
131 <i class='cell shrink acymicon-circle' style="color:<?php echo acym_escape($list->color); ?>"></i>
132 <a class="cell auto" href="<?php echo $linkList; ?>">
133 <?php
134 echo '<h6 class="acym__listing__title__primary">'.acym_escape($list->name).'</h6>';
135 echo '<p class="acym__listing__title__secondary" title="'.acym_escape($list->description).'">'.acym_escape($list->description).'</p>';
136 ?>
137 </a>
138 </div>
139 <div class="small-1 <?php echo $columnWidthClass; ?> text-center small-up-1 cell">
140 <?php
141 echo acym_tooltip(
142 [
143 'hoveredText' => $list->sendable_users,
144 'textShownInTooltip' => acym_translation('ACYM_SUBSCRIBED'),
145 ]
146 );
147
148 if (!empty($list->newSub)) {
149 echo acym_tooltip(
150 [
151 'hoveredText' => ' <span class="acym__listing__evol-green">(+'.$list->newSub.')</span>',
152 'textShownInTooltip' => acym_translation('ACYM_EVOL_SUB'),
153 ]
154 );
155 } ?>
156 </div>
157 <?php if ($this->config->get('require_confirmation', 1) == 1) { ?>
158 <div class="small-1 <?php echo $columnWidthClass; ?> text-center small-up-1 cell">
159 <?php
160 echo acym_tooltip(
161 [
162 'hoveredText' => $list->unconfirmed_users,
163 'textShownInTooltip' => acym_translation('ACYM_NOT_CONFIRMED'),
164 ]
165 );
166 ?>
167 </div>
168 <?php } ?>
169 <div class="small-1 <?php echo $columnWidthClass; ?> text-center small-up-1 cell">
170 <?php
171 echo acym_tooltip(
172 [
173 'hoveredText' => $list->unsubscribed_users,
174 'textShownInTooltip' => acym_translation('ACYM_UNSUBSCRIBED'),
175 ]
176 );
177 ?>
178 <?php
179 if (!empty($list->newUnsub)) {
180 echo acym_tooltip(
181 [
182 'hoveredText' => ' <span class="acym__listing__evol-red">(+'.$list->newUnsub.')</span>',
183 'textShownInTooltip' => acym_translation('ACYM_EVOL_UNSUB'),
184 ]
185 );
186 } ?>
187 </div>
188 <div class="small-1 <?php echo $columnWidthClass; ?> text-center small-up-1 cell">
189 <?php
190 echo acym_tooltip(
191 [
192 'hoveredText' => $list->inactive_users,
193 'textShownInTooltip' => acym_translation('ACYM_INACTIVE'),
194 ]
195 );
196 ?>
197 </div>
198 <div class="cell small-1 medium-2 large-1 text-center acym__listing__controls acym__lists__controls acym__icon__table">
199 <?php
200 if ($list->active == 1) {
201 $class = 'acymicon-check-circle acym__color__green" data-acy-newvalue="0';
202 $tooltip = 'ACYM_ACTIVE';
203 } else {
204 $class = 'acymicon-times-circle acym__color__red" data-acy-newvalue="1';
205 $tooltip = 'ACYM_INACTIVE';
206 }
207 echo acym_tooltip(
208 [
209 'hoveredText' => '<i data-acy-table="list" data-acy-field="active" data-acy-elementid="'.acym_escape(
210 $list->id
211 ).'" class="acym_toggleable '.$class.'"></i>',
212 'textShownInTooltip' => acym_translation($tooltip),
213 ]
214 );
215
216 if (acym_isAdmin()) {
217 if ($list->visible == 1) {
218 $class = 'acymicon-eye" data-acy-newvalue="0';
219 $tooltip = 'ACYM_VISIBLE';
220 } else {
221 $class = 'acymicon-eye-slash acym__color__dark-gray" data-acy-newvalue="1';
222 $tooltip = 'ACYM_INVISIBLE';
223 }
224 echo acym_tooltip(
225 [
226 'hoveredText' => '<i data-acy-table="list" data-acy-field="visible" data-acy-elementid="'.acym_escape(
227 $list->id
228 ).'" class="acym_toggleable '.$class.'"></i>',
229 'textShownInTooltip' => acym_translation($tooltip),
230 ]
231 );
232 }
233 ?>
234 </div>
235 <div class="large-1 hide-for-small-only hide-for-medium-only cell text-center acym__icon__table">
236 <a href="<?php echo $linkList; ?>"><i class="acymicon-pencil" title="<?php echo acym_translation('ACYM_EDIT'); ?>"></i></a>
237 <?php if (acym_isAdmin()) { ?>
238 <a><i class="acymicon-download fastActions"
239 data-action="export"
240 data-ctrl="users"
241 data-acy-elementid="<?php echo acym_escape($list->id); ?>"
242 title="<?php echo acym_translation('ACYM_EXPORT'); ?>"></i></a>
243 <?php } ?>
244 <i class="cursor-pointer acymicon-delete fastActions deleteFastAction"
245 data-action="delete"
246 data-acy-elementid="<?php echo acym_escape($list->id); ?>"
247 title="<?php echo acym_translation('ACYM_DELETE'); ?>"></i>
248 </div>
249 <div class="medium-shrink hide-for-small-only text-center acym__listing__id">
250 <?php echo acym_escape($list->id); ?>
251 </div>
252 </div>
253 </div>
254 <?php } ?>
255 </div>
256 <?php echo $data['pagination']->display('lists'); ?>
257 <?php } ?>
258