PluginProbe ʕ •ᴥ•ʔ
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More / 2.8.0
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More v2.8.0
2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.7 2.6.8 2.6.5 2.6.4 2.6.3 2.6.2 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1 1.1.1 1.1.2 1.2.0 2.0 2.1.0 2.1.1 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5.0 2.5.1
reviews-feed / class / Common / Admin / SBR_Support_Builder.php
reviews-feed / class / Common / Admin Last commit date
Blocks 1 month ago MenuService.php 1 month ago SBR_About_Builder.php 1 month ago SBR_Admin_Notice.php 1 month ago SBR_Collections_Builder.php 1 month ago SBR_New_User.php 1 month ago SBR_Notifications.php 1 month ago SBR_Plugin_Insltaller.php 1 month ago SBR_Support_Builder.php 1 month ago SBR_Support_Tool.php 1 month ago
SBR_Support_Builder.php
159 lines
1 <?php
2
3 /**
4 * Reviews Feed Saver
5 *
6 * @since 1.0
7 */
8
9 namespace SmashBalloon\Reviews\Common\Admin;
10
11 use Smashballoon\Customizer\V2\Support_Builder;
12 use SmashBalloon\Reviews\Common\Builder\Config\Proxy;
13 use SmashBalloon\Reviews\Common\Customizer\DB;
14 use SmashBalloon\Reviews\Common\Helpers\SBR_Error_Handler;
15 use SmashBalloon\Reviews\Common\Util;
16
17 class SBR_Support_Builder extends Support_Builder
18 {
19 protected $config_proxy;
20
21 /**
22 * MEnu Slug
23 * @since 1.0
24 */
25 protected $builder_menu_slug;
26 protected $current_plugin;
27 protected $add_to_menu;
28
29 protected $menu;
30
31 public function __construct(Proxy $config_proxy)
32 {
33 $this->menu = [
34 'parent_menu_slug' => "sbr",
35 'page_title' => "Support",
36 'menu_title' => "Support",
37 'menu_slug' => "sbr-support",
38 ];
39 $this->config_proxy = $config_proxy;
40 $this->builder_menu_slug = SBR_CUSTOMIZER_MENU_SLUG;
41 $this->add_to_menu = ! Util::sbr_is_pro() ? true : check_license_valid();
42 }
43
44 public function custom_support_data()
45 {
46 $aboutus_data = [
47 'nonce' => wp_create_nonce('sbr-admin'),
48 'assetsURL' => SB_COMMON_ASSETS,
49 'feedsList' => DB::get_feeds_list(),
50 'supportContent' => $this->get_support_content(),
51 'supportInfo' => $this->get_support_info(),
52 'isPro' => Util::sbr_is_pro(),
53 'aboutPageUrl' => admin_url('admin.php?page=sbr-about'),
54 'collectionsPageUrl' => admin_url('admin.php?page=sbr-collections'),
55 'adminNoticeContent' => apply_filters('sbr_admin_notices_filter', 1),
56 'tempUser' => \SmashBalloon\Reviews\Common\Admin\SBR_Support_Tool::check_temporary_user_exists(),
57 'builderUrl' => admin_url('admin.php?page=sbr'),
58 'errorsList' => SBR_Error_Handler::get_errors()
59 ];
60
61 return $aboutus_data;
62 }
63
64
65 public function get_support_content()
66 {
67 $utm_source = Util::sbr_is_pro() ? 'reviews-pro' : 'reviews-free';
68 return [
69 [
70 'heading' => __('Getting Started', 'reviews-feed'),
71 'description' => __('Some helpful resources to get you started', 'reviews-feed'),
72 'icon' => 'rocketicon',
73 'content' => [
74 [
75 'text' => __('Getting Started with Reviews Feed', 'reviews-feed'),
76 'link' => 'https://smashballoon.com/docs/getting-started/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=Create a Feed'
77 ],
78 [
79 'text' => __('How to Create a Yelp API Key', 'reviews-feed'),
80 'link' => 'https://smashballoon.com/doc/creating-a-yelp-api-key/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=Yelp API Key'
81 ],
82 [
83 'text' => __('How to Create a Google API Key', 'reviews-feed'),
84 'link' => 'https://smashballoon.com/doc/creating-a-google-api-key/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=Google API Key'
85 ],
86 ],
87 'button' => [
88 'text' => __('More help on Getting started', 'reviews-feed'),
89 'link' => 'https://smashballoon.com/docs/getting-started/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=Getting Started'
90 ]
91 ],
92 [
93 'heading' => __('Docs & Troubleshooting', 'reviews-feed'),
94 'description' => __('Run into an issue? Check out our help docs.', 'reviews-feed'),
95 'icon' => 'bookopen',
96 'content' => [
97 [
98 'text' => __('Why do I only see a few reviews?', 'reviews-feed'),
99 'link' => 'https://smashballoon.com/doc/why-do-i-only-see-a-few-reviews/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=WhyFewReviews'
100 ],
101 [
102 'text' => __('How to Resolve Error Messages', 'reviews-feed'),
103 'link' => 'https://smashballoon.com/doc/reviews-feed-error-message-reference/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=ErrorMessageReference'
104 ],
105 [
106 'text' => __('Translating Google Reviews', 'reviews-feed'),
107 'link' => 'https://smashballoon.com/doc/language-reviews-feed/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=help-docs-language&utm_content=Translating'
108 ],
109 ],
110 'button' => [
111 'text' => __('View Documentation', 'reviews-feed'),
112 'link' => 'https://smashballoon.com/docs/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=View Documentation'
113 ]
114 ],
115 [
116 'heading' => __('Additional Resources', 'reviews-feed'),
117 'description' => __('To help you get the most out of the plugin', 'reviews-feed'),
118 'icon' => 'bookplus',
119 'content' => [
120 [
121 'text' => __('Can I Display Multiple Reviews on One Page?', 'reviews-feed'),
122 'link' => 'https://smashballoon.com/doc/can-i-display-multiple-reviews-feeds-on-my-site-or-on-the-same-page/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=MultipleReviews'
123 ],
124 [
125 'text' => __('License Tiers Explained (additional review providers)', 'reviews-feed'),
126 'link' => 'https://smashballoon.com/doc/license-tiers-explained/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=License Tiers Explained'
127 ],
128 [
129 'text' => __('How do I Embed My Feed Directly in a Template?', 'reviews-feed'),
130 'link' => 'https://smashballoon.com/doc/how-do-i-embed-the-reviews-feed-directly-into-a-theme-template/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=Embed in Template'
131 ],
132 ],
133 'button' => [
134 'text' => __('View Blog', 'reviews-feed'),
135 'link' => 'https://smashballoon.com/blog/?reviews&utm_campaign=' . $utm_source . '&utm_source=support&utm_medium=docs&utm_content=View Blog'
136 ]
137 ]
138 ];
139 }
140
141
142
143 public function get_support_info()
144 {
145 $output = '';
146 // Build the output strings
147 $output .= Util::get_site_n_server_info();
148 $output .= Util::get_active_plugins_info();
149 $output .= Util::get_global_settings_info();
150 $output .= Util::get_sources_settings_info();
151 $output .= Util::get_api_settings_info();
152 $output .= Util::get_feeds_settings_info();
153 $output .= Util::get_posts_table_info();
154 $output .= Util::get_settings_page_errors();
155
156 return $output;
157 }
158 }
159