Social Share Icons & Social Share Buttons - Version 3.4.2

Version Description

  • Update the banner to show less frequently
Download this release

Release Info

Developer socialsharepro
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 3.4.2
Comparing to
See all releases

Code changes from version 3.4.1 to 3.4.2

libs/sfsi_install_uninstall.php CHANGED
@@ -15,9 +15,12 @@ function sfsi_plus_update_plugin()
15
  update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
16
  }
17
  }
18
-
 
 
 
19
  //Install version
20
- update_option("sfsi_plus_pluginVersion", "3.41");
21
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
22
  {
23
  add_option("sfsi_plus_serverphpVersionnotification", "yes");
@@ -57,7 +60,7 @@ function sfsi_plus_update_plugin()
57
  }
58
  add_option('sfsi_plus_footer_sec','no');
59
 
60
- $sfsi_plus_dismiss_sharecount = unserialize(get_option('sfsi_plus_dismiss_sharecount'));
61
  if (!isset($sfsi_plus_dismiss_sharecount) || empty($sfsi_plus_dismiss_sharecount)) {
62
  $sfsi_plus_dismiss_sharecount = array(
63
  'show_banner' => "yes",
@@ -86,37 +89,39 @@ function sfsi_plus_update_plugin()
86
  update_option("sfsi_plus_banner_global_firsttime_offer", serialize($sfsi_plus_banner_global_firsttime_offer));
87
  }
88
 
89
- $sfsi_plus_dismiss_gdpr = unserialize(get_option('sfsi_plus_dismiss_gdpr'));
90
- if (!isset($sfsi_plus_dismiss_gdpr) || empty($sfsi_plus_dismiss_gdpr)) {
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  $sfsi_plus_dismiss_gdpr = array(
92
  'show_banner' => "yes",
93
  'timestamp' => ""
94
  );
95
  update_option("sfsi_plus_dismiss_gdpr", serialize($sfsi_plus_dismiss_gdpr));
96
- }
97
 
98
- $sfsi_plus_dismiss_optimization = unserialize(get_option('sfsi_plus_dismiss_optimization'));
99
- if (!isset($sfsi_plus_dismiss_optimization) || empty($sfsi_plus_dismiss_optimization)) {
100
  $sfsi_plus_dismiss_optimization = array(
101
  'show_banner' => "yes",
102
  'timestamp' => ""
103
  );
104
  update_option("sfsi_plus_dismiss_optimization", serialize($sfsi_plus_dismiss_optimization));
105
- }
106
 
107
- $sfsi_plus_dismiss_gallery = unserialize(get_option('sfsi_plus_dismiss_gallery'));
108
- if (!isset($sfsi_plus_dismiss_gallery) || empty($sfsi_plus_dismiss_gallery)) {
109
  $sfsi_plus_dismiss_gallery = array(
110
  'show_banner' => "yes",
111
  'timestamp' => ""
112
  );
113
  update_option("sfsi_plus_dismiss_gallery", serialize($sfsi_plus_dismiss_gallery));
114
- }
115
-
116
-
117
-
118
- $sfsi_plus_banner_global_upgrade = unserialize(get_option('sfsi_plus_banner_global_upgrade'));
119
- if (!isset($sfsi_plus_banner_global_upgrade) || empty($sfsi_plus_banner_global_upgrade) || !isset($sfsi_plus_banner_global_upgrade["is_active"])) {
120
  $sfsi_plus_banner_global_upgrade = array(
121
  'met_criteria' => "no",
122
  'banner_appeared' => "no",
@@ -124,9 +129,7 @@ function sfsi_plus_update_plugin()
124
  'timestamp' => ""
125
  );
126
  update_option("sfsi_plus_banner_global_upgrade", serialize($sfsi_plus_banner_global_upgrade));
127
- }
128
- $sfsi_plus_banner_global_http = unserialize(get_option('sfsi_plus_banner_global_http'));
129
- if (!isset($sfsi_plus_banner_global_http) || empty($sfsi_plus_banner_global_http) || !isset($sfsi_plus_banner_global_http["is_active"])) {
130
  $sfsi_plus_banner_global_http = array(
131
  'met_criteria' => "no",
132
  'banner_appeared' => "no",
@@ -134,9 +137,7 @@ function sfsi_plus_update_plugin()
134
  'timestamp' => ""
135
  );
136
  update_option("sfsi_plus_banner_global_http", serialize($sfsi_plus_banner_global_http));
137
- }
138
- $sfsi_plus_banner_global_gdpr = unserialize(get_option('sfsi_plus_banner_global_gdpr'));
139
- if (!isset($sfsi_plus_banner_global_gdpr) || empty($sfsi_plus_banner_global_gdpr)) {
140
  $sfsi_plus_banner_global_gdpr = array(
141
  'met_criteria' => "no",
142
  'banner_appeared' => "no",
@@ -144,9 +145,7 @@ function sfsi_plus_update_plugin()
144
  'timestamp' => ""
145
  );
146
  update_option("sfsi_plus_banner_global_gdpr", serialize($sfsi_plus_banner_global_gdpr));
147
- }
148
- $sfsi_plus_banner_global_shares = unserialize(get_option('sfsi_plus_banner_global_shares'));
149
- if (!isset($sfsi_plus_banner_global_shares) || empty($sfsi_plus_banner_global_shares) ||!isset($sfsi_plus_banner_global_shares["is_active"])) {
150
  $sfsi_plus_banner_global_shares = array(
151
  'met_criteria' => "no",
152
  'banner_appeared' => "no",
@@ -154,9 +153,7 @@ function sfsi_plus_update_plugin()
154
  'timestamp' => ""
155
  );
156
  update_option("sfsi_plus_banner_global_shares", serialize($sfsi_plus_banner_global_shares));
157
- }
158
- $sfsi_plus_banner_global_load_faster = unserialize(get_option('sfsi_plus_banner_global_load_faster'));
159
- if (!isset($sfsi_plus_banner_global_load_faster) || empty($sfsi_plus_banner_global_load_faster) || !isset($sfsi_plus_banner_global_load_faster["is_active"])) {
160
  $sfsi_plus_banner_global_load_faster = array(
161
  'met_criteria' => "no",
162
  'banner_appeared' => "no",
@@ -164,9 +161,7 @@ function sfsi_plus_update_plugin()
164
  'timestamp' => ""
165
  );
166
  update_option("sfsi_plus_banner_global_load_faster", serialize($sfsi_plus_banner_global_load_faster));
167
- }
168
- $sfsi_plus_banner_global_social = unserialize(get_option('sfsi_plus_banner_global_social'));
169
- if (!isset($sfsi_plus_banner_global_social) || empty($sfsi_plus_banner_global_social) || !isset($sfsi_plus_banner_global_load_faster["is_active"])) {
170
  $sfsi_plus_banner_global_social = array(
171
  'met_criteria' => "no",
172
  'banner_appeared' => "no",
@@ -174,17 +169,126 @@ function sfsi_plus_update_plugin()
174
  'timestamp' => ""
175
  );
176
  update_option("sfsi_plus_banner_global_social", serialize($sfsi_plus_banner_global_social));
177
- }
178
- $sfsi_plus_banner_global_pinterest = unserialize(get_option('sfsi_plus_banner_global_pinterest'));
179
- if (!isset($sfsi_plus_banner_global_pinterest) || empty($sfsi_plus_banner_global_pinterest) || !isset($sfsi_plus_banner_global_pinterest["is_active"])) {
180
  $sfsi_plus_banner_global_pinterest = array(
181
  'met_criteria' => "no",
182
  'banner_appeared' => "no",
183
  'is_active' => "no",
184
  'timestamp' => ""
185
  );
186
- update_option("sfsi_plus_banner_global_pinterest", serialize($sfsi_plus_banner_global_pinterest));
187
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
  /* subscription form */
190
  $options9 = array('sfsi_plus_form_adjustment'=>'yes',
15
  update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
16
  }
17
  }
18
+
19
+ $lastversion = get_option("sfsi_plus_pluginVersion");
20
+ $sfsi_banner_error_version = ['3.39','3.40','3.41'];
21
+
22
  //Install version
23
+ update_option("sfsi_plus_pluginVersion", "3.42");
24
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
25
  {
26
  add_option("sfsi_plus_serverphpVersionnotification", "yes");
60
  }
61
  add_option('sfsi_plus_footer_sec','no');
62
 
63
+ $sfsi_plus_dismiss_sharecount = unserialize(get_option('sfsi_plus_dismiss_sharecount'));
64
  if (!isset($sfsi_plus_dismiss_sharecount) || empty($sfsi_plus_dismiss_sharecount)) {
65
  $sfsi_plus_dismiss_sharecount = array(
66
  'show_banner' => "yes",
89
  update_option("sfsi_plus_banner_global_firsttime_offer", serialize($sfsi_plus_banner_global_firsttime_offer));
90
  }
91
 
92
+ if(in_array($lastversion,$sfsi_banner_error_version) && "1 seconds"==get_option('sfsi_plus_showNextBannerDate')){
93
+
94
+ $sfsi_plus_dismiss_sharecount = array(
95
+ 'show_banner' => "yes",
96
+ 'timestamp' => ""
97
+ );
98
+ update_option("sfsi_plus_dismiss_sharecount", serialize($sfsi_plus_dismiss_sharecount));
99
+
100
+ $sfsi_plus_dismiss_google_analytic = array(
101
+ 'show_banner' => "yes",
102
+ 'timestamp' => ""
103
+ );
104
+ update_option("sfsi_plus_dismiss_google_analytic", serialize($sfsi_plus_dismiss_google_analytic));
105
+
106
+
107
  $sfsi_plus_dismiss_gdpr = array(
108
  'show_banner' => "yes",
109
  'timestamp' => ""
110
  );
111
  update_option("sfsi_plus_dismiss_gdpr", serialize($sfsi_plus_dismiss_gdpr));
 
112
 
 
 
113
  $sfsi_plus_dismiss_optimization = array(
114
  'show_banner' => "yes",
115
  'timestamp' => ""
116
  );
117
  update_option("sfsi_plus_dismiss_optimization", serialize($sfsi_plus_dismiss_optimization));
 
118
 
 
 
119
  $sfsi_plus_dismiss_gallery = array(
120
  'show_banner' => "yes",
121
  'timestamp' => ""
122
  );
123
  update_option("sfsi_plus_dismiss_gallery", serialize($sfsi_plus_dismiss_gallery));
124
+
 
 
 
 
 
125
  $sfsi_plus_banner_global_upgrade = array(
126
  'met_criteria' => "no",
127
  'banner_appeared' => "no",
129
  'timestamp' => ""
130
  );
131
  update_option("sfsi_plus_banner_global_upgrade", serialize($sfsi_plus_banner_global_upgrade));
132
+
 
 
133
  $sfsi_plus_banner_global_http = array(
134
  'met_criteria' => "no",
135
  'banner_appeared' => "no",
137
  'timestamp' => ""
138
  );
139
  update_option("sfsi_plus_banner_global_http", serialize($sfsi_plus_banner_global_http));
140
+
 
 
141
  $sfsi_plus_banner_global_gdpr = array(
142
  'met_criteria' => "no",
143
  'banner_appeared' => "no",
145
  'timestamp' => ""
146
  );
147
  update_option("sfsi_plus_banner_global_gdpr", serialize($sfsi_plus_banner_global_gdpr));
148
+
 
 
149
  $sfsi_plus_banner_global_shares = array(
150
  'met_criteria' => "no",
151
  'banner_appeared' => "no",
153
  'timestamp' => ""
154
  );
155
  update_option("sfsi_plus_banner_global_shares", serialize($sfsi_plus_banner_global_shares));
156
+
 
 
157
  $sfsi_plus_banner_global_load_faster = array(
158
  'met_criteria' => "no",
159
  'banner_appeared' => "no",
161
  'timestamp' => ""
162
  );
163
  update_option("sfsi_plus_banner_global_load_faster", serialize($sfsi_plus_banner_global_load_faster));
164
+
 
 
165
  $sfsi_plus_banner_global_social = array(
166
  'met_criteria' => "no",
167
  'banner_appeared' => "no",
169
  'timestamp' => ""
170
  );
171
  update_option("sfsi_plus_banner_global_social", serialize($sfsi_plus_banner_global_social));
172
+
 
 
173
  $sfsi_plus_banner_global_pinterest = array(
174
  'met_criteria' => "no",
175
  'banner_appeared' => "no",
176
  'is_active' => "no",
177
  'timestamp' => ""
178
  );
179
+ update_option("sfsi_plus_banner_global_pinterest", serialize($sfsi_plus_banner_global_pinterest));
180
+ update_option('sfsi_plus_currentDate', date('Y-m-d h:i:s'));
181
+ update_option('sfsi_plus_cycleDate', "180 day");
182
+ update_option('sfsi_plus_loyaltyDate', "180 day");
183
+ if ( "no" == $sfsi_plus_banner_global_firsttime_offer["is_active"] ) {
184
+ update_option('sfsi_plus_showNextBannerDate', '15 day');
185
+ sfsi_plus_check_banner(false);
186
+ }
187
+ update_option('sfsi_plus_showNextBannerDate', '21 day');
188
+
189
+ }else{
190
+
191
+
192
+ $sfsi_plus_dismiss_gdpr = unserialize(get_option('sfsi_plus_dismiss_gdpr'));
193
+ if (!isset($sfsi_plus_dismiss_gdpr) || empty($sfsi_plus_dismiss_gdpr)) {
194
+ $sfsi_plus_dismiss_gdpr = array(
195
+ 'show_banner' => "yes",
196
+ 'timestamp' => ""
197
+ );
198
+ update_option("sfsi_plus_dismiss_gdpr", serialize($sfsi_plus_dismiss_gdpr));
199
+ }
200
+
201
+ $sfsi_plus_dismiss_optimization = unserialize(get_option('sfsi_plus_dismiss_optimization'));
202
+ if (!isset($sfsi_plus_dismiss_optimization) || empty($sfsi_plus_dismiss_optimization)) {
203
+ $sfsi_plus_dismiss_optimization = array(
204
+ 'show_banner' => "yes",
205
+ 'timestamp' => ""
206
+ );
207
+ update_option("sfsi_plus_dismiss_optimization", serialize($sfsi_plus_dismiss_optimization));
208
+ }
209
+
210
+ $sfsi_plus_dismiss_gallery = unserialize(get_option('sfsi_plus_dismiss_gallery'));
211
+ if (!isset($sfsi_plus_dismiss_gallery) || empty($sfsi_plus_dismiss_gallery)) {
212
+ $sfsi_plus_dismiss_gallery = array(
213
+ 'show_banner' => "yes",
214
+ 'timestamp' => ""
215
+ );
216
+ update_option("sfsi_plus_dismiss_gallery", serialize($sfsi_plus_dismiss_gallery));
217
+ }
218
+
219
+
220
+
221
+ $sfsi_plus_banner_global_upgrade = unserialize(get_option('sfsi_plus_banner_global_upgrade'));
222
+ if (!isset($sfsi_plus_banner_global_upgrade) || empty($sfsi_plus_banner_global_upgrade) || !isset($sfsi_plus_banner_global_upgrade["is_active"])) {
223
+ $sfsi_plus_banner_global_upgrade = array(
224
+ 'met_criteria' => "no",
225
+ 'banner_appeared' => "no",
226
+ 'is_active' => "no",
227
+ 'timestamp' => ""
228
+ );
229
+ update_option("sfsi_plus_banner_global_upgrade", serialize($sfsi_plus_banner_global_upgrade));
230
+ }
231
+ $sfsi_plus_banner_global_http = unserialize(get_option('sfsi_plus_banner_global_http'));
232
+ if (!isset($sfsi_plus_banner_global_http) || empty($sfsi_plus_banner_global_http) || !isset($sfsi_plus_banner_global_http["is_active"])) {
233
+ $sfsi_plus_banner_global_http = array(
234
+ 'met_criteria' => "no",
235
+ 'banner_appeared' => "no",
236
+ 'is_active' => "no",
237
+ 'timestamp' => ""
238
+ );
239
+ update_option("sfsi_plus_banner_global_http", serialize($sfsi_plus_banner_global_http));
240
+ }
241
+ $sfsi_plus_banner_global_gdpr = unserialize(get_option('sfsi_plus_banner_global_gdpr'));
242
+ if (!isset($sfsi_plus_banner_global_gdpr) || empty($sfsi_plus_banner_global_gdpr)) {
243
+ $sfsi_plus_banner_global_gdpr = array(
244
+ 'met_criteria' => "no",
245
+ 'banner_appeared' => "no",
246
+ 'is_active' => "no",
247
+ 'timestamp' => ""
248
+ );
249
+ update_option("sfsi_plus_banner_global_gdpr", serialize($sfsi_plus_banner_global_gdpr));
250
+ }
251
+ $sfsi_plus_banner_global_shares = unserialize(get_option('sfsi_plus_banner_global_shares'));
252
+ if (!isset($sfsi_plus_banner_global_shares) || empty($sfsi_plus_banner_global_shares) ||!isset($sfsi_plus_banner_global_shares["is_active"])) {
253
+ $sfsi_plus_banner_global_shares = array(
254
+ 'met_criteria' => "no",
255
+ 'banner_appeared' => "no",
256
+ 'is_active' => "no",
257
+ 'timestamp' => ""
258
+ );
259
+ update_option("sfsi_plus_banner_global_shares", serialize($sfsi_plus_banner_global_shares));
260
+ }
261
+ $sfsi_plus_banner_global_load_faster = unserialize(get_option('sfsi_plus_banner_global_load_faster'));
262
+ if (!isset($sfsi_plus_banner_global_load_faster) || empty($sfsi_plus_banner_global_load_faster) || !isset($sfsi_plus_banner_global_load_faster["is_active"])) {
263
+ $sfsi_plus_banner_global_load_faster = array(
264
+ 'met_criteria' => "no",
265
+ 'banner_appeared' => "no",
266
+ 'is_active' => "no",
267
+ 'timestamp' => ""
268
+ );
269
+ update_option("sfsi_plus_banner_global_load_faster", serialize($sfsi_plus_banner_global_load_faster));
270
+ }
271
+ $sfsi_plus_banner_global_social = unserialize(get_option('sfsi_plus_banner_global_social'));
272
+ if (!isset($sfsi_plus_banner_global_social) || empty($sfsi_plus_banner_global_social) || !isset($sfsi_plus_banner_global_load_faster["is_active"])) {
273
+ $sfsi_plus_banner_global_social = array(
274
+ 'met_criteria' => "no",
275
+ 'banner_appeared' => "no",
276
+ 'is_active' => "no",
277
+ 'timestamp' => ""
278
+ );
279
+ update_option("sfsi_plus_banner_global_social", serialize($sfsi_plus_banner_global_social));
280
+ }
281
+ $sfsi_plus_banner_global_pinterest = unserialize(get_option('sfsi_plus_banner_global_pinterest'));
282
+ if (!isset($sfsi_plus_banner_global_pinterest) || empty($sfsi_plus_banner_global_pinterest) || !isset($sfsi_plus_banner_global_pinterest["is_active"])) {
283
+ $sfsi_plus_banner_global_pinterest = array(
284
+ 'met_criteria' => "no",
285
+ 'banner_appeared' => "no",
286
+ 'is_active' => "no",
287
+ 'timestamp' => ""
288
+ );
289
+ update_option("sfsi_plus_banner_global_pinterest", serialize($sfsi_plus_banner_global_pinterest));
290
+ }
291
+ }
292
 
293
  /* subscription form */
294
  $options9 = array('sfsi_plus_form_adjustment'=>'yes',
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialsharepro, socialtech
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
- Tested up to: 5.4.0
6
- Stable tag: 3.4.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  
@@ -294,8 +294,9 @@ The premium plugin offrs many more social buttons from other social media platfo
294
  9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
295
 
296
  == Changelog ==
297
- = 3.4.1 =
298
- * Update the banner to not show frequently
 
299
 
300
  = 3.4.0 =
301
  * Removed banner options
@@ -843,5 +844,5 @@ The premium plugin offrs many more social buttons from other social media platfo
843
 
844
  == Upgrade Notice ==
845
 
846
- = 3.4.1 =
847
  * Please update
2
  Contributors: socialsharepro, socialtech
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
+ Tested up to: 5.4.2
6
+ Stable tag: 3.4.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  
294
  9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
295
 
296
  == Changelog ==
297
+
298
+ = 3.4.2 =
299
+ * Update the banner to show less frequently
300
 
301
  = 3.4.0 =
302
  * Removed banner options
844
 
845
  == Upgrade Notice ==
846
 
847
+ = 3.4.2 =
848
  * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 3.4.1
11
  License: GPLv2
12
  */
13
 
@@ -76,7 +76,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
76
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
77
 
78
  /*Plugin version setup*/
79
- if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.41) {
80
  add_action("init", "sfsi_plus_update_plugin");
81
  }
82
 
@@ -1603,7 +1603,7 @@ function sfsi_plus_admin_notice()
1603
  update_option('_wps18472_now_already', false);
1604
  });
