PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
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/Controllers/Queue/Detailed.php +14 -10 10.11.1 → 11.1.0 View file →
@@ -14,11 +14,13 @@
14 14 {
15 15 acym_setVar('layout', 'detailed');
16 16 $pagination = new PaginationHelper();
17 17
18 + // Get filters data
18 19 $searchFilter = $this->getVarFiltersListing('string', 'dqueue_search', '');
19 20 $tagFilter = $this->getVarFiltersListing('string', 'dqueue_tag', '');
20 21
22 + // Get pagination data
21 23 $elementsPerPage = $pagination->getListLimit();
22 24 $page = $this->getVarFiltersListing('int', 'dqueue_pagination_page', 1);
23 25
24 26 $queueClass = new QueueClass();
@@ -30,8 +32,9 @@
30 32 'offset' => ($page - 1) * $elementsPerPage,
31 33 ]
32 34 );
33 35
36 + // Prepare the pagination
34 37 $pagination->setStatus((int)$matchingElements['total']->total, $page, $elementsPerPage);
35 38
36 39 $tagClass = new TagClass();
37 40 $viewData = [
@@ -52,21 +55,22 @@
52 55 public function prepareToolbarDetailed(array &$data): void
53 56 {
54 57 $toolbarHelper = new ToolbarHelper();
55 58 $toolbarHelper->addSearchBar($data['search'], 'dqueue_search', 'ACYM_SEARCH');
56 - $otherContent = acym_modal(
57 - '<i class="acymicon-paper-plane"></i>'.acym_translation('ACYM_SEND_ALL'),
58 - '',
59 - null,
60 - ['data-reveal-larger' => true],
59 + $toolbarHelper->addModalButton(
61 60 [
62 - 'class' => 'cell medium-shrink button',
63 - 'data-reload' => 'true',
64 - 'data-ajax' => 'true',
65 - 'data-iframe' => '&ctrl=queue&task=continuesend&id=0&totalsend=0',
61 + 'button' => '<i class="acymicon-paper-plane"></i>'.esc_html(acym_translation('ACYM_SEND_ALL')),
62 + 'attributesModal' => [
63 + 'data-reveal-larger' => true,
64 + ],
65 + 'attributesButton' => [
66 + 'class' => 'cell medium-shrink button',
67 + 'data-reload' => 'true',
68 + 'data-ajax' => 'true',
69 + 'data-iframe' => '&ctrl=queue&task=continuesend&id=0&totalsend=0',
70 + ],
66 71 ]
67 72 );
68 - $toolbarHelper->addOtherContent($otherContent);
69 73 $toolbarHelper->addFilterByTag($data, 'dqueue_tag', 'acym__queue__filter__tags acym__select');
70 74
71 75 $data['toolbar'] = $toolbarHelper;
72 76 $data['cleartask'] = 'detailed';