PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.1.4
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.1.4
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 / Controllers / Dashboard / Listing.php

Listing.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.1.4, at back/Controllers/Dashboard/Listing.php

41 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AcyMailing\Controllers\Dashboard;
4
5 use AcyMailing\Classes\CampaignClass;
6 use AcyMailing\Classes\MailStatClass;
7 use AcyMailing\Controllers\StatsController;
8
9 trait Listing
10 {
11 public function listing(): void
12 {
13 acym_setVar('layout', 'listing');
14
15 if ($this->migration()) return;
16 if ($this->walkthrough()) return;
17
18 $campaignClass = new CampaignClass();
19 $mailStatClass = new MailStatClass();
20 $statsController = new StatsController();
21
22 $data = [];
23 $data['page_title'] = true;
24 $data['mail_filter'] = '';
25 $data['stats_export'] = '';
26 $data['selectedMailid'] = '';
27 $data['show_date_filters'] = false;
28 $data['campaignsScheduled'] = $campaignClass->getCampaignForDashboard();
29 $data['sentMails'] = $mailStatClass->getAllMailsForStats();
30
31 $statsController->prepareOpenTimeChart($data);
32 $statsController->preparecharts($data);
33 $statsController->prepareDefaultRoundCharts($data);
34 $statsController->prepareDefaultLineChart($data);
35 $statsController->prepareDefaultDevicesChart($data);
36 $statsController->prepareDefaultBrowsersChart($data);
37
38 parent::display($data);
39 }
40 }
41