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.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-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-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", "superbaddons"),
32 "description" => __("Experiencing technical difficulties with Superb Addons? We recommend running the troubleshooting process to scan for and identify common issues.", "superbaddons"),
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', 'superbaddons'); ?></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', 'superbaddons'),
50 array(
51 __('The troubleshooting process was able to identify errors, but was unable to resolve them.', 'superbaddons'),
52 __('If the errors can not be resolved manually, please contact our support team for further assistance.', 'superbaddons')
53 )
54 );
55
56 $this->AddResultBox(
57 "success",
58 "checkmark.svg",
59 __('No issues found', 'superbaddons'),
60 array(
61 __('All troubleshooting steps completed succesfully and no issues were found.', 'superbaddons'),
62 __('If you\'re still experiencing issues, please contact our support team for further assistance.', 'superbaddons')
63 )
64 );
65
66 $this->AddResultBox(
67 "resolved",
68 "checkmark.svg",
69 __('Issues resolved', 'superbaddons'),
70 array(
71 __('All found issues have been successfully resolved in the troubleshooting process.', 'superbaddons'),
72 __('If you\'re still experiencing issues, please contact our support team for further assistance.', 'superbaddons')
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", "superbaddons"); ?></h4>
80 <p class="superbaddons-element-text-xs superbaddons-element-text-gray "><?= esc_html__("Get started with our guided tutorials of Superb Addons features.", "superbaddons"); ?></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", "superbaddons"),
88 "description" => __("Let's show you where and how to use our library of Gutenberg patterns!", "superbaddons"),
89 "cta" => __("Start Tutorial", "superbaddons"),
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", "superbaddons"),
99 "description" => __("How do you insert the included blocks? This tutorial will show you.", "superbaddons"),
100 "cta" => __("Start Tutorial", "superbaddons"),
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", "superbaddons"),
111 "description" => __("Love using Elementor? Start the tutorial and see how you can use our Elementor addons.", "superbaddons"),
112 "cta" => __("Start Tutorial", "superbaddons"),
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", "superbaddons"); ?></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.", "superbaddons"); ?></p>
124 <div class="superbaddons-admindashboard-linkbox-wrapper">
125 <?php
126 new LinkBox(
127 array(
128 "icon" => "purple-gear.svg",
129 "title" => __("Installation", "superbaddons"),
130 "description" => __("If you're having trouble with installating plugins, themes, creating a child theme, or need help finding your license key.", "superbaddons"),
131 "cta" => __("View tutorials", "superbaddons"),
132 "link" => "https://superbthemes.com/documentation/category/installation/",
133 )
134 );
135 new LinkBox(
136 array(
137 "icon" => "purple-rocket-launch.svg",
138 "title" => __("Getting started", "superbaddons"),
139 "description" => __("A good start is important. Get step by step guides to creating child themes, customizing designs, adding menus and widgets etc.", "superbaddons"),
140 "cta" => __("View tutorials", "superbaddons"),
141 "link" => "https://superbthemes.com/documentation/category/getting-started/",
142 )
143 );
144 new LinkBox(
145 array(
146 "icon" => "purple-paint-brush.svg",
147 "title" => __("Design", "superbaddons"),
148 "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.", "superbaddons"),
149 "cta" => __("View tutorials", "superbaddons"),
150 "link" => "https://superbthemes.com/documentation/category/design/",
151 )
152 );
153 new LinkBox(
154 array(
155 "icon" => "purple-article-medium.svg",
156 "title" => __("Content", "superbaddons"),
157 "description" => __("Your content is your sites personality. Learn how to create pages, posts, menus and how to edit them afterwards.", "superbaddons"),
158 "cta" => __("View tutorials", "superbaddons"),
159 "link" => "https://superbthemes.com/documentation/category/content/",
160 )
161 );
162 new LinkBox(
163 array(
164 "icon" => "purple-plugs.svg",
165 "title" => __("Plugins", "superbaddons"),
166 "description" => __("Expand your websites functionality. Learn how to install WooCommerce, live chat and how to optimize your site through a SEO plugin.", "superbaddons"),
167 "cta" => __("View tutorials", "superbaddons"),
168 "link" => "https://superbthemes.com/documentation/category/plugins/",
169 )
170 );
171 new LinkBox(
172 array(
173 "icon" => "purple-files.svg",
174 "title" => __("All tutorials", "superbaddons"),
175 "description" => __("We have a library of step by step tutorials which make it easy for you to create the best possible website.", "superbaddons"),
176 "cta" => __("View all tutorials", "superbaddons"),
177 "link" => "https://superbthemes.com/documentation/category/all-tutorials/",
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