PluginProbe ʕ •ᴥ•ʔ
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More / 2.7.0
Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More v2.7.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 1 month ago SBR_Feeds_Tab.php 1 month ago SBR_General_Tab.php 1 month ago SBR_Translation_Tab.php 1 month ago
SBR_Advanced_Tab.php
136 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 /*
65 'reseterrorlogs_section' => [
66 'heading' => __('Reset Error Log', 'reviews-feed'),
67 'info' => __('Clear all errors stored in the error log.', 'reviews-feed'),
68 'type' => 'button',
69 'ajaxButton' => [
70 'icon' => 'reset',
71 'text' => __('Reset', 'reviews-feed'),
72 'action' => 'sbr_reset_errors',
73 'notification' => [
74 'success' => [
75 'icon' => 'success',
76 'text' => __('Error Log Cleared', 'reviews-feed')
77 ]
78 ]
79 ]
80 ],
81 */
82 'usagetracking_section' => [
83 'id' => 'usagetracking',
84 'type' => 'switcher',
85 'heading' => __('Usage Tracking', 'reviews-feed'),
86 'info' => sprintf(
87 /* translators: %s: Opening and closing anchor HTML tags */
88 __('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'),
89 '<a href="https://smashballoon.com/doc/usage-tracking-reviews/?utm_campaign=reviews-free&utm_source=settings&utm_medium=docs" target="_blank" rel="noopener noreferrer">',
90 '</a>'
91 ),
92 'options' => [
93 'enabled' => true,
94 'disabled' => false
95 ],
96 'separator' => true
97 ],
98
99 'enquejs_section' => [
100 'id' => 'enqueue_js_in_header',
101 'type' => 'switcher',
102 'heading' => __('Enqueue JavaScript in head', 'reviews-feed'),
103 'info' => __('Add the JavaScript file for the plugin in the header instead of the footer', 'reviews-feed'),
104 'options' => [
105 'enabled' => true,
106 'disabled' => false
107 ]
108 ],
109 /*
110 'adminnoticeerror_section' => [
111 'id' => 'admin_error_notices',
112 'type' => 'switcher',
113 'heading' => __('Admin Error Notice', 'reviews-feed'),
114 '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'),
115 'options' => [
116 'enabled' => true,
117 'disabled' => false
118 ]
119 ],
120 'feedissuereports_section' => [
121 'id' => 'feed_issue_reports',
122 'type' => 'switcher',
123 'heading' => __('Feed Issue Email Reports', 'reviews-feed'),
124 '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'),
125 'options' => [
126 'enabled' => true,
127 'disabled' => false
128 ],
129 'separator' => true
130 ],
131 */
132
133 ];
134 }
135 }
136