PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.7.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.7.0
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-dashboard.php
superb-blocks / src / admin / pages Last commit date
wizard 5 months ago class-page-additional-css.php 5 months ago class-page-dashboard.php 5 months ago class-page-settings.php 5 months ago class-page-support.php 5 months ago
class-page-dashboard.php
122 lines
1 <?php
2
3 namespace SuperbAddons\Admin\Pages;
4
5 defined('ABSPATH') || exit();
6
7 use SuperbAddons\Admin\Controllers\DashboardController;
8 use SuperbAddons\Admin\Controllers\Wizard\WizardController;
9 use SuperbAddons\Admin\Utils\AdminLinkSource;
10 use SuperbAddons\Admin\Utils\AdminLinkUtil;
11 use SuperbAddons\Components\Admin\EditorPreviewsModal;
12 use SuperbAddons\Components\Admin\NewsletterForm;
13 use SuperbAddons\Data\Utils\Wizard\WizardActionParameter;
14
15 class DashboardPage
16 {
17 private $theme_designer_url;
18 private $add_new_pages_url;
19 private $custom_css_url;
20 private $woocommerce_header_url;
21 private $header_footer_url;
22
23 public function __construct()
24 {
25 $this->theme_designer_url = WizardController::GetWizardURL(WizardActionParameter::INTRO);
26 $this->add_new_pages_url = WizardController::GetWizardURL(WizardActionParameter::ADD_NEW_PAGES);
27 $this->woocommerce_header_url = WizardController::GetWizardURL(WizardActionParameter::WOOCOMMERCE_HEADER);
28 $this->header_footer_url = WizardController::GetWizardURL(WizardActionParameter::HEADER_FOOTER);
29 $this->custom_css_url = add_query_arg(
30 array(
31 'page' => DashboardController::ADDITIONAL_CSS,
32 ),
33 admin_url("admin.php")
34 );
35 $this->Render();
36 }
37
38 private function Render()
39 {
40 ?>
41 <div class="superbthemes-module-introduction-box">
42 <div class="superbthemes-module-introduction-box-content" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/superb-addons-preview.png'); ?>);">
43 <h1><?php echo esc_html__("An introduction to Superb Addons", "superb-blocks"); ?></h1>
44 <p><?php echo esc_html__("Supercharge the WordPress Editor and unlock new pre-built websites, features, patterns, blocks and sections.", "superb-blocks"); ?></p>
45 </div>
46 <div class="superbthemes-module-introduction-box-footer">
47 <?php new NewsletterForm(__("Sign up for our newsletter to get updates, freebies, and more.", "superb-blocks"), true); ?>
48 </div>
49 </div>
50
51 <div class="superbthemes-module-feature-grid-large">
52
53 <div class="superbthemes-module-feature-grid-large-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/theme-designer-bg.svg'); ?>)">
54 <img src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/theme-designer-icon.svg'); ?>" aria-hidden="true" width="54" height="54">
55 <h3><?php echo esc_html__("Theme Designer", "superb-blocks"); ?></h3>
56 <p><?php echo esc_html__("Customize your website's layout and design with a few clicks.", "superb-blocks"); ?></p>
57 <a class="superbthemes-module-cta superbthemes-module-cta-green" href="<?php echo esc_url($this->theme_designer_url); ?>"><?php echo esc_html__("Launch Theme Designer", "superb-blocks"); ?></a>
58 </div>
59
60 <div class="superbthemes-module-feature-grid-large-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/template-page-bg.svg'); ?>)">
61 <img src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/template-page-icon.svg'); ?>" aria-hidden="true" width="54" height="54">
62 <h3><?php echo esc_html__("Template Pages", "superb-blocks"); ?></h3>
63 <p><?php echo esc_html__("Add pre-built page designs to your site and insert your own content.", "superb-blocks"); ?></p>
64 <a class="superbthemes-module-cta" href="<?php echo esc_url($this->add_new_pages_url); ?>"><?php echo esc_html__("Add Template Pages", "superb-blocks"); ?></a>
65 </div>
66
67 <div class="superbthemes-module-feature-grid-large-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/gutenberg-patterns-bg.svg'); ?>)">
68 <img src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/gutenberg-patterns-icon.svg'); ?>" aria-hidden="true" width="54" height="54">
69 <h3><?php echo esc_html__("WordPress Editor Patterns", "superb-blocks"); ?></h3>
70 <p><?php echo esc_html__("Explore hundreds of pre-built patterns that you can insert with one click.", "superb-blocks"); ?></p>
71 <button type="button" class="superbthemes-module-cta" id="gutenberg-lib-modal-btn"><?php echo esc_html__("Explore Patterns", "superb-blocks"); ?></button>
72 </div>
73
74 </div>
75
76 <div class="superbthemes-module-feature-grid-small">
77 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/superb-blocks.svg'); ?>)">
78 <h3><?php echo esc_html__("Blocks & WordPress Editor Enhancements", "superb-blocks"); ?></h3>
79 <p><?php echo esc_html__("Access must-have blocks, Enhanced editor, grid systems, improved block control and much more", "superb-blocks"); ?>.</p>
80 <button type="button" id="superb-addons-dashboard-preview-modal-btn" class="superbthemes-module-cta-link"><?php echo esc_html__("Explore blocks and enhancements", "superb-blocks"); ?></button>
81 </div>
82
83 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/custom-css.svg'); ?>)">
84 <h3><?php echo esc_html__("Custom CSS", "superb-blocks"); ?></h3>
85 <p><?php echo esc_html__("Add custom CSS with syntax highlight, custom display settings, and minified output.", "superb-blocks"); ?></p>
86 <a href="<?php echo esc_url($this->custom_css_url); ?>" class="superbthemes-module-cta-link"><?php echo esc_html__("Add custom CSS", "superb-blocks"); ?></a>
87 </div>
88
89 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/dashboard-header-footer.svg'); ?>)">
90 <h3><?php echo esc_html__("Header & Footer Templates", "superb-blocks"); ?></h3>
91 <p><?php echo esc_html__("Select your website's new header and footer layout with a few clicks.", "superb-blocks"); ?></p>
92 <a href="<?php echo esc_url($this->header_footer_url); ?>" class="superbthemes-module-cta-link"><?php echo esc_html__("Select header and footer", "superb-blocks"); ?></a>
93 </div>
94
95 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/dashboard-wc-icon.svg'); ?>)">
96 <h3><?php echo esc_html__("WooCommerce Header Templates", "superb-blocks"); ?></h3>
97 <p><?php echo esc_html__("Select a premade WooCommerce compatible header template and navigation menu.", "superb-blocks"); ?></p>
98 <?php if (is_plugin_active('woocommerce/woocommerce.php')): ?>
99 <a href="<?php echo esc_url($this->woocommerce_header_url); ?>" class="superbthemes-module-cta-link"><?php echo esc_html__("Select WooCommerce header", "superb-blocks"); ?></a>
100 <?php else: ?>
101 <span class="superbthemes-module-cta-link-disabled superbaddons-element-text-gray"><?php echo esc_html__("Requires WooCommerce", "superb-blocks"); ?></span>
102 <?php endif; ?>
103 </div>
104
105 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/elementor-sections.svg'); ?>)">
106 <h3><?php echo esc_html__("Elementor Sections", "superb-blocks"); ?></h3>
107 <p><?php echo esc_html__("Access 300+ pre-built elementor sections and build beautiful sites, fast.", "superb-blocks"); ?></p>
108 <button type="button" id="elementor-lib-modal-btn" class="superbthemes-module-cta-link"><?php echo esc_html__("Explore sections", "superb-blocks"); ?></button>
109 </div>
110
111 <div class="superbthemes-module-feature-grid-small-item" style="background-image:url(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/get-help.svg'); ?>)">
112 <h3><?php echo esc_html__("Get Help", "superb-blocks"); ?></h3>
113 <p><?php echo esc_html__("Our team is here to assist you. If you have any questions or issues, please don't hesitate to reach out.", "superb-blocks"); ?></p>
114 <a href="<?php echo esc_url(AdminLinkUtil::GetLink(AdminLinkSource::DEFAULT, array("url" => "https://superbthemes.com/contact/"))); ?>" target="_blank" class="superbthemes-module-cta-link"><?php echo esc_html__("Contact support", "superb-blocks"); ?></a>
115 </div>
116 </div>
117
118 <?php
119 new EditorPreviewsModal();
120 }
121 }
122