PluginProbe ʕ •ᴥ•ʔ
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More / 2.10.0
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More v2.10.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 / Settings / Tabs / SBR_Advanced_Tab.php
reviews-feed / class / Common / Settings / Tabs Last commit date
SBR_Advanced_Tab.php 4 weeks ago SBR_Feeds_Tab.php 4 weeks ago SBR_General_Tab.php 4 weeks ago SBR_Translation_Tab.php 4 weeks ago
SBR_Advanced_Tab.php
148 lines
1 <?php
2
3 /**
4 * Class General Settings Tab
5 *
6 * @since 1.0
7 */
8
9 namespace SmashBalloon\Reviews\Common\Settings\Tabs;
10
11 use Smashballoon\Customizer\V2\SB_SettingsPage_Tab;
12
13 if (!defined('ABSPATH')) {
14 exit; // Exit if accessed directly
15 }
16
17 class SBR_Advanced_Tab extends SB_SettingsPage_Tab {
18 /**
19 * Get the Settings Tab info
20 *
21 * @since 1.0
22 *
23 * @return array
24 */
25 protected function tab_info()
26 {
27 return [
28 'id' => 'sb-advanced-tab',
29 'name' => __('Advanced', 'reviews-feed')
30 ];
31 }
32
33 /**
34 * Get the Settings Tab Section
35 *
36 * @since 1.0
37 *
38 * @return array
39 */
40 protected function tab_sections()
41 {
42 return [
43 'optimizeimages_section' => [
44 'id' => 'optimize_images',
45 'type' => 'switcher',
46 'heading' => __('Optimize Images', 'reviews-feed'),
47 'info' => __(/* translators: "It" refers to the optimize images feature */ 'It will create multiple local copies of images in different sizes and use smallest size based on where the image is being displayed', 'reviews-feed'),
48 'options' => [
49 'enabled' => true,
50 'disabled' => false
51 ],
52 'ajaxButton' => [
53 'icon' => 'reset',
54 'text' => __('Reset', 'reviews-feed'),
55 'action' => 'sbr_reset_local_images',
56 'notification' => [
57 'success' => [
58 'icon' => 'success',
59 'text' => __('Images Cleared', 'reviews-feed')
60 ]
61 ]
62 ]
63 ],
64 // SMASH-1756 — toggle schema.org rich-snippet output (default on).
65 'schema_section' => [
66 'id' => 'enableSchema',
67 'type' => 'switcher',
68 'heading' => __('Rich Snippets (SEO Schema)', 'reviews-feed'),
69 'info' => __('Add schema.org markup (star ratings + reviews) so your feeds can appear as rich snippets in Google search results. When All in One SEO is active the markup is merged into its schema. Turn this off if another plugin or your theme already outputs review schema for the page.', 'reviews-feed'),
70 'options' => [
71 'enabled' => true,
72 'disabled' => false
73 ],
74 'separator' => true
75 ],
76 /*
77 'reseterrorlogs_section' => [
78 'heading' => __('Reset Error Log', 'reviews-feed'),
79 'info' => __('Clear all errors stored in the error log.', 'reviews-feed'),
80 'type' => 'button',
81 'ajaxButton' => [
82 'icon' => 'reset',
83 'text' => __('Reset', 'reviews-feed'),
84 'action' => 'sbr_reset_errors',
85 'notification' => [
86 'success' => [
87 'icon' => 'success',
88 'text' => __('Error Log Cleared', 'reviews-feed')
89 ]
90 ]
91 ]
92 ],
93 */
94 'usagetracking_section' => [
95 'id' => 'usagetracking',
96 'type' => 'switcher',
97 'heading' => __('Usage Tracking', 'reviews-feed'),
98 'info' => sprintf(
99 /* translators: %s: Opening and closing anchor HTML tags */
100 __('This helps us prevent plugin and theme conflicts by sending a report in the background once per week about your settings and relevant site stats. It does not send sensitive information like access tokens, email addresses, or user info. This will not affect your site performace as well. %sLearn More%s', 'reviews-feed'),
101 '<a href="https://smashballoon.com/doc/usage-tracking-reviews/?utm_campaign=reviews-free&utm_source=settings&utm_medium=docs" target="_blank" rel="noopener noreferrer">',
102 '</a>'
103 ),
104 'options' => [
105 'enabled' => true,
106 'disabled' => false
107 ],
108 'separator' => true
109 ],
110
111 'enquejs_section' => [
112 'id' => 'enqueue_js_in_header',
113 'type' => 'switcher',
114 'heading' => __('Enqueue JavaScript in head', 'reviews-feed'),
115 'info' => __('Add the JavaScript file for the plugin in the header instead of the footer', 'reviews-feed'),
116 'options' => [
117 'enabled' => true,
118 'disabled' => false
119 ]
120 ],
121 /*
122 'adminnoticeerror_section' => [
123 'id' => 'admin_error_notices',
124 'type' => 'switcher',
125 'heading' => __('Admin Error Notice', 'reviews-feed'),
126 'info' => __('This will disable or enable the feed error notice that displays in the bottom right corner for admins on the front end of your site.', 'reviews-feed'),
127 'options' => [
128 'enabled' => true,
129 'disabled' => false
130 ]
131 ],
132 'feedissuereports_section' => [
133 'id' => 'feed_issue_reports',
134 'type' => 'switcher',
135 'heading' => __('Feed Issue Email Reports', 'reviews-feed'),
136 'info' => __('If the feed is down due to a critical issue, we will switch to a cached version and notify you based on these settings. View Documentation', 'reviews-feed'),
137 'options' => [
138 'enabled' => true,
139 'disabled' => false
140 ],
141 'separator' => true
142 ],
143 */
144
145 ];
146 }
147 }
148