1605
  /** –– **/
1606
- function sfsi_plus_check_banner()
1607
  {
1608
  $gallery_plugins = array(
1609
  array('option_name' => 'photoblocks', 'dir_slug' => 'photoblocks-grid-gallery/photoblocks.php'),
@@ -1974,9 +1974,16 @@ function sfsi_plus_admin_notice()
1974
  }
1975
  }
1976
  }
1977
-
1978
- wp_redirect(admin_url('admin.php?page=sfsi-plus-options'));
1979
- exit;
 
 
 
 
 
 
 
1980
  // return false;
1981
  }
1982
 
@@ -2068,4 +2075,4 @@ function sfsi_plus_admin_notice()
2068
  }
2069
  $check_gallery_plugin_active_is_true = in_array(true, $sfsi_plus_gallery_plugin_active);
2070
  return $check_gallery_plugin_active_is_true;
2071
- }
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.4.2
11
  License: GPLv2
12
  */
13
 
76
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
77
 
78
  /*Plugin version setup*/
79
+ if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.42) {
80
  add_action("init", "sfsi_plus_update_plugin");
81
  }
82
 
1603
  update_option('_wps18472_now_already', false);
1604
  });
1605
  /** –– **/
1606
+ function sfsi_plus_check_banner($should_redirect=true)
1607
  {
1608
  $gallery_plugins = array(
1609
  array('option_name' => 'photoblocks', 'dir_slug' => 'photoblocks-grid-gallery/photoblocks.php'),
1974
  }
1975
  }
