API
2 weeks ago
Admin
1 month ago
Ajax
1 week ago
ExportImport
2 weeks ago
FormValidator
2 months ago
Frontend
1 week ago
Manager
2 weeks ago
API.php
1 month ago
Admin.php
2 months ago
Ajax.php
1 week ago
Apps.php
1 month ago
ContentManager.php
2 months ago
DbQueryUtils.php
1 month ago
ElementVisibilityConditions.php
2 months ago
Frontend.php
2 months ago
HelperFunctions.php
1 week ago
KirkiBase.php
2 months ago
PostsQueryUtils.php
2 months ago
Staging.php
2 months ago
View.php
2 weeks ago
Admin.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin panel kirki entry point |
| 4 | * |
| 5 | * @package kirki |
| 6 | */ |
| 7 | |
| 8 | namespace Kirki; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly. |
| 12 | } |
| 13 | |
| 14 | use Kirki\Admin\AdminMenu; |
| 15 | use Kirki\Admin\PostActions; |
| 16 | use Kirki\Admin\EditWithButton; |
| 17 | |
| 18 | /** |
| 19 | * Kirki Admin |
| 20 | */ |
| 21 | class Admin { |
| 22 | /** |
| 23 | * Initialize the class |
| 24 | * |
| 25 | * @return void |
| 26 | */ |
| 27 | public function __construct() { |
| 28 | |
| 29 | new AdminMenu(); |
| 30 | new PostActions(); |
| 31 | new EditWithButton(); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Plugin activation link |
| 36 | * |
| 37 | * @since 1.0.0 |
| 38 | * |
| 39 | * @param array $actions action list. |
| 40 | * @return array |
| 41 | */ |
| 42 | // public function plugin_action_links( $actions ) { |
| 43 | // if ( ! HelperFunctions::is_pro_user() ) { |
| 44 | // $actions['kirki_pro_link'] = |
| 45 | // '<a href="https://kirki.com/pricing/?utm_source=kirki_dashboard&utm_medium=wp_dashboard&utm_campaign=upgrade_pro&referrer=wordpress_dashboard" target="_blank"> |
| 46 | // <span style="color: #7338d6; font-weight: bold;">Upgrade Pro</span> |
| 47 | // </a>'; |
| 48 | // } |
| 49 | |
| 50 | // return $actions; |
| 51 | // } |
| 52 | } |
| 53 |