PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.11.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.11.1
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 / Bounces / tmpl / listing_mailboxes.php

listing_mailboxes.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.11.1, at back/Views/Bounces/tmpl/listing_mailboxes.php

101 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (empty($data['allMailboxes'])) { ?>
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 margin-bottom-1 acym__listing__actions grid-x">
5 <?php
6 $actions = [
7 'duplicateMailboxAction' => acym_translation('ACYM_DUPLICATE'),
8 'deleteMailboxAction' => acym_translation('ACYM_DELETE'),
9 ];
10 echo acym_listingActions($actions);
11 ?>
12 </div>
13 <div class="cell grid-x align-justify">
14 <div class="cell grid-x large-shrink acym_vcenter">
15 <div class="auto cell acym_vcenter">
16 <?php
17 $options = [
18 '' => ['ACYM_ALL', $data['allStatusFilters']['all']],
19 'active' => ['ACYM_ACTIVE', $data['allStatusFilters']['active']],
20 'inactive' => ['ACYM_INACTIVE', $data['allStatusFilters']['inactive']],
21 ];
22 echo acym_filterStatus($options, $data['status'], 'mailboxes_status');
23 ?>
24 </div>
25 </div>
26 <div class="cell large-shrink acym_listing_sort-by">
27 <?php echo acym_sortBy(
28 [
29 'name' => acym_translation('ACYM_NAME'),
30 'username' => acym_translation('ACYM_USERNAME'),
31 'id' => acym_translation('ACYM_ID'),
32 'active' => acym_translation('ACYM_ACTIVE'),
33 ],
34 'mailboxes',
35 $data['ordering']
36 ); ?>
37 </div>
38 </div>
39 <div class="grid-x acym__listing">
40 <div class="grid-x cell acym__listing__header">
41 <div class="medium-shrink small-1 cell">
42 <input id="checkbox_all" type="checkbox">
43 </div>
44 <div class="grid-x medium-auto small-11 cell acym__listing__header__title__container">
45 <div class="large-4 medium-4 cell acym__listing__header__title">
46 <?php echo acym_translation('ACYM_NAME'); ?>
47 </div>
48 <div class="large-2 medium-2 hide-for-small-only cell acym__listing__header__title">
49 <?php echo acym_translation('ACYM_EMAIL'); ?>
50 </div>
51 <div class="auto hide-for-small-only cell acym__listing__header__title">
52 <?php echo acym_translation('ACYM_ACTIONS'); ?>
53 </div>
54 <div class="large-1 medium-1 text-center hide-for-small-only cell acym__listing__header__title">
55 <?php echo acym_translation('ACYM_ACTIVE'); ?>
56 </div>
57 <div class="large-1 medium-1 text-center hide-for-small-only cell acym__listing__header__title">
58 <?php echo acym_translation('ACYM_ID'); ?>
59 </div>
60 </div>
61 </div>
62 <?php
63 foreach ($data['allMailboxes'] as $mailbox) {
64 ?>
65 <div class="grid-x cell align-middle acym__listing__row">
66 <div class="medium-shrink small-1 cell">
67 <input id="checkbox_<?php echo acym_escape($mailbox->id); ?>" type="checkbox" name="elements_checked[]" value="<?php echo acym_escape($mailbox->id); ?>">
68 </div>
69 <div class="grid-x medium-auto small-11 cell acym__listing__title__container">
70 <div class="grid-x large-4 medium-4 small-11 cell acym__listing__title">
71 <a class="cell" href="<?php echo acym_completeLink('bounces&task=mailboxAction&mailboxId='.intval($mailbox->id)); ?>">
72 <h6 class="acym__listing__title__important"><?php echo acym_escape($mailbox->name); ?></h6>
73 </a>
74 </div>
75 <div class="cell large-2 medium-2 hide-for-small-only">
76 <?php echo $mailbox->username; ?>
77 </div>
78 <div class="cell auto hide-for-small-only grid-x">
79 <?php foreach ($mailbox->actionsRendered as $actionRendered) { ?>
80 <span class="cell acym_text_ellipsis"><?php echo $actionRendered; ?></span>
81 <?php } ?>
82 </div>
83 <div class="cell small-1 acym__listing__controls text-center">
84 <?php
85 $class = $mailbox->active == 1 ? 'acymicon-check-circle acym__color__green" data-acy-newvalue="0'
86 : 'acymicon-times-circle acym__color__red" data-acy-newvalue="1';
87 echo '<i data-acy-table="mailbox_action" data-acy-field="active" data-acy-elementid="'.acym_escape(
88 $mailbox->id
89 ).'" class="acym_toggleable '.$class.'"></i>';
90 ?>
91 </div>
92 <div class="cell medium-1 hide-for-small-only text-center">
93 <?php echo acym_escape($mailbox->id); ?>
94 </div>
95 </div>
96 </div>
97 <?php } ?>
98 </div>
99 <?php echo $data['pagination']->display('mailboxes');
100 }
101