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/PluginsController.php +53 -0 10.1.0 → 11.1.0 View file →
@@ -1,0 +1,53 @@
1 +<?php
2 +
3 +namespace AcyMailing\Controllers;
4 +
5 +use AcyMailing\Core\AcymController;
6 +use AcyMailing\Controllers\Plugins\Installed;
7 +use AcyMailing\Controllers\Plugins\Available;
8 +
9 +class PluginsController extends AcymController
10 +{
11 + use Installed;
12 + use Available;
13 +
14 + private array $level;
15 + private array $types;
16 + private array $tabs;
17 +
18 + public function __construct()
19 + {
20 + parent::__construct();
21 +
22 + $this->breadcrumb[acym_translation('ACYM_ADD_ONS')] = acym_completeLink('plugins');
23 + $this->loadScripts = [
24 + 'available' => ['vue-applications' => ['available_plugins']],
25 + 'installed' => ['datepicker', 'vue-prism-editor', 'vue-applications' => ['custom_view', 'installed_plugins']],
26 + ];
27 +
28 + $this->setDefaultTask('installed');
29 +
30 + $this->tabs = [
31 + 'installed' => acym_translation('ACYM_MY_ADD_ONS'),
32 + 'available' => acym_translation('ACYM_AVAILABLE_ADD_ONS'),
33 + ];
34 +
35 + $this->types = [
36 + '' => acym_translation('ACYM_ANY_CATEGORY'),
37 + 'Files management' => acym_translation('ACYM_FILES_MANAGEMENT'),
38 + 'E-commerce solutions' => acym_translation('ACYM_E_COMMERCE_SOLTIONS'),
39 + 'Content management' => acym_translation('ACYM_CONTENT_MANAGEMENT'),
40 + 'Subscription system' => acym_translation('ACYM_SUBSCRIPTION_SYSTEM'),
41 + 'User management' => acym_translation('ACYM_USERS_MANAGEMENT'),
42 + 'Events management' => acym_translation('ACYM_EVENTS_MANAGEMENT'),
43 + 'Others' => acym_translation('ACYM_OTHER'),
44 + ];
45 +
46 + $this->level = [
47 + '' => acym_translation('ACYM_ACYMAILING_LEVEL'),
48 + 'starter' => 'Starter',
49 + 'essential' => 'Essential',
50 + 'enterprise' => 'Enterprise',
51 + ];
52 + }
53 +}