PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.4.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.4.0
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
wizard 1 year ago class-page-additional-css.php 1 year ago class-page-dashboard.php 1 year ago class-page-settings.php 1 year ago class-page-support.php 1 year ago
class-page-support.php
241 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 "network",
58 "color-warning-octagon.svg",
59 __('Network error', "superb-blocks"),
60 array(
61 __('Your current WordPress and/or webserver configuration is causing issues with the WordPress REST API.', "superb-blocks"),
62 "",
63 __('This issue can be caused by CORS restrictions on your website.', "superb-blocks"),
64 "",
65 __('This issue can also be caused by a misconfigured server, or a security plugin blocking the REST API. You can check if REST API is running correctly on your website by heading to "Tools -> Site Health" from the WordPress dashboard.', "superb-blocks"),
66 "",
67 __('If the issue can not be resolved manually, please contact our support team or your hosting provider for further assistance.', "superb-blocks")
68 )
69 );
70
71 $this->AddResultBox(
72 "success",
73 "checkmark.svg",
74 __('No issues found', "superb-blocks"),
75 array(
76 __('All troubleshooting steps completed succesfully and no issues were found.', "superb-blocks"),
77 __('If you\'re still experiencing issues, please contact our support team for further assistance.', "superb-blocks")
78 )
79 );
80
81 $this->AddResultBox(
82 "resolved",
83 "checkmark.svg",
84 __('Issues resolved', "superb-blocks"),
85 array(
86 __('All found issues have been successfully resolved in the troubleshooting process.', "superb-blocks"),
87 __('If you\'re still experiencing issues, please contact our support team for further assistance.', "superb-blocks")
88 )
89 );
90 ?>
91 </div>
92 </div>
93 <div class="superbaddons-additional-content-wrapper">
94 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?= esc_html__("Guided Tutorials", "superb-blocks"); ?></h4>
95 <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>
96 <div class="superbaddons-admindashboard-linkbox-wrapper">
97 <?php
98 new LinkBox(
99 array(
100 "id" => "superbaddons-tour-gutenberg-patterns",
101 "icon" => "purple-subtract-square.svg",
102 "title" => __("Gutenberg Patterns", "superb-blocks"),
103 "description" => __("Let's show you where and how to use our library of Gutenberg patterns!", "superb-blocks"),
104 "cta" => __("Start Tutorial", "superb-blocks"),
105 "link" => esc_url(admin_url("post-new.php?" . TourController::TOUR_GUTENBERG . "=" . TourController::GUTENBERG_TOUR_PATTERNS)),
106 "classes" => 'superbaddons-start-tutorial-link-gutenberg'
107 )
108 );
109 new LinkBox(
110 array(
111 "id" => "superbaddons-tour-gutenberg-blocks",
112 "icon" => "purple-cube.svg",
113 "title" => __("Gutenberg Blocks", "superb-blocks"),
114 "description" => __("How do you insert the included blocks? This tutorial will show you.", "superb-blocks"),
115 "cta" => __("Start Tutorial", "superb-blocks"),
116 "link" => esc_url(admin_url("post-new.php?" . TourController::TOUR_GUTENBERG . "=" . TourController::GUTENBERG_TOUR_BLOCKS)),
117 "classes" => 'superbaddons-start-tutorial-link-gutenberg'
118 )
119 );
120 if (ElementorController::is_compatible()) {
121 new LinkBox(
122 array(
123 "id" => "superbaddons-tour-elementor",
124 "icon" => "logo-elementor.svg",
125 "title" => __("Elementor Addons", "superb-blocks"),
126 "description" => __("Love using Elementor? Start the tutorial and see how you can use our Elementor addons.", "superb-blocks"),
127 "cta" => __("Start Tutorial", "superb-blocks"),
128 "link" => esc_url('#' . TourController::TOUR_ELEMENTOR),
129 "classes" => 'superbaddons-start-tutorial-link-elementor superbaddons-flex-basis-100'
130 )
131 );
132 }
133 ?>
134 </div>
135 </div>
136 <div class="superbaddons-additional-content-wrapper">
137 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?= esc_html__("Knowledge Base", "superb-blocks"); ?></h4>
138 <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>
139 <div class="superbaddons-admindashboard-linkbox-wrapper">
140 <?php
141 new LinkBox(
142 array(
143 "icon" => "purple-list-bullets.svg",
144 "title" => __("All tutorials", "superb-blocks"),
145 "description" => __("We have a library of step by step tutorials which make it easy for you to create the best possible website.", "superb-blocks"),
146 "cta" => __("View all tutorials", "superb-blocks"),
147 "link" => "https://superbthemes.com/documentation/",
148 )
149 );
150 new LinkBox(
151 array(
152 "icon" => "graduation-cap-duotone.svg",
153 "title" => __("Installation", "superb-blocks"),
154 "description" => __("Get help with the installation process, how to find your license key, how to import demo content, and more.", "superb-blocks"),
155 "cta" => __("View tutorials", "superb-blocks"),
156 "link" => "https://superbthemes.com/documentation/category/installation-process/",
157 )
158 );
159 new LinkBox(
160 array(
161 "icon" => "cube-duotone.svg",
162 "title" => __("Block Themes", "superb-blocks"),
163 "description" => __("Discover how to utilize the WordPress site editor for personalizing your website, including templates, logo, and navigation.", "superb-blocks"),
164 "cta" => __("View tutorials", "superb-blocks"),
165 "link" => "https://superbthemes.com/documentation/category/block-themes/",
166 )
167 );
168 new LinkBox(
169 array(
170 "icon" => "fse_icon_pagebuilder_large.svg",
171 "title" => __("Classic Themes", "superb-blocks"),
172 "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"),
173 "cta" => __("View tutorials", "superb-blocks"),
174 "link" => "https://superbthemes.com/documentation/category/classic-themes/",
175 )
176 );
177 new LinkBox(
178 array(
179 "icon" => "plus-square-duotone.svg",
180 "title" => __("Superb Addons", "superb-blocks"),
181 "description" => __("Do you need help with Superb Addons? We've compiled responses to address the most frequently asked questions.", "superb-blocks"),
182 "cta" => __("View tutorials", "superb-blocks"),
183 "link" => "https://superbthemes.com/documentation/category/superb-addons/",
184 )
185 );
186 new LinkBox(
187 array(
188 "icon" => "arrows-left-right-duotone.svg",
189 "title" => __("Miscellaneous", "superb-blocks"),
190 "description" => __("Learn how to create a child theme, install WooCommerce, and how to optimize your site through a SEO plugin.", "superb-blocks"),
191 "cta" => __("View tutorials", "superb-blocks"),
192 "link" => "https://superbthemes.com/documentation/category/miscellaneous/",
193 )
194 );
195 ?>
196 </div>
197 </div>
198 </div>
199
200 <div class="superbaddons-admindashboard-sidebarlayout-right">
201 <?php
202 new PremiumBox();
203 new SupportBox();
204 new ReviewBox();
205 ?>
206 </div>
207 </div>
208 <?php
209 new Modal();
210 }
211
212
213 private function AddResultBox($identity, $icon, $title, $text_arr)
214 {
215 ?>
216 <div class="spbaddons-troubleshooting-result-item spbaddons-troubleshooting-result-<?= esc_attr($identity); ?>" style="display:none;">
217 <div class="spbaddons-troubleshooting-result-item-header">
218 <img class="spbaddons-troubleshooting-result-icon" src="<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/' . $icon); ?>" />
219 <h5>
220 <?= esc_html($title); ?>
221 </h5>
222 </div>
223 <div class="spbaddons-troubleshooting-result-item-body">
224 <?php
225 foreach ($text_arr as $text) {
226 if (empty($text)) {
227 echo "<br>";
228 }
229 ?>
230 <p>
231 <?= esc_html($text); ?>
232 </p>
233 <?php
234 }
235 ?>
236 </div>
237 </div>
238 <?php
239 }
240 }
241