PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.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
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
174 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\PremiumBox;
10 use SuperbAddons\Components\Admin\ReviewBox;
11 use SuperbAddons\Components\Admin\SupportBox;
12
13 class SupportPage
14 {
15 public function __construct()
16 {
17 $this->Render();
18 }
19
20 private function Render()
21 {
22 ?>
23 <div class="superbaddons-admindashboard-sidebarlayout">
24 <div class="superbaddons-admindashboard-sidebarlayout-left">
25 <?php new ContentBoxLarge(
26 array(
27 "title" => __("Troubleshooting", "superbaddons"),
28 "description" => __("Encountering technical difficulties with the Superb Addons? We recommend running the troubleshooting process, which can help scan for and identify common issues. ", "superbaddons"),
29 "image" => "asset-medium-troubleshooting.jpg",
30 "connected_bottom" => true,
31 "class" => 'superbaddons-admindashboard-troubleshooting-image-box-large'
32 )
33 );
34 ?>
35 <div class="spbaddons-troubleshooting-wrapper">
36 <div class="spbaddons-troubleshooting-steps">
37 <!-- Handled by JS -->
38 </div>
39 <button id="spbaddons-troubleshooting-submit-btn" class="superbaddons-element-button superbaddons-element-m0" type="button"><?= esc_html__('Start Troubleshooting Process', 'superbaddons'); ?></button>
40 <div class="spbaddons-troubleshooting-result-wrapper" style="display:none;">
41 <?php
42 $this->AddResultBox(
43 "error",
44 "color-warning-octagon.svg",
45 __('Troubleshooting failed', 'superbaddons'),
46 array(
47 __('The troubleshooting process was able to identify errors, but was unable to resolve them.', 'superbaddons'),
48 __('If the errors can not be resolved manually, please contact our support team for further assistance.', 'superbaddons')
49 )
50 );
51
52 $this->AddResultBox(
53 "success",
54 "checkmark.svg",
55 __('No issues found', 'superbaddons'),
56 array(
57 __('All troubleshooting steps completed succesfully and no issues were found.', 'superbaddons'),
58 __('If you\'re still experiencing issues, please contact our support team for further assistance.', 'superbaddons')
59 )
60 );
61
62 $this->AddResultBox(
63 "resolved",
64 "checkmark.svg",
65 __('Issues resolved', 'superbaddons'),
66 array(
67 __('All found issues have been successfully resolved in the troubleshooting process.', 'superbaddons'),
68 __('If you\'re still experiencing issues, please contact our support team for further assistance.', 'superbaddons')
69 )
70 );
71 ?>
72 </div>
73 </div>
74 <div class="superbaddons-additional-content-wrapper">
75 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?= esc_html__("Help & Tutorials", "superbaddons"); ?></h4>
76 <p class="superbaddons-element-text-xs superbaddons-element-text-gray "><?= esc_html__("Get help with over 40+ step by step guides.", "superbaddons"); ?></p>
77 <div class="superbaddons-admindashboard-linkbox-wrapper">
78 <?php
79 new LinkBox(
80 array(
81 "icon" => "purple-gear.svg",
82 "title" => __("Installation", "superbaddons"),
83 "description" => __("If you're having trouble with installating plugins, themes, creating a child theme, or need help finding your license key.", "superbaddons"),
84 "cta" => __("View tutorials", "superbaddons"),
85 "link" => "https://superbthemes.com/documentation/category/installation/",
86 )
87 );
88 new LinkBox(
89 array(
90 "icon" => "purple-rocket-launch.svg",
91 "title" => __("Getting started", "superbaddons"),
92 "description" => __("A good start is important. Get step by step guides to creating child themes, customizing designs, adding menus and widgets etc.", "superbaddons"),
93 "cta" => __("View tutorials", "superbaddons"),
94 "link" => "https://superbthemes.com/documentation/category/getting-started/",
95 )
96 );
97 new LinkBox(
98 array(
99 "icon" => "purple-paint-brush.svg",
100 "title" => __("Design", "superbaddons"),
101 "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"),
102 "cta" => __("View tutorials", "superbaddons"),
103 "link" => "https://superbthemes.com/documentation/category/design/",
104 )
105 );
106 new LinkBox(
107 array(
108 "icon" => "purple-article-medium.svg",
109 "title" => __("Content", "superbaddons"),
110 "description" => __("Your content is your sites personality. Learn how to create pages, posts, menus and how to edit them afterwards.", "superbaddons"),
111 "cta" => __("View tutorials", "superbaddons"),
112 "link" => "https://superbthemes.com/documentation/category/content/",
113 )
114 );
115 new LinkBox(
116 array(
117 "icon" => "purple-plugs.svg",
118 "title" => __("Plugins", "superbaddons"),
119 "description" => __("Expand your websites functionality. Learn how to install WooCommerce, live chat and how to optimize your site through a SEO plugin.", "superbaddons"),
120 "cta" => __("View tutorials", "superbaddons"),
121 "link" => "https://superbthemes.com/documentation/category/plugins/",
122 )
123 );
124 new LinkBox(
125 array(
126 "icon" => "purple-files.svg",
127 "title" => __("All tutorials", "superbaddons"),
128 "description" => __("We have a library of step by step tutorials which make it easy for you to create the best possible website.", "superbaddons"),
129 "cta" => __("View all tutorials", "superbaddons"),
130 "link" => "https://superbthemes.com/documentation/category/all-tutorials/",
131 )
132 );
133 ?>
134 </div>
135 </div>
136 </div>
137 <div class="superbaddons-admindashboard-sidebarlayout-right">
138 <?php
139 new PremiumBox();
140 new SupportBox();
141 new ReviewBox();
142 ?>
143 </div>
144 </div>
145 <?php
146 }
147
148
149 private function AddResultBox($identity, $icon, $title, $text_arr)
150 {
151 ?>
152 <div class="spbaddons-troubleshooting-result-item spbaddons-troubleshooting-result-<?= esc_attr($identity); ?>" style="display:none;">
153 <div class="spbaddons-troubleshooting-result-item-header">
154 <img class="spbaddons-troubleshooting-result-icon" src="<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/' . $icon); ?>" />
155 <h5>
156 <?= esc_html($title); ?>
157 </h5>
158 </div>
159 <div class="spbaddons-troubleshooting-result-item-body">
160 <?php
161 foreach ($text_arr as $text) {
162 ?>
163 <p>
164 <?= esc_html($text); ?>
165 </p>
166 <?php
167 }
168 ?>
169 </div>
170 </div>
171 <?php
172 }
173 }
174