PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.0.8
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.0.8
4.0.7 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-gutenberg-dashboard.php
superb-blocks / src / admin / pages Last commit date
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-gutenberg-dashboard.php
161 lines
1 <?php
2
3 namespace SuperbAddons\Admin\Pages;
4
5 defined('ABSPATH') || exit();
6
7 use SuperbAddons\Components\Admin\ContentBoxLarge;
8 use SuperbAddons\Components\Admin\PremiumBox;
9 use SuperbAddons\Components\Admin\ReviewBox;
10 use SuperbAddons\Components\Admin\SupportLinkBoxes;
11 use SuperbAddons\Gutenberg\Controllers\GutenbergController;
12 use SuperbAddons\Library\Controllers\LibraryController;
13
14 class GutenbergDashboardPage
15 {
16 private $IsWordPressCompatible;
17
18 public function __construct()
19 {
20 add_action('admin_footer', array($this, 'LibraryTemplate'));
21 $this->IsWordPressCompatible = GutenbergController::is_compatible();
22 $this->Render();
23 }
24
25 public function LibraryTemplate()
26 {
27 LibraryController::InsertTemplates();
28 }
29
30 private function Render()
31 {
32 if (!$this->IsWordPressCompatible) {
33 new ContentBoxLarge(
34 array(
35 "title" => __("We're sorry, but it looks like your WordPress version is outdated.", "superbaddons"),
36 "description" => __("Superb Addons requires a newer version of WordPress to provide all of its features. We recommend updating WordPress to the latest version to take advantage of the latest security patches, bug fixes, and improvements. Once your WordPress version is up-to-date, you'll be able to use Superb Addons to its full potential and create stunning pages with ease.", "superbaddons"),
37 "image" => "asset-medium-gutenberg.jpg",
38 "icon" => "logo-gutenberg.svg",
39 "cta" => __("Update WordPress", "superbaddons"),
40 "link" => admin_url("update-core.php"),
41 "class" => 'superbaddons-admindashboard-gutenberg-image-box-large'
42 )
43 );
44 return;
45 }
46 ?>
47 <div id="superbaddons-gutenberg-is-active-wrapper">
48 <!-- Gutenberg Addons -->
49 <?php new ContentBoxLarge(
50 array(
51 "title" => __("Gutenberg Addons", "superbaddons"),
52 "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"),
53 "image" => "asset-medium-gutenberg.jpg",
54 "icon" => "logo-gutenberg.svg",
55 "class" => 'superbaddons-admindashboard-gutenberg-image-box-large'
56 )
57 );
58 ?>
59 </div>
60 <div id="spbaddons-admindashboard-library-wrapper" class="spbaddons-admindashboard-library-wrapper">
61 </div>
62 <div class="superbaddons-admindashboard-sidebarlayout">
63 <div class="superbaddons-admindashboard-sidebarlayout-left">
64 <!-- Rating Block -->
65 <?php new ContentBoxLarge(
66 array(
67 "title" => __("Rating Block", "superbaddons"),
68 "description" => __("With this easy-to-use block, you can easily add your own ratings with bars and stars to your posts and pages. Simple to customize and style to match your website's look and feel.", "superbaddons"),
69 "image" => "asset-medium-review.jpg",
70 "icon" => "purple-star.svg",
71 "cta" => __("Go to Posts", "superbaddons"),
72 "link" => admin_url("edit.php"),
73 "class" => 'superbaddons-admindashboard-gutenberg-block-box'
74 )
75 );
76 ?>
77 <!-- About the Author Block -->
78 <?php new ContentBoxLarge(
79 array(
80 "title" => __("About the Author Block", "superbaddons"),
81 "description" => __("Whether you're a blogger, journalist, or content creator, the Superb About the Author block is an essential tool for establishing your online presence and building a connection with your audience. Try it out and make your author bio stand out today!", "superbaddons"),
82 "image" => "asset-medium-authorbox.jpg",
83 "icon" => "purple-identification-badge.svg",
84 "cta" => __("Go to Posts", "superbaddons"),
85 "link" => admin_url("edit.php"),
86 "class" => 'superbaddons-admindashboard-gutenberg-block-box'
87 )
88 );
89 ?>
90 <!-- Table of Contents Block -->
91 <?php new ContentBoxLarge(
92 array(
93 "title" => __("Table of Contents Block", "superbaddons"),
94 "description" => __("Automatically generates a list of headings and subheadings and makes it easy for your readers to navigate your content. Try it out and make your long-form content more accessible!", "superbaddons"),
95 "image" => "asset-medium-tableofcontent.jpg",
96 "icon" => "purple-list-bullets.svg",
97 "cta" => __("Go to Posts", "superbaddons"),
98 "link" => admin_url("edit.php"),
99 "class" => 'superbaddons-admindashboard-gutenberg-block-box'
100 )
101 );
102 ?>
103 <!-- Recent Posts Block -->
104 <?php
105 $is_using_block_theme = function_exists("wp_is_block_theme") && wp_is_block_theme();
106 new ContentBoxLarge(
107 array(
108 "title" => __("Recent Posts Block", "superbaddons"),
109 "description" => __("Quickly add a customizable list of your latest posts to any page, post or widget space. The Superb Recent Posts block is a great tool for keeping your readers up-to-date with your latest content and driving traffic to your website.", "superbaddons"),
110 "image" => "asset-medium-recentposts.jpg",
111 "icon" => "purple-note.svg",
112 "cta" => $is_using_block_theme ? __("Go to Editor", "superbaddons") : __("Go to Widgets", "superbaddons"),
113 "link" => $is_using_block_theme ? admin_url("site-editor.php") : admin_url("widgets.php"),
114 "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-recent-posts'
115 )
116 );
117 ?>
118 <!-- Google Maps Block -->
119 <?php new ContentBoxLarge(
120 array(
121 "title" => __("Google Maps Block", "superbaddons"),
122 "description" => __("Easily integrate interactive Google Maps into any page, post, or widget space. Showcase your business location and beyond with this powerful and user-friendly tool.", "superbaddons"),
123 "image" => "asset-large-superbmaps.jpg",
124 "icon" => "purple-pin.svg",
125 "cta" => __("Go to Posts", "superbaddons"),
126 "link" => admin_url("edit.php"),
127 "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-maps'
128 )
129 );
130 ?>
131 <!-- Cover Image Block -->
132 <?php new ContentBoxLarge(
133 array(
134 "title" => __("Cover Image Block", "superbaddons"),
135 "description" => __("Create striking headers and hero sections effortlessly with this user-friendly block. Add captivating cover images to your pages and posts, grabbing your audience's attention from the get-go.", "superbaddons"),
136 "image" => "asset-large-superbcover.jpg",
137 "icon" => "purple-image.svg",
138 "cta" => __("Go to Posts", "superbaddons"),
139 "link" => admin_url("edit.php"),
140 "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-cover'
141 )
142 );
143 ?>
144 <!-- Link Boxes -->
145 <div class="superbaddons-admindashboard-linkbox-wrapper">
146 <?php
147 new SupportLinkBoxes();
148 ?>
149 </div>
150 </div>
151 <div class="superbaddons-admindashboard-sidebarlayout-right">
152 <?php
153 new PremiumBox();
154 new ReviewBox();
155 ?>
156 </div>
157 </div>
158 <?php
159 }
160 }
161