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/Controllers/DashboardController.php +0 -79 10.0.1 → 11.1.1 View file →
@@ -1,79 +1,0 @@
1 -<?php
2 -
3 -namespace AcyMailing\Controllers;
4 -
5 -use AcyMailing\Core\AcymController;
6 -use AcyMailing\Controllers\Dashboard\Listing;
7 -use AcyMailing\Controllers\Dashboard\Walkthrough;
8 -use AcyMailing\Controllers\Dashboard\Migration;
9 -
10 -class DashboardController extends AcymController
11 -{
12 - var $errorMailer;
13 -
14 - use Listing;
15 - use Walkthrough;
16 - use Migration;
17 -
18 - public function __construct()
19 - {
20 - parent::__construct();
21 -
22 - $this->loadScripts = [
23 - 'features' => ['vue-applications' => ['splashscreen']],
24 - 'step_editor' => ['editor-wysid'],
25 - ];
26 - }
27 -
28 - public function upgrade()
29 - {
30 - acym_setVar('layout', 'upgrade');
31 -
32 - $version = acym_getVar('string', 'version', 'enterprise');
33 -
34 - $data = ['version' => $version];
35 -
36 - parent::display($data);
37 - }
38 -
39 - public function features()
40 - {
41 - if (!file_exists(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON)) {
42 - $this->listing();
43 -
44 - return;
45 - }
46 -
47 - $splashJson = acym_fileGetContent(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON);
48 - $version = json_decode($splashJson);
49 - if (version_compare($this->config->get('previous_version', '10.0.1'), $version->max_version, '>=')) {
50 - @unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON);
51 - $this->listing();
52 -
53 - return;
54 - }
55 -
56 - ob_start();
57 - include ACYM_NEW_FEATURES_SPLASHSCREEN;
58 - $data = [
59 - 'content' => ob_get_clean(),
60 - ];
61 -
62 - if (!@unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON)) {
63 - $this->listing();
64 -
65 - return;
66 - }
67 -
68 - acym_setVar('layout', 'features');
69 -
70 - parent::display($data);
71 - }
72 -
73 - public function acychecker()
74 - {
75 - acym_setVar('layout', 'acychecker');
76 -
77 - parent::display();
78 - }
79 -}