| @@ -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 | +} | |