PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.3.1
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.3.1
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-support.php
superb-blocks / src / admin / pages Last commit date
class-page-additional-css.php 1 year ago class-page-dashboard.php 1 year ago class-page-elementor-dashboard.php 1 year ago class-page-gutenberg-dashboard.php 1 year ago class-page-settings.php 1 year ago class-page-support.php 1 year ago
class-page-support.php
223 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\LinkBox;
9 use SuperbAddons\Components\Admin\Modal;
10 use SuperbAddons\Components\Admin\PremiumBox;
11 use SuperbAddons\Components\Admin\ReviewBox;
12 use SuperbAddons\Components\Admin\SupportBox;
13 use SuperbAddons\Elementor\Controllers\ElementorController;
14 use SuperbAddons\Tours\Controllers\TourController;
15
16 class SupportPage
17 {
18 public function __construct()
19 {
20
21 $this->Render();
22 }
23
24 private function Render()
25 {
26 ?>
27 <div class="superbaddons-admindashboard-sidebarlayout">
28 <div class="superbaddons-admindashboard-sidebarlayout-left">
29 <?php new ContentBoxLarge(
30 array(
31 "title" => __("Troubleshooting", "superb-blocks"),
32 "description" => __("Experiencing technical difficulties with Superb Addons? We recommend running the troubleshooting process to scan for and identify common issues.", "superb-blocks"),
33 "image" => "asset-medium-troubleshooting.jpg",
34 "connected_bottom" => true,
35 "class" => 'superbaddons-admindashboard-troubleshooting-image-box-large'
36 )
37 );
38 ?>
39 <div class="spbaddons-troubleshooting-wrapper">
40 <div class="spbaddons-troubleshooting-steps">
41 <!-- Handled by JS -->
42 </div>
43 <button id="spbaddons-troubleshooting-submit-btn" class="superbaddons-element-button superbaddons-element-m0" type="button"><?= esc_html__('Start Troubleshooting Process', "superb-blocks"); ?></button>
44 <div class="spbaddons-troubleshooting-result-wrapper" style="display:none;">
45 <?php
46 $this->AddResultBox(
47 "error",
48 "color-warning-octagon.svg",
49 __('Troubleshooting failed', "superb-blocks"),
50 array(
51 __('The troubleshooting process was able to identify errors, but was unable to resolve them.', "superb-blocks"),
52 __('If the errors can not be resolved manually, please contact our support team for further assistance.', "superb-blocks")
53 )
54 );
55
56 $this->AddResultBox(
57 "success",
58 "checkmark.svg",
59 __('No issues found', "superb-blocks"),
60 array(
61 __('All troubleshooting steps completed succesfully and no issues were found.', "superb-blocks"),
62 __('If you\'re still experiencing issues, please contact our support team for further assistance.', "superb-blocks")
63 )
64 );
65
66 $this->AddResultBox(
67 "resolved",
68 "checkmark.svg",
69 __('Issues resolved', "superb-blocks"),
70 array(
71 __('All found issues have been successfully resolved in the troubleshooting process.', "superb-blocks"),
72 __('If you\'re still experiencing issues, please contact our support team for further assistance.', "superb-blocks")
73 )
74 );
75 ?>
76 </div>
77 </div>
78 <div class="superbaddons-additional-content-wrapper">
79 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?= esc_html__("Guided Tutorials", "superb-blocks"); ?></h4>
80 <p class="superbaddons-element-text-xs superbaddons-element-text-gray "><?= esc_html__("Get started with our guided tutorials of Superb Addons features.", "superb-blocks"); ?></p>
81 <div class="superbaddons-admindashboard-linkbox-wrapper">
82 <?php
83 new LinkBox(
84 array(
85 "id" => "superbaddons-tour-gutenberg-patterns",
86 "icon" => "purple-subtract-square.svg",
87 "title" => __("Gutenberg Patterns", "superb-blocks"),
88 "description" => __("Let's show you where and how to use our library of Gutenberg patterns!", "superb-blocks"),
89 "cta" => __("Start Tutorial", "superb-blocks"),
90 "link" => esc_url(admin_url("post-new.php?" . TourController::TOUR_GUTENBERG . "=" . TourController::GUTENBERG_TOUR_PATTERNS)),
91 "classes" => 'superbaddons-start-tutorial-link-gutenberg'
92 )
93 );
94 new LinkBox(
95 array(
96 "id" => "superbaddons-tour-gutenberg-blocks",
97 "icon" => "purple-cube.svg",
98 "title" => __("Gutenberg Blocks", "superb-blocks"),
99 "description" => __("How do you insert the included blocks? This tutorial will show you.", "superb-blocks"),
100 "cta" => __("Start Tutorial", "superb-blocks"),
101 "link" => esc_url(admin_url("post-new.php?" . TourController::TOUR_GUTENBERG . "=" . TourController::GUTENBERG_TOUR_BLOCKS)),
102 "classes" => 'superbaddons-start-tutorial-link-gutenberg'
103 )
104 );
105 if (ElementorController::is_compatible()) {
106 new LinkBox(
107 array(
108 "id" => "superbaddons-tour-elementor",
109 "icon" => "logo-elementor.svg",
110 "title" => __("Elementor Addons", "superb-blocks"),
111 "description" => __("Love using Elementor? Start the tutorial and see how you can use our Elementor addons.", "superb-blocks"),
112 "cta" => __("Start Tutorial", "superb-blocks"),
113 "link" => esc_url('#' . TourController::TOUR_ELEMENTOR),
114 "classes" => 'superbaddons-start-tutorial-link-elementor superbaddons-flex-basis-100'
115 )
116 );
117 }
118 ?>
119 </div>
120 </div>
121 <div class="superbaddons-additional-content-wrapper">
122 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?= esc_html__("Knowledge Base", "superb-blocks"); ?></h4>
123 <p class="superbaddons-element-text-xs superbaddons-element-text-gray "><?= esc_html__("Looking for answers? Our knowledge base may have what you're looking for.", "superb-blocks"); ?></p>
124 <div class="superbaddons-admindashboard-linkbox-wrapper">
125 <?php
126 new LinkBox(
127 array(
128 "icon" => "purple-list-bullets.svg",
129 "title" => __("All tutorials", "superb-blocks"),
130 "description" => __("We have a library of step by step tutorials which make it easy for you to create the best possible website.", "superb-blocks"),
131 "cta" => __("View all tutorials", "superb-blocks"),
132 "link" => "https://superbthemes.com/documentation/",
133 )
134 );
135 new LinkBox(
136 array(
137 "icon" => "graduation-cap-duotone.svg",
138 "title" => __("Installation", "superb-blocks"),
139 "description" => __("Get help with the installation process, how to find your license key, how to import demo content, and more.", "superb-blocks"),
140 "cta" => __("View tutorials", "superb-blocks"),
141 "link" => "https://superbthemes.com/documentation/category/installation-process/",
142 )
143 );
144 new LinkBox(
145 array(
146 "icon" => "cube-duotone.svg",
147 "title" => __("Block Themes", "superb-blocks"),
148 "description" => __("Discover how to utilize the WordPress site editor for personalizing your website, including templates, logo, and navigation.", "superb-blocks"),
149 "cta" => __("View tutorials", "superb-blocks"),
150 "link" => "https://superbthemes.com/documentation/category/block-themes/",
151 )
152 );
153 new LinkBox(
154 array(
155 "icon" => "fse_icon_pagebuilder_large.svg",
156 "title" => __("Classic Themes", "superb-blocks"),
157 "description" => __("Get a better looking site by learning how to design it properly. Learn how to change colors, fonts, header image and a lot more.", "superb-blocks"),
158 "cta" => __("View tutorials", "superb-blocks"),
159 "link" => "https://superbthemes.com/documentation/category/classic-themes/",
160 )
161 );
162 new LinkBox(
163 array(
164 "icon" => "plus-square-duotone.svg",
165 "title" => __("Superb Addons", "superb-blocks"),
166 "description" => __("Do you need help with Superb Addons? We've compiled responses to address the most frequently asked questions.", "superb-blocks"),
167 "cta" => __("View tutorials", "superb-blocks"),
168 "link" => "https://superbthemes.com/documentation/category/superb-addons/",
169 )
170 );
171 new LinkBox(
172 array(
173 "icon" => "arrows-left-right-duotone.svg",
174 "title" => __("Miscellaneous", "superb-blocks"),
175 "description" => __("Learn how to create a child theme, install WooCommerce, and how to optimize your site through a SEO plugin.", "superb-blocks"),
176 "cta" => __("View tutorials", "superb-blocks"),
177 "link" => "https://superbthemes.com/documentation/category/miscellaneous/",
178 )
179 );
180 ?>
181 </div>
182 </div>
183 </div>
184
185 <div class="superbaddons-admindashboard-sidebarlayout-right">
186 <?php
187 new PremiumBox();
188 new SupportBox();
189 new ReviewBox();
190 ?>
191 </div>
192 </div>
193 <?php
194 new Modal();
195 }
196
197
198 private function AddResultBox($identity, $icon, $title, $text_arr)
199 {
200 ?>
201 <div class="spbaddons-troubleshooting-result-item spbaddons-troubleshooting-result-<?= esc_attr($identity); ?>" style="display:none;">
202 <div class="spbaddons-troubleshooting-result-item-header">
203 <img class="spbaddons-troubleshooting-result-icon" src="<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/' . $icon); ?>" />
204 <h5>
205 <?= esc_html($title); ?>
206 </h5>
207 </div>
208 <div class="spbaddons-troubleshooting-result-item-body">
209 <?php
210 foreach ($text_arr as $text) {
211 ?>
212 <p>
213 <?= esc_html($text); ?>
214 </p>
215 <?php
216 }
217 ?>
218 </div>
219 </div>
220 <?php
221 }
222 }
223