404Redirect.php
7 years ago
Capability.php
7 years ago
GetStarted.php
7 years ago
LoginRedirect.php
7 years ago
LogoutRedirect.php
7 years ago
Menu.php
7 years ago
Metabox.php
7 years ago
Policy.php
7 years ago
Post.php
7 years ago
Redirect.php
7 years ago
Route.php
7 years ago
Toolbar.php
7 years ago
Uri.php
7 years ago
GetStarted.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * ====================================================================== |
| 5 | * LICENSE: This file is subject to the terms and conditions defined in * |
| 6 | * file 'license.txt', which is part of this source code package. * |
| 7 | * ====================================================================== |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * Backend Get Started manager |
| 12 | * |
| 13 | * @package AAM |
| 14 | * @author Vasyl Martyniuk <vasyl@vasyltech.com> |
| 15 | */ |
| 16 | class AAM_Backend_Feature_Main_GetStarted extends AAM_Backend_Feature_Abstract { |
| 17 | |
| 18 | /** |
| 19 | * @inheritdoc |
| 20 | */ |
| 21 | public static function getTemplate() { |
| 22 | return 'main/get-started.phtml'; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Register 404 redirect feature |
| 27 | * |
| 28 | * @return void |
| 29 | * |
| 30 | * @access public |
| 31 | */ |
| 32 | public static function register() { |
| 33 | AAM_Backend_Feature::registerFeature((object) array( |
| 34 | 'uid' => 'get-started', |
| 35 | 'position' => 1, |
| 36 | 'title' => __('Get Started', AAM_KEY), |
| 37 | 'type' => 'main', |
| 38 | 'subjects' => array( |
| 39 | AAM_Core_Subject_Default::UID, |
| 40 | AAM_Core_Subject_Role::UID, |
| 41 | AAM_Core_Subject_User::UID, |
| 42 | AAM_Core_Subject_Visitor::UID |
| 43 | ), |
| 44 | 'option' => 'core.settings.getStarted', |
| 45 | 'view' => __CLASS__ |
| 46 | )); |
| 47 | } |
| 48 | |
| 49 | } |