1976
  }
1977
+ if($should_redirect){
1978
+ $screen = get_current_screen();
1979
+ if(!is_null($screen)){
1980
+ $sfsi_plus_redirect_address = $_SERVER["REQUEST_URI"];
1981
+ }else{
1982
+ $sfsi_plus_redirect_address = admin_url('admin.php?page=sfsi-plus-options');
1983
+ }
1984
+ wp_redirect($sfsi_plus_redirect_address);
1985
+ exit;
1986
+ }
1987
  // return false;
1988
  }
1989
 
2075
  }
2076
  $check_gallery_plugin_active_is_true = in_array(true, $sfsi_plus_gallery_plugin_active);
2077
  return $check_gallery_plugin_active_is_true;
2078
+ }
views/sfsi_global_banners.php CHANGED
@@ -48,7 +48,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php') && !is_pl
48
  <div>
49
  <p style="margin-bottom: 12px !important;">You seem to have installed the Ultimate Social media plugin for the first time – Thank you & Welcome!</p>
50
  <p style="font-size:18px !important">
51
- For newbies we have a special offer: get the Premium Plugin within the <span class='sfsi_new_premium_counter' style="text-decoration: underline;">next <?php echo ceil(($sfsi_plus_max_show_time - strtotime(date('Y-m-d h:i:s'))) / 60) ?> minutes</span> and benefit from a discount of 30%! <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=NEWINSTALL&utm_source=usmplus_global&utm_campaign=new_installs&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;">Get it now</span></a>
52
  </p>
53
  </div>
54
  <div style="text-align:right;">
48
  <div>
49
  <p style="margin-bottom: 12px !important;">You seem to have installed the Ultimate Social media plugin for the first time – Thank you & Welcome!</p>
50
  <p style="font-size:18px !important">
51
+ For newbies we have a special offer: get the Premium Plugin within the <span style="text-decoration: underline;">next </span><span class='sfsi_new_premium_counter' style="text-decoration: underline;"> <?php echo ceil(($sfsi_plus_max_show_time - strtotime(date('Y-m-d h:i:s'))) / 60) ?></span><span style="text-decoration: underline;"> minutes</span> and benefit from a discount of 30%! <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=NEWINSTALL&utm_source=usmplus_global&utm_campaign=new_installs&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;">Get it now</span></a>
52
  </p>
53
  </div>
54
  <div style="text-align:right;">