class-page-dashboard.php
2 years ago
class-page-elementor-dashboard.php
2 years ago
class-page-gutenberg-dashboard.php
2 years ago
class-page-settings.php
2 years ago
class-page-support.php
2 years ago
class-page-dashboard.php
99 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Admin\Pages; |
| 4 | |
| 5 | defined('ABSPATH') || exit(); |
| 6 | |
| 7 | use SuperbAddons\Components\Admin\LinkBox; |
| 8 | use SuperbAddons\Components\Admin\ReviewBox; |
| 9 | use SuperbAddons\Admin\Controllers\DashboardController; |
| 10 | use SuperbAddons\Components\Admin\ContentBoxLarge; |
| 11 | use SuperbAddons\Components\Admin\PremiumBox; |
| 12 | use SuperbAddons\Components\Admin\SupportLinkBoxes; |
| 13 | |
| 14 | class DashboardPage |
| 15 | { |
| 16 | public function __construct() |
| 17 | { |
| 18 | $this->Render(); |
| 19 | } |
| 20 | |
| 21 | private function Render() |
| 22 | { |
| 23 | ?> |
| 24 | <!-- Welcome Box --> |
| 25 | <div class="superbaddons-admindashboard-content-box-large superbaddons-admindashboard-general-intro" style="background-image:url(<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/asset-medium-dashboardheader.jpg'); ?>);"> |
| 26 | <div class="superbaddons-admindashboard-content-box-large-inner"> |
| 27 | <span class="superbaddons-element-text-sm superbaddons-element-text-800 superbaddons-element-text-dark">Hello, <?= esc_html(wp_get_current_user()->display_name); ?> 👋</span> |
| 28 | <h2 class="superbaddons-element-text-lg superbaddons-element-text-800 superbaddons-element-text-dark"><?= esc_html__("Building Beautiful Websites Made Easy", "superbaddons"); ?></h2> |
| 29 | <p class="superbaddons-element-text-xxs superbaddons-element-text-gray"> |
| 30 | <?= esc_html__("Say goodbye to countless hours lost on trial and error. No design or coding skills required. Unlock more than 500 sections, themes and blocks with one click.", "superbaddons"); ?> |
| 31 | </p> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div class="superbaddons-admindashboard-sidebarlayout"> |
| 36 | <div class="superbaddons-admindashboard-sidebarlayout-left"> |
| 37 | <!-- Elementor Addons --> |
| 38 | <?php |
| 39 | new ContentBoxLarge( |
| 40 | array( |
| 41 | "title" => __("Elementor Addons", "superbaddons"), |
| 42 | "description" => __("Unleash the full potential of Elementor with Superb Addons. Create pixel-perfect designs and take your website-building skills to the next level with our seamless integration that gives you access to 250 Elementor sections and elements.", "superbaddons"), |
| 43 | "image" => "elementor-illustration-cards-medium.jpg", |
| 44 | "icon" => "logo-elementor.svg", |
| 45 | "cta" => __("View Elementor Library", "superbaddons"), |
| 46 | "link" => admin_url('admin.php?page=' . DashboardController::ELEMENTOR_DASHBOARD), |
| 47 | "class" => 'superbaddons-admindashboard-dashboard-elementor-intro' |
| 48 | ) |
| 49 | ); |
| 50 | ?> |
| 51 | <!-- Gutenberg Addons --> |
| 52 | <?php new ContentBoxLarge( |
| 53 | array( |
| 54 | "title" => __("WordPress Addons", "superbaddons"), |
| 55 | "description" => __("Unlock the true power of the WordPress editor with Superb Addons. Get access to over 500 patterns, blocks, sections and search engine optimized themes for every type of website.", "superbaddons"), |
| 56 | "image" => "illustration-cards-medium.jpg", |
| 57 | "icon" => "logo-gutenberg.svg", |
| 58 | "cta" => __("View WordPress Library", "superbaddons"), |
| 59 | "link" => admin_url('admin.php?page=' . DashboardController::GUTENBERG_DASHBOARD), |
| 60 | "class" => 'superbaddons-admindashboard-dashboard-gutenberg-intro' |
| 61 | ) |
| 62 | ); |
| 63 | ?> |
| 64 | <!-- Link Boxes --> |
| 65 | <div class="superbaddons-admindashboard-linkbox-wrapper"> |
| 66 | <?php |
| 67 | new LinkBox( |
| 68 | array( |
| 69 | "icon" => "purple-file.svg", |
| 70 | "title" => __("Documentation", "superbaddons"), |
| 71 | "description" => __("We have put together a detailed documentation that walks you through every step of the process, from installation to customization.", "superbaddons"), |
| 72 | "cta" => __("View documentation", "superbaddons"), |
| 73 | "link" => "https://superbthemes.com/documentation/", |
| 74 | ) |
| 75 | ); |
| 76 | new LinkBox( |
| 77 | array( |
| 78 | "icon" => "purple-bulb.svg", |
| 79 | "title" => __("Request a feature", "superbaddons"), |
| 80 | "description" => __("We're always looking for ways to improve Superb Addons. If you have a feature request or suggestion, we'd love to hear from you.", "superbaddons"), |
| 81 | "cta" => __("Request feature", "superbaddons"), |
| 82 | "link" => "https://superbthemes.com/feature-request/", |
| 83 | ) |
| 84 | ); |
| 85 | new SupportLinkBoxes(); |
| 86 | ?> |
| 87 | </div> |
| 88 | </div> |
| 89 | <div class="superbaddons-admindashboard-sidebarlayout-right"> |
| 90 | <?php |
| 91 | new PremiumBox(); |
| 92 | new ReviewBox(); |
| 93 | ?> |
| 94 | </div> |
| 95 | </div> |
| 96 | <?php |
| 97 | } |
| 98 | } |
| 99 |