PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.2.8
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.2.8
4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 trunk 1.0.0 2.0.0 2.0.1 2.0.2 2.0.3 3.0 3.0.1 3.0.2 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1
superb-blocks / src / admin / pages / class-page-dashboard.php
superb-blocks / src / admin / pages Last commit date
class-page-additional-css.php 2 years ago 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
100 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", "superb-blocks"); ?></h2>
29 <p class="superbaddons-element-text-xxs superbaddons-element-text-gray">
30 <?= esc_html__("Supercharge your website and unlock new WordPress editor features, advanced custom CSS, patterns, blocks, themes and Elementor sections. No design or coding skills needed.", "superb-blocks"); ?>
31 </p>
32 </div>
33 </div>
34
35 <div class="superbaddons-admindashboard-sidebarlayout">
36 <div class="superbaddons-admindashboard-sidebarlayout-left">
37 <!-- Gutenberg Addons -->
38 <?php new ContentBoxLarge(
39 array(
40 "title" => __("WordPress Addons", "superb-blocks"),
41 "description" => __("Unlock the true power of the WordPress editor with Superb Addons. Get access to blocks, section patterns and page content patterns for every type of website.", "superb-blocks"),
42 "image" => "illustration-cards-medium.jpg",
43 "icon" => "logo-gutenberg.svg",
44 "cta" => __("View WordPress Library", "superb-blocks"),
45 "link" => admin_url('admin.php?page=' . DashboardController::GUTENBERG_DASHBOARD),
46 "class" => 'superbaddons-admindashboard-dashboard-gutenberg-intro'
47 )
48 );
49 ?>
50 <!-- Elementor Addons -->
51 <?php
52 new ContentBoxLarge(
53 array(
54 "title" => __("Elementor Addons", "superb-blocks"),
55 "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 300+ Elementor sections and elements.", "superb-blocks"),
56 "image" => "elementor-illustration-cards-medium.jpg",
57 "icon" => "logo-elementor.svg",
58 "cta" => __("View Elementor Library", "superb-blocks"),
59 "link" => admin_url('admin.php?page=' . DashboardController::ELEMENTOR_DASHBOARD),
60 "class" => 'superbaddons-admindashboard-dashboard-elementor-intro'
61 )
62 );
63 ?>
64 <!-- Link Boxes -->
65 <div class="superbaddons-admindashboard-linkbox-wrapper">
66 <?php
67 new LinkBox(
68 array(
69 "icon" => "question.svg",
70 "title" => __("Help & Tutorials", "superb-blocks"),
71 "description" => __("We have put together detailed documentation that walks you through every step of the process, from installation to customization.", "superb-blocks"),
72 "cta" => __("View tutorials", "superb-blocks"),
73 "link" => admin_url('admin.php?page=' . DashboardController::SUPPORT),
74 "same_window" => true,
75 )
76 );
77 new LinkBox(
78 array(
79 "icon" => "purple-bulb.svg",
80 "title" => __("Request a feature", "superb-blocks"),
81 "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.", "superb-blocks"),
82 "cta" => __("Request feature", "superb-blocks"),
83 "link" => "https://superbthemes.com/feature-request/",
84 )
85 );
86 new SupportLinkBoxes();
87 ?>
88 </div>
89 </div>
90 <div class="superbaddons-admindashboard-sidebarlayout-right">
91 <?php
92 new PremiumBox();
93 new ReviewBox();
94 ?>
95 </div>
96 </div>
97 <?php
98 }
99 }
100