PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.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
← All changes | back/Views/Override/tmpl/listing.php +0 -113 trunk → 11.1.1 View file →
@@ -1,113 +1,0 @@
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 -?>
5 -<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm">
6 - <?php $data['toolbar']->displayToolbar($data); ?>
7 - <div id="acym__override" class="acym__content cell">
8 - <?php
9 - $workflow = $data['workflowHelper'];
10 - $workflow->displayTabs($this->tabs, 'listing&overrideMailSource='.$data['source']);
11 - ?>
12 - <div class="cell grid-x margin-top-1">
13 - <div class="grid-x acym__listing__actions cell margin-bottom-1">
14 - <?php
15 - $actions = [
16 - 'setActive' => acym_translation('ACYM_ACTIVATE'),
17 - 'setInactive' => acym_translation('ACYM_DEACTIVATE'),
18 - 'reset' => acym_translation('ACYM_RESET'),
19 - ];
20 - acym_listingActions($actions);
21 - ?>
22 - </div>
23 - <div class="cell grid-x align-justify">
24 - <div class="cell grid-x large-shrink acym_vcenter">
25 - <?php
26 - $options = [
27 - '' => ['ACYM_ALL', $data['overrideNumberPerStatus']['all']],
28 - 'active' => ['ACYM_ACTIVE', $data['overrideNumberPerStatus']['active']],
29 - 'inactive' => ['ACYM_INACTIVE', $data['overrideNumberPerStatus']['inactive']],
30 - ];
31 - acym_filterStatus($options, $data['status'], 'emails_override_status');
32 - ?>
33 - </div>
34 - <div class="cell large-shrink acym_listing_sort-by">
35 - <?php acym_sortBy(
36 - [
37 - 'active' => acym_translation('ACYM_ACTIVE'),
38 - ],
39 - 'override',
40 - $data['ordering'],
41 - $data['orderingSortOrder']
42 - ); ?>
43 - </div>
44 - </div>
45 - </div>
46 - <div class="grid-x acym__listing acym__listing__view__override">
47 - <div class="grid-x cell acym__listing__header">
48 - <div class="medium-shrink small-1 cell">
49 - <input id="checkbox_all" type="checkbox" name="checkbox_all">
50 - </div>
51 - <div class="grid-x medium-auto small-11 cell acym__listing__header__title__container">
52 - <div class="acym__listing__header__title cell medium-4">
53 - <?php echo esc_html(acym_translation('ACYM_NAME')); ?>
54 - </div>
55 - <div class="acym__listing__header__title cell hide-for-small-only medium-7">
56 - <?php echo esc_html(acym_translation('ACYM_DESCRIPTION')); ?>
57 - </div>
58 - <div class="acym__listing__header__title cell hide-for-small-only text-center medium-1">
59 - <?php echo esc_html(acym_translation('ACYM_ACTIVE')); ?>
60 - </div>
61 - </div>
62 - </div>
63 - <?php foreach ($data['allEmailsOverride'] as $override) { ?>
64 - <div data-acy-elementid="<?php echo esc_attr($override->id); ?>" class="grid-x cell align-middle acym__listing__row">
65 - <div class="medium-shrink small-1 cell">
66 - <input id="checkbox_<?php echo esc_attr($override->id); ?>" type="checkbox" name="elements_checked[]" value="<?php echo esc_attr($override->id); ?>">
67 - </div>
68 - <div class="grid-x medium-auto small-11 cell acym__listing__title__container">
69 - <div class="cell medium-4 acym__listing__title">
70 - <a href="<?php echo esc_url(
71 - acym_completeLink('mails&task=edit&type=override&id='.intval($override->mail_id).'&return='.urlencode(acym_currentURL()))
72 - ); ?>">
73 - <p><?php
74 - $subject = preg_replace('#^{trans:([A-Z_]+)(|.+)*}$#', '$1', $override->subject);
75 - $subject = str_replace('%', '%%', $subject);
76 - echo esc_html(acym_translationSprintf($subject, '{param1}', '{param2}'));
77 - ?></p>
78 - </a>
79 - </div>
80 - <div class="cell medium-6">
81 - <?php echo esc_html(acym_translation($override->description)); ?>
82 - </div>
83 - <div class="cell medium-1"></div>
84 - <div class="cell medium-1 text-center acym__listing__controls">
85 - <?php
86 - if ($override->active == 1) {
87 - $class = 'acymicon-check-circle acym__color__green';
88 - $newvalue = 0;
89 - $tooltip = 'ACYM_ACTIVE';
90 - } else {
91 - $class = 'acymicon-times-circle acym__color__red';
92 - $newvalue = 1;
93 - $tooltip = 'ACYM_INACTIVE';
94 - }
95 - acym_tooltip(
96 - [
97 - 'hoveredText' => '<i data-acy-table="mail_override" data-acy-field="active" data-acy-elementid="'.esc_attr(
98 - $override->id
99 - ).'" data-acy-newvalue="'.esc_attr($newvalue).'" class="acym_toggleable '.esc_attr($class).'"></i>',
100 - 'textShownInTooltip' => acym_translation($tooltip),
101 - ]
102 - );
103 - ?>
104 - </div>
105 - </div>
106 - </div>
107 - <?php } ?>
108 - </div>
109 - <?php $data['pagination']->display('override'); ?>
110 -
111 - </div>
112 - <?php acym_formOptions(); ?>
113 -</form>