Social Media Share Buttons & Social Sharing Icons - Version 2.5.7

Version Description

  • Subscription fallback Url issue fixed.
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Media Share Buttons & Social Sharing Icons
Version 2.5.7
Comparing to
See all releases

Code changes from version 2.5.6 to 2.5.7

analyst/main.php CHANGED
@@ -33,4 +33,4 @@ if (!function_exists('analyst_init')) {
33
  error_log('Analyst SDK receive an error: [' . $e->getMessage() . '] Please contact our support at support@analyst.com');
34
  }
35
  }
36
- }
33
  error_log('Analyst SDK receive an error: [' . $e->getMessage() . '] Please contact our support at support@analyst.com');
34
  }
35
  }
36
+ }
analyst/src/helpers.php CHANGED
@@ -106,17 +106,6 @@ if (!function_exists('dd')) {
106
  // return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["page"]) && ($_GET['page']==$option_name);
107
  // }
108
 
109
- function sfsi_get_plugin($dir_slug)
110
- {
111
- // if(is_plugin_active($dir_slug)){
112
- $plugins = get_plugins();
113
- if (isset($plugins[$dir_slug])) {
114
- return $plugins[$dir_slug];
115
- } else {
116
- return null;
117
- }
118
- // }
119
- }
120
 
121
  function sfsi_plugin_waiting_time($option)
122
  {
@@ -156,5 +145,3 @@ function sfsi_check_pinterest_icon_placed()
156
  }
157
  return false;
158
  }
159
-
160
-
106
  // return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["page"]) && ($_GET['page']==$option_name);
107
  // }
108
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  function sfsi_plugin_waiting_time($option)
111
  {
145
  }
146
  return false;
147
  }
 
 
helpers/twitteroauth/autoload.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- /**
4
- * Use to autoload needed classes without Composer.
5
- *
6
- * @param string $class The fully-qualified class name.
7
- * @return void
8
- */
9
- spl_autoload_register(function ($class) {
10
-
11
- // project-specific namespace prefix
12
- $prefix = 'Abraham\\TwitterOAuth\\';
13
-
14
- // base directory for the namespace prefix
15
- $base_dir = __DIR__ . '/src/';
16
-
17
- // does the class use the namespace prefix?
18
- $len = strlen($prefix);
19
- if (strncmp($prefix, $class, $len) !== 0) {
20
- // no, move to the next registered autoloader
21
- return;
22
- }
23
-
24
- // get the relative class name
25
- $relative_class = substr($class, $len);
26
-
27
- // replace the namespace prefix with the base directory, replace namespace
28
- // separators with directory separators in the relative class name, append
29
- // with .php
30
- $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
31
-
32
- // if the file exists, require it
33
- if (file_exists($file)) {
34
- require $file;
35
- }
36
- });
1
+ <?php
2
+
3
+ /**
4
+ * Use to autoload needed classes without Composer.
5
+ *
6
+ * @param string $class The fully-qualified class name.
7
+ * @return void
8
+ */
9
+ spl_autoload_register(function ($class) {
10
+
11
+ // project-specific namespace prefix
12
+ $prefix = 'Abraham\\TwitterOAuth\\';
13
+
14
+ // base directory for the namespace prefix
15
+ $base_dir = __DIR__ . '/src/';
16
+
17
+ // does the class use the namespace prefix?
18
+ $len = strlen($prefix);
19
+ if (strncmp($prefix, $class, $len) !== 0) {
20
+ // no, move to the next registered autoloader
21
+ return;
22
+ }
23
+
24
+ // get the relative class name
25
+ $relative_class = substr($class, $len);
26
+
27
+ // replace the namespace prefix with the base directory, replace namespace
28
+ // separators with directory separators in the relative class name, append
29
+ // with .php
30
+ $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
31
+
32
+ // if the file exists, require it
33
+ if (file_exists($file)) {
34
+ require $file;
35
+ }
36
+ });
helpers/twitteroauth/twiiterCount.php CHANGED
@@ -1,28 +1,27 @@
1
- <?php
2
-
3
- require "autoload.php";
4
- use Abraham\TwitterOAuth\TwitterOAuth;
5
-
6
- function sfsi_twitter_followers(){
7
-
8
- $count = 0;
9
-
10
- $sfsi_section4_options = unserialize(get_option('sfsi_section4_options',false));
11
-
12
- if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
13
- && isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
14
-
15
- try {
16
- $connection = new TwitterOAuth($sfsi_section4_options['tw_consumer_key'], $sfsi_section4_options['tw_consumer_secret'], $sfsi_section4_options['tw_oauth_access_token'], $sfsi_section4_options['tw_oauth_access_token_secret']);
17
-
18
- $statuses = $connection->get('followers/ids');
19
- $count = isset($statuses) && isset($statuses->ids) && is_array($statuses->ids) ? count($statuses->ids) : 0;
20
- }
21
- catch(Exception $e) {
22
- return $count;
23
- }
24
- }
25
-
26
- return $count;
27
- }
28
-
1
+ <?php
2
+
3
+ require "autoload.php";
4
+ use Abraham\TwitterOAuth\TwitterOAuth;
5
+
6
+ function sfsi_twitter_followers(){
7
+
8
+ $count = 0;
9
+
10
+ $sfsi_section4_options = unserialize(get_option('sfsi_section4_options',false));
11
+
12
+ if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
13
+ && isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
14
+
15
+ try {
16
+ $connection = new TwitterOAuth($sfsi_section4_options['tw_consumer_key'], $sfsi_section4_options['tw_consumer_secret'], $sfsi_section4_options['tw_oauth_access_token'], $sfsi_section4_options['tw_oauth_access_token_secret']);
17
+
18
+ $statuses = $connection->get('followers/ids');
19
+ $count = isset($statuses) && isset($statuses->ids) && is_array($statuses->ids) ? count($statuses->ids) : 0;
20
+ }
21
+ catch(Exception $e) {
22
+ return $count;
23
+ }
24
+ }
25
+
26
+ return $count;
27
+ }
 
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -581,4 +581,4 @@ class sfsi_SocialHelper
581
 
582
 
583
  }
584
- /* end of class */
581
 
582
 
583
  }
584
+ /* end of class */
libs/sfsi_custom_social_sharing_data.php CHANGED
@@ -151,7 +151,7 @@ function sfsi_social_media_metabox( $post ) { ?>
151
  <div class="imgTopTxt">
152
  <?php _e('<strong>Title </strong>(leave blank to use the post title)',SFSI_DOMAIN); ?></div>
153
 
154
- <div class="social_title"><textarea readonly name="social_fbGLTw_title_textarea" class="sfsi_textarea"
155
  maxlength="95"></textarea>
156
  </div>
157
 
@@ -176,7 +176,7 @@ function sfsi_social_media_metabox( $post ) { ?>
176
  <?php _e('<strong>Description </strong>(leave blank to use the post exerpt)',SFSI_DOMAIN); ?>
177
  </div>
178
 
179
- <div class="social_description_container"><textarea name="social_fbGLTw_description_textarea" readonly
180
  class="sfsi_textarea"
181
  maxlength="297"></textarea>
182
  </div>
@@ -233,7 +233,7 @@ function sfsi_social_media_metabox( $post ) { ?>
233
  <?php _e('<strong>Pinterest description </strong>(leave blank to use the post title)',SFSI_DOMAIN); ?>
234
  </div>
235
 
236
- <div class="social_title"><textarea readonly name="social_pinterest_description_textarea" class="sfsi_textarea"
237
  ></textarea></div>
238
 
239
  <div class="social_description">
@@ -250,8 +250,8 @@ function sfsi_social_media_metabox( $post ) { ?>
250
 
251
  <div class="imgTopTxt"><?php _e('<strong>Tweet </strong>',SFSI_DOMAIN); ?></div>
252
 
253
- <div class="social_description_container"><textarea name="social_twitter_description_textarea" readonly
254
- class="sfsi_textarea"
255
  maxlength="106"></textarea>
256
  </div>
257
 
151
  <div class="imgTopTxt">
152
  <?php _e('<strong>Title </strong>(leave blank to use the post title)',SFSI_DOMAIN); ?></div>
153
 
154
+ <div class="social_title"><textarea readonly class="sfsi_textarea"
155
  maxlength="95"></textarea>
156
  </div>
157
 
176
  <?php _e('<strong>Description </strong>(leave blank to use the post exerpt)',SFSI_DOMAIN); ?>
177
  </div>
178
 
179
+ <div class="social_description_container"><textarea readonly
180
  class="sfsi_textarea"
181
  maxlength="297"></textarea>
182
  </div>
233
  <?php _e('<strong>Pinterest description </strong>(leave blank to use the post title)',SFSI_DOMAIN); ?>
234
  </div>
235
 
236
+ <div class="social_title"><textarea readonly class="sfsi_textarea"
237
  ></textarea></div>
238
 
239
  <div class="social_description">
250
 
251
  <div class="imgTopTxt"><?php _e('<strong>Tweet </strong>',SFSI_DOMAIN); ?></div>
252
 
253
+ <div class="social_description_container"><textarea readonly
254
+ class="sfsi_textarea"name
255
  maxlength="106"></textarea>
256
  </div>
257
 
libs/sfsi_install_uninstall.php CHANGED
@@ -39,7 +39,7 @@ function sfsi_update_plugin()
39
  update_option("sfsi_custom_icons", "yes");
40
  }
41
  //Install version
42
- update_option("sfsi_pluginVersion", "2.56");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
@@ -1765,8 +1765,4 @@ function sfsi_was_displaying_addthis()
1765
  update_option('sfsi_section6_options', serialize($sfsi_section6));
1766
  }
1767
  }
1768
-
1769
-
1770
-
1771
-
1772
  ?>
39
  update_option("sfsi_custom_icons", "yes");
40
  }
41
  //Install version
42
+ update_option("sfsi_pluginVersion", "2.57");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
1765
  update_option('sfsi_section6_options', serialize($sfsi_section6));
1766
  }
1767
  }
 
 
 
 
1768
  ?>
libs/sfsi_subscribe_widget.php CHANGED
@@ -73,7 +73,7 @@ class subscriber_widget extends WP_Widget
73
  $option8 = unserialize(get_option('sfsi_section8_options', false));
74
  $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
75
  if ($sfsi_feediid == "") {
76
- $url = "https://api.follow.it/subscription-form/clUvQVJZazRWeXZkTS9FUGVZU1Nnay9wRzgycTVDV0FqNmpHZUNyc0NJbS9ucnVEbnR6UFJDMnJmTTRBSU45T1RMenl2ZVNBeHIrRTdrdHFNd29hVEU4a3BkVGJsMEdWaDdNZjBDY2dZclFLdFp4NGxRMUwwaWpCOTFxdUFjdUp8a1VGN1FvbVVGcW9MUWFKSU9Rbk5ScFYzZVR3Q1hVdEdtNDUwWmRtYnErZz0=/8/";
77
  } else {
78
  $url = "https://api.follow.it/subscription-form/";
79
  $url = $url . $sfsi_feediid . '/8/';
73
  $option8 = unserialize(get_option('sfsi_section8_options', false));
74
  $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
75
  if ($sfsi_feediid == "") {
76
+ $url = "https://api.follow.it/subscribe";
77
  } else {
78
  $url = "https://api.follow.it/subscription-form/";
79
  $url = $url . $sfsi_feediid . '/8/';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude, socialtech
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.4
6
- Stable tag: 2.5.6
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -270,18 +270,21 @@ You cannot use the same plugin twice, however you can install both the USM as we
270
 
271
 
272
  == Changelog ==
 
 
 
273
  = 2.5.6 =
274
  * Fixed undefined index issue
275
  * Updated Youtube api updated
276
  * Bitly changes
277
 
278
  = 2.5.5 =
279
- * Fixed claim feed from Q8 popup.
280
- * Updated new section to show counts.
281
- * Fixed subscribe form button value.
282
- * Fixed twitter url space corrected.
283
- * changed nopin to data-attr.
284
- * Fixed youtube tooltip alignemnt.
285
 
286
  = 2.5.4 =
287
  * Fixed syntax errors.
@@ -933,5 +936,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
933
 
934
  == Upgrade Notice ==
935
 
936
- = 2.5.6 =
937
  Please upgrade
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.4
6
+ Stable tag: 2.5.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
270
 
271
 
272
  == Changelog ==
273
+ = 2.5.7 =
274
+ * Subscription fallback Url issue fixed.
275
+
276
  = 2.5.6 =
277
  * Fixed undefined index issue
278
  * Updated Youtube api updated
279
  * Bitly changes
280
 
281
  = 2.5.5 =
282
+ * Fixed claim feed from Q8 popup
283
+ * Updated new section to show counts
284
+ * Fixed subscribe form button value
285
+ * Fixed twitter url space corrected
286
+ * changed nopin to data-attr
287
+ * Fixed youtube tooltip alignemnt
288
 
289
  = 2.5.4 =
290
  * Fixed syntax errors.
936
 
937
  == Upgrade Notice ==
938
 
939
+ = 2.5.7 =
940
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ Description: Easy to use and 100% FREE social media plugin which adds social med
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.5.6
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
@@ -90,7 +90,7 @@ register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
90
 
91
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
92
 
93
- if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.56) {
94
  add_action("init", "sfsi_update_plugin");
95
  }
96
  /* redirect setting page hook */
@@ -2031,6 +2031,22 @@ function sfsi_plugin_redirect()
2031
  array('option_name' => 'foogallery-settings', 'dir_slug' => 'foogallery/foogallery.php'),
2032
  array('option_name' => 'modula', 'dir_slug' => 'modula-best-grid-gallery/Modula.php'),
2033
  array('option_name' => 'robo-gallery-settings', 'dir_slug' => 'robo-gallery/robogallery.php'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2034
  );
2035
  $sharecount_plugins = array(
2036
  array("dir_slug" => "optinmonster/optin-monster-wp-api.php", 'option_name' => 'optin-monster-api-welcome'),
@@ -2062,7 +2078,12 @@ function sfsi_plugin_redirect()
2062
  array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights_settings'),
2063
  array("dir_slug" => "onesignal-free-web-push-notifications/onesignal-push", 'option_name' => 'onesignal-push'),
2064
  array("dir_slug" => "access-watch/index.php", 'option_name' => 'access-watch-dashboard'),
2065
-
 
 
 
 
 
2066
  );
2067
  $optimization_plugins = array(
2068
  array('dir_slug' => 'litespeed-cache/litespeed-cache.php', 'option_name' => 'lscache-settings'),
@@ -2104,7 +2125,10 @@ function sfsi_plugin_redirect()
2104
  array('dir_slug' => 'flying-pages/flying-pages.php', 'option_name' => 'flying-pages'),
2105
  array('dir_slug' => 'speed-booster-pack/speed-booster-pack.php', 'option_name' => 'sbp-options'),
2106
  array('dir_slug' => 'baqend/baqend.php', 'option_name' => 'baqend'),
2107
- array('dir_slug' => 'wp-smushit/wp-smush.php', 'option_name' => 'smush')
 
 
 
2108
  );
2109
  $gdpr_plugins = array(
2110
  array('dir_slug' => 'cookie-law-info/cookie-law-info.php', 'option_name' => 'cookie-law-info'),
@@ -2126,7 +2150,25 @@ function sfsi_plugin_redirect()
2126
  array('dir_slug' => 'gdpr-cookies-pro/gdpr-cookies-pro.php', 'option_name' => 'gdpr-cookies-pro'),
2127
  array('dir_slug' => 'seahorse-gdpr-data-manager/seahorse-gdpr-data-manager.php', 'option_name' => 'seahorse_gdpr_data_manager_plugin'),
2128
  array('dir_slug' => 'dsgvo-tools-kommentar-ip-entfernen/main.php', 'option_name' => 'fhw_dsgvo_kommentar_options'),
2129
- array('dir_slug' => 'gdpr-tools/gdpr-tools.php', 'option_name' => 'gdpr-tools-settings')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2130
  );
2131
  $google_analytics = array(
2132
  array('dir_slug' => 'really-simple-ssl/rlrsssl-really-simple-ssl.php', 'option_name' => 'rlrsssl_really_simple_ssl'),
@@ -2276,7 +2318,7 @@ function sfsi_plugin_redirect()
2276
  // }
2277
  }
2278
  }
2279
- if (empty($global_banners_filters ) && empty($global_banners_criteria_filters)) {
2280
  foreach ($global_banners as $key => $global_banner) {
2281
 
2282
  $todaysdate = date("Y-m-d h:i:s");
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.5.7
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
90
 
91
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
92
 
93
+ if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.57) {
94
  add_action("init", "sfsi_update_plugin");
95
  }
96
  /* redirect setting page hook */
2031
  array('option_name' => 'foogallery-settings', 'dir_slug' => 'foogallery/foogallery.php'),
2032
  array('option_name' => 'modula', 'dir_slug' => 'modula-best-grid-gallery/Modula.php'),
2033
  array('option_name' => 'robo-gallery-settings', 'dir_slug' => 'robo-gallery/robogallery.php'),
2034
+ array('option_name' => 'envira', 'dir_slug' => 'envira-gallery-lite/envira-gallery-lite.php'),
2035
+ array('option_name' => 'supsystic-gallery', 'dir_slug' => 'gallery-by-supsystic/index.php'),
2036
+ array('option_name' => 'ftg-lite-gallery-admin', 'dir_slug' => 'final-tiles-grid-gallery-lite/FinalTilesGalleryLite.php'),
2037
+ array('option_name' => 'everest-gallery-lite', 'dir_slug' => 'everest-gallery-lite/everest-gallery-lite.php'),
2038
+ array('option_name' => 'photonic-options-manager', 'dir_slug' => 'photonic/photonic.php'),
2039
+ array('option_name' => 'meowapps-main-menu', 'dir_slug' => 'meow-gallery/meow-gallery.php'),
2040
+ array('option_name' => 'video_galleries_origincode_video_gallery', 'dir_slug' => 'smart-grid-gallery/smart-video-gallery.php'),
2041
+ array('option_name' => 'wpape_gallery_type', 'dir_slug' => 'gallery-images-ape/index.php'),
2042
+ array('option_name' => 'wc-gallery', 'dir_slug' => 'wc-gallery/wc-gallery.php'),
2043
+ array('option_name' => 'elementor', 'dir_slug' => 'elementor/elementor.php'),
2044
+ array('option_name' => 'robo_gallery_table', 'dir_slug' => 'robo-gallery/robogallery.php'),
2045
+ array('option_name' => 'awl_filter_gallery', 'dir_slug' => 'portfolio-filter-gallery/portfolio-filter-gallery.php'),
2046
+ array('option_name' => 'gallery_box', 'dir_slug' => 'gallery-box/gallery-box.php'),
2047
+ array('option_name' => 'maxgalleria-settings', 'dir_slug' => 'maxgalleria/maxgalleria.php'),
2048
+ array('option_name' => 'fa_gallery', 'dir_slug' => 'flickr-album-gallery/flickr-album-gallery.php'),
2049
+ array('option_name' => 'grid_gallery', 'dir_slug' => 'new-grid-gallery/grid-gallery.php'),
2050
  );
2051
  $sharecount_plugins = array(
2052
  array("dir_slug" => "optinmonster/optin-monster-wp-api.php", 'option_name' => 'optin-monster-api-welcome'),
2078
  array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights_settings'),
2079
  array("dir_slug" => "onesignal-free-web-push-notifications/onesignal-push", 'option_name' => 'onesignal-push'),
2080
  array("dir_slug" => "access-watch/index.php", 'option_name' => 'access-watch-dashboard'),
2081
+ array("dir_slug" => "tweet-old-post/tweet-old-post.php", 'option_name' => 'TweetOldPost'),
2082
+ array("dir_slug" => "mailoptin/mailoptin.php", 'option_name' => 'mailoptin-settings'),
2083
+ array("dir_slug" => "NextScripts_SNAP/NextScripts_SNAP.php", 'option_name' => 'nxssnap-reposter'),
2084
+ array("dir_slug" => "social-pug-author-box/index.php", 'option_name' => 'social_pug_author_box'),
2085
+ array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights-getting-started'),
2086
+ array("dir_slug" => "onesignal-free-web-push-notifications/onesignal.php", 'option_name' => 'onesignal-push'),
2087
  );
2088
  $optimization_plugins = array(
2089
  array('dir_slug' => 'litespeed-cache/litespeed-cache.php', 'option_name' => 'lscache-settings'),
2125
  array('dir_slug' => 'flying-pages/flying-pages.php', 'option_name' => 'flying-pages'),
2126
  array('dir_slug' => 'speed-booster-pack/speed-booster-pack.php', 'option_name' => 'sbp-options'),
2127
  array('dir_slug' => 'baqend/baqend.php', 'option_name' => 'baqend'),
2128
+ array('dir_slug' => 'wp-smushit/wp-smush.php', 'option_name' => 'smush'),
2129
+ array('dir_slug' => 'varnish-http-purge/varnish-http-purge.php', 'option_name' => 'varnish-page'),
2130
+ array('dir_slug' => 'varnish-http-purge/varnish-http-purge.php', 'option_name' => 'varnish-check-caching'),
2131
+
2132
  );
2133
  $gdpr_plugins = array(
2134
  array('dir_slug' => 'cookie-law-info/cookie-law-info.php', 'option_name' => 'cookie-law-info'),
2150
  array('dir_slug' => 'gdpr-cookies-pro/gdpr-cookies-pro.php', 'option_name' => 'gdpr-cookies-pro'),
2151
  array('dir_slug' => 'seahorse-gdpr-data-manager/seahorse-gdpr-data-manager.php', 'option_name' => 'seahorse_gdpr_data_manager_plugin'),
2152
  array('dir_slug' => 'dsgvo-tools-kommentar-ip-entfernen/main.php', 'option_name' => 'fhw_dsgvo_kommentar_options'),
2153
+ array('dir_slug' => 'gdpr-tools/gdpr-tools.php', 'option_name' => 'gdpr-tools-settings'),
2154
+ array('dir_slug' => 'gdpr-cookie-compliance/moove-gdpr.php', 'option_name' => 'moove-gdpr'),
2155
+ array('dir_slug' => 'cookie-notice/cookie-notice.php', 'option_name' => 'cookie-notice'),
2156
+ array('dir_slug' => 'tarteaucitronjs/tarteaucitron.php', 'option_name' => 'tarteaucitronjs'),
2157
+ array('dir_slug' => 'wp-gdpr-compliance/wp-gdpr-compliance.php', 'option_name' => 'wp_gdpr_compliance'),
2158
+ array('dir_slug' => 'iubenda_cookie_solution/iubenda_cookie_solution.php', 'option_name' => 'iubenda'),
2159
+ array('dir_slug' => 'easy-wp-cookie-popup/easy-wp-cookie-popup.php', 'option_name' => 'cookii_settings'),
2160
+ array('dir_slug' => 'gdpr-compliance-cookie-consent/gdpr-compliance-cookie-consent.php', 'option_name' => 'gdpr-compliance-cookie-consent'),
2161
+ array('dir_slug' => 'yetience-plugin/yetience-plugin.php', 'option_name' => 'yetience-yeloni'),
2162
+ array('dir_slug' => 'cwis-antivirus-malware-detected/cwis-antivirus-malware-detected.php', 'option_name' => 'cwis-scanner'),
2163
+ array('dir_slug' => 'gdpr-compliance-by-supsystic/grs.php', 'option_name' => 'gdpr-compliance-by-supsystic'),
2164
+ array('dir_slug' => 'auto-terms-of-service-privacy-policy/auto-terms-of-service-privacy-policy.php', 'option_name' => 'wpautoterms_page'),
2165
+ array('dir_slug' => 'google-analytics-opt-out/google-analytics-opt-out.php', 'option_name' => 'gaoo-options'),
2166
+ array('dir_slug' => 'surbma-gdpr-proof-google-analytics/surbma-gdpr-proof-google-analytics.php', 'option_name' => 'surbma-gpga-menu'),
2167
+ array('dir_slug' => 'bp-gdpr/buddypress-gdpr.php', 'option_name' => 'buddyboss-bp-gdpr'),
2168
+ array('dir_slug' => 'beautiful-and-responsive-cookie-consent/nsc_bar-cookie-consent.php', 'option_name' => 'nsc_bar-cookie-consent'),
2169
+ array('dir_slug' => 'simple-gdpr/simple-gdpr.php', 'option_name' => 'SGDPR_settings'),
2170
+ array('dir_slug' => 'wonderpush-web-push-notifications/wonderpush.php', 'option_name' => 'wonderpush'),
2171
+ array('dir_slug' => 'ns-gdpr/ns-gdpr.php', 'option_name' => 'ns-gdpr'),
2172
  );
2173
  $google_analytics = array(
2174
  array('dir_slug' => 'really-simple-ssl/rlrsssl-really-simple-ssl.php', 'option_name' => 'rlrsssl_really_simple_ssl'),
2318
  // }
2319
  }
2320
  }
2321
+ if (empty($global_banners_filters) && empty($global_banners_criteria_filters)) {
2322
  foreach ($global_banners as $key => $global_banner) {
2323
 
2324
  $todaysdate = date("Y-m-d h:i:s");
views/sfsi_global_banners.php CHANGED
@@ -48,7 +48,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
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 next <span class='sfsi_new_premium_counter'><?php echo ceil(($sfsi_max_show_time - strtotime(date('Y-m-d h:i:s'))) / 60) ?></span> minutes and benefit from a discount of 30%! <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=NEWINSTALL&utm_source=usmi_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;">
@@ -202,7 +202,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
202
  if (sfsi_check_banner_criteria($sfsi_banner_global_gdpr, $gallery_plugins, $optimization_plugins, $sharecount_plugins, $google_analytics, $gdpr_plugins, $sfsi_current_time)) { ?>
203
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
204
  <div>
205
- <p style="margin-bottom: 12px !important;"><b>Make sure your social media icons are GDPR compliant. </b> You are using the Ultimate Social Media Plugin – see more information about GDPR <a href="http://ultimatelysocial.com/gdpr/?utm_source=usmi_global&utm_campaign=gdpr_page&utm_medium=banner" style="color:#1a1d20 !important;text-decoration: underline;">here</a></p>
206
  <p style="font-size:18px !important">
207
  If you don’t want to check GDPR compliance yourself: As part of the Ultimate Social Media <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_global&discount=GDPRCOMPLIANCE2&utm_campaign=gdpr&utm_medium=banner" target="_blank" style="color:#1a1d20 !important;text-decoration: underline;"> Premium Plugin</a> a GDPR review is done for you (at no extra charge) <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=GDPRCOMPLIANCE2&utm_source=usmi_global&utm_campaign=gdpr&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;"></span> <span style="text-decoration: underline;">Get it now</span></a>
208
  </p>
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_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=usmi_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;">
202
  if (sfsi_check_banner_criteria($sfsi_banner_global_gdpr, $gallery_plugins, $optimization_plugins, $sharecount_plugins, $google_analytics, $gdpr_plugins, $sfsi_current_time)) { ?>
203
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
204
  <div>
205
+ <p style="margin-bottom: 12px !important;"><b>Make sure your social media icons are GDPR compliant. </b> You are using the Ultimate Social Media Plugin – see more information about GDPR <a href="http://ultimatelysocial.com/gdpr/?utm_source=usmi_global&utm_campaign=gdpr_page&utm_medium=banner" style="color:#1a1d20 !important;text-decoration: underline;">here.</a></p>
206
  <p style="font-size:18px !important">
207
  If you don’t want to check GDPR compliance yourself: As part of the Ultimate Social Media <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_global&discount=GDPRCOMPLIANCE2&utm_campaign=gdpr&utm_medium=banner" target="_blank" style="color:#1a1d20 !important;text-decoration: underline;"> Premium Plugin</a> a GDPR review is done for you (at no extra charge) <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=GDPRCOMPLIANCE2&utm_source=usmi_global&utm_campaign=gdpr&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;"></span> <span style="text-decoration: underline;">Get it now</span></a>
208
  </p>
views/sfsi_other_banners.php CHANGED
@@ -11,18 +11,18 @@
11
  $sfsi_dismiss_gdpr = unserialize(get_option('sfsi_dismiss_gdpr', false));
12
  $sfsi_dismiss_google_analytic = unserialize(get_option('sfsi_dismiss_google_analytic', false));
13
  // var_dump($sfsi_dismiss_sharecount,$sfsi_dismiss_gallery,$sfsi_dismiss_optimization,$sfsi_dismiss_gdpr,$sfsi_dismiss_google_analytic);
14
- foreach ($gallery_plugins as $key => $gallery_plugin) {
15
- $sfsi_show_gallery_banner = sfsi_check_on_plugin_page($gallery_plugin['dir_slug'], $gallery_plugin['option_name'], $current_site_url);
16
- if( $gallery_plugin['option_name'] == 'robo-gallery-settings'){
17
- // var_dump(($sfsi_show_gallery_banner),'lfjgdjkf');
18
- }
19
- // var_dump($sfsi_show_gallery_banner,$gallery_plugin['option_name'] );
20
-
21
- }
22
  $socialObj = new sfsi_SocialHelper();
23
  $current_url = site_url();
24
  $fb_data = $socialObj->sfsi_get_fb($current_url);
25
- $check_fb_count_more_than_one = ((!empty($socialObj->format_num($fb_data['like_count'])) || !empty($socialObj->format_num($fb_data['share_count']))) && !empty($socialObj->sfsi_get_pinterest($current_url)));
26
  ?>
27
  <?php
28
  if (is_ssl() && $check_fb_count_more_than_one && ($sfsi_dismiss_sharecount['show_banner'] == "yes" || false == $sfsi_dismiss_sharecount)) {
@@ -65,7 +65,11 @@
65
  $sfsi_show_gallery_banner = sfsi_check_on_plugin_page($gallery_plugin['dir_slug'], $gallery_plugin['option_name'], $current_site_url);
66
 
67
  if ($sfsi_show_gallery_banner) {
68
- $plugin = sfsi_get_plugin($gallery_plugin['dir_slug']);
 
 
 
 
69
  ?>
70
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
71
  <div>
@@ -146,7 +150,11 @@
146
  ?>
147
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
148
  <p style="font-size:18px !important">
149
- <b>Make sure your site is GDPR compliant </b>– As part of the Ultimate Social Media Premium Plugin you can request a review (at no extra charge) to check if your sharing icons are GDPR compliant. <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=GDPRCOMPLIANT&utm_source=usmi_other_plugins_settings_page&utm_campaign=gdpr_compliance&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;"></span> <span style="text-decoration: underline;">Get it now at 20% discount</span> </a>
 
 
 
 
150
  </p>
151
  <div style="text-align:right;">
152
 
11
  $sfsi_dismiss_gdpr = unserialize(get_option('sfsi_dismiss_gdpr', false));
12
  $sfsi_dismiss_google_analytic = unserialize(get_option('sfsi_dismiss_google_analytic', false));
13
  // var_dump($sfsi_dismiss_sharecount,$sfsi_dismiss_gallery,$sfsi_dismiss_optimization,$sfsi_dismiss_gdpr,$sfsi_dismiss_google_analytic);
14
+ // foreach ($gallery_plugins as $key => $gallery_plugin) {
15
+ // $sfsi_show_gallery_banner = sfsi_check_on_plugin_page($gallery_plugin['dir_slug'], $gallery_plugin['option_name'], $current_site_url);
16
+ // if ($gallery_plugin['option_name'] == 'robo-gallery-settings') {
17
+ // // var_dump(($sfsi_show_gallery_banner),'lfjgdjkf');
18
+ // }
19
+ // // var_dump($sfsi_show_gallery_banner,$gallery_plugin['option_name'] );
20
+
21
+ // }
22
  $socialObj = new sfsi_SocialHelper();
23
  $current_url = site_url();
24
  $fb_data = $socialObj->sfsi_get_fb($current_url);
25
+ $check_fb_count_more_than_one = ( $fb_data>0 && !empty($socialObj->sfsi_get_pinterest($current_url)));
26
  ?>
27
  <?php
28
  if (is_ssl() && $check_fb_count_more_than_one && ($sfsi_dismiss_sharecount['show_banner'] == "yes" || false == $sfsi_dismiss_sharecount)) {
65
  $sfsi_show_gallery_banner = sfsi_check_on_plugin_page($gallery_plugin['dir_slug'], $gallery_plugin['option_name'], $current_site_url);
66
 
67
  if ($sfsi_show_gallery_banner) {
68
+ if(function_exists("sfsi_get_plugin")){
69
+ $plugin = sfsi_get_plugin($gallery_plugin['dir_slug']);
70
+ }else{
71
+ $plugin = array();
72
+ }
73
  ?>
74
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
75
  <div>
150
  ?>
151
  <div class="sfsi_new_prmium_follw sfsi_banner_body">
152
  <p style="font-size:18px !important">
153
+ <b>Make sure your site is GDPR compliant </b>– As part of the Ultimate Social Media
154
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_other_plugins_settings_page&utm_campaign=website_load_faster&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;text-decoration: underline;"><span></span>
155
+ Premium Plugin
156
+ </a>
157
+ you can request a review (at no extra charge) to check if your sharing icons are GDPR compliant. <a href="https://www.ultimatelysocial.com/usm-premium/?withqp=1&discount=GDPRCOMPLIANT&utm_source=usmi_other_plugins_settings_page&utm_campaign=gdpr_compliance&utm_medium=banner" class="sfsi_font_inherit" target="_blank" style="color:#1a1d20 !important;font-weight: bold;"><span>&#10151;</span> <span style="text-decoration: underline;"></span> <span style="text-decoration: underline;">Get it now at 20% discount</span> </a>
158
  </p>
159
  <div style="text-align:right;">
160
 
views/sfsi_plugin_lists.php CHANGED
@@ -37,8 +37,22 @@ $gallery_plugins = array(
37
  array('option_name' => 'foogallery-settings', 'dir_slug' => 'foogallery/foogallery.php'),
38
  array('option_name' => 'modula', 'dir_slug' => 'modula-best-grid-gallery/Modula.php'),
39
  array('option_name' => 'robo-gallery-settings', 'dir_slug' => 'robo-gallery/robogallery.php'),
40
-
41
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  );
43
  $sharecount_plugins = array(
44
  array("dir_slug" => "optinmonster/optin-monster-wp-api.php", 'option_name' => 'optin-monster-api-welcome'),
@@ -70,9 +84,13 @@ $sharecount_plugins = array(
70
  array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights_settings'),
71
  array("dir_slug" => "onesignal-free-web-push-notifications/onesignal-push", 'option_name' => 'onesignal-push'),
72
  array("dir_slug" => "access-watch/index.php", 'option_name' => 'access-watch-dashboard'),
73
-
 
 
 
 
 
74
  );
75
-
76
  $optimization_plugins = array(
77
  array('dir_slug' => 'litespeed-cache/litespeed-cache.php', 'option_name' => 'lscache-settings'),
78
  array('dir_slug' => 'w3-total-cache/w3-total-cache.php', 'option_name' => 'w3tc_dashboard'),
@@ -113,7 +131,10 @@ $optimization_plugins = array(
113
  array('dir_slug' => 'flying-pages/flying-pages.php', 'option_name' => 'flying-pages'),
114
  array('dir_slug' => 'speed-booster-pack/speed-booster-pack.php', 'option_name' => 'sbp-options'),
115
  array('dir_slug' => 'baqend/baqend.php', 'option_name' => 'baqend'),
116
- array('dir_slug' => 'wp-smushit/wp-smush.php', 'option_name' => 'smush')
 
 
 
117
  );
118
  $gdpr_plugins = array(
119
  array('dir_slug' => 'cookie-law-info/cookie-law-info.php', 'option_name' => 'cookie-law-info'),
@@ -135,7 +156,25 @@ $gdpr_plugins = array(
135
  array('dir_slug' => 'gdpr-cookies-pro/gdpr-cookies-pro.php', 'option_name' => 'gdpr-cookies-pro'),
136
  array('dir_slug' => 'seahorse-gdpr-data-manager/seahorse-gdpr-data-manager.php', 'option_name' => 'seahorse_gdpr_data_manager_plugin'),
137
  array('dir_slug' => 'dsgvo-tools-kommentar-ip-entfernen/main.php', 'option_name' => 'fhw_dsgvo_kommentar_options'),
138
- array('dir_slug' => 'gdpr-tools/gdpr-tools.php', 'option_name' => 'gdpr-tools-settings')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  );
140
  $google_analytics = array(
141
  array('dir_slug' => 'really-simple-ssl/rlrsssl-really-simple-ssl.php', 'option_name' => 'rlrsssl_really_simple_ssl'),
@@ -151,8 +190,13 @@ $google_analytics = array(
151
  );
152
  function sfsi_check_on_plugin_page($dir_slug, $option_name, $site_url = "")
153
  {
154
- return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["page"]) && ($_GET['page'] == $option_name);
 
 
 
 
155
  }
 
156
  function sfsi_has_gallery_plugin($gallery_plugins)
157
  {
158
  foreach ($gallery_plugins as $key => $gallery_plugin) {
@@ -239,10 +283,23 @@ function sfsi_check_banner_criteria($banner, $gallery_plugins, $optimization_plu
239
  // var_dump($banner);
240
  if (
241
  ($banner['is_active'] == "yes") &&
242
- $time >= ($banner['timestamp']) &&
243
- (!sfsi_check_not_show_other_plugin_settings_page($gallery_plugins, $optimization_plugins, $sharecount_plugins, $google_analytics, $gdpr_plugins))
244
  ) {
245
  return true;
246
  }
247
  return false;
248
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  array('option_name' => 'foogallery-settings', 'dir_slug' => 'foogallery/foogallery.php'),
38
  array('option_name' => 'modula', 'dir_slug' => 'modula-best-grid-gallery/Modula.php'),
39
  array('option_name' => 'robo-gallery-settings', 'dir_slug' => 'robo-gallery/robogallery.php'),
40
+ array('option_name' => 'envira', 'dir_slug' => 'envira-gallery-lite/envira-gallery-lite.php'),
41
+ array('option_name' => 'supsystic-gallery', 'dir_slug' => 'gallery-by-supsystic/index.php'),
42
+ array('option_name' => 'ftg-lite-gallery-admin', 'dir_slug' => 'final-tiles-grid-gallery-lite/FinalTilesGalleryLite.php'),
43
+ array('option_name' => 'everest-gallery-lite', 'dir_slug' => 'everest-gallery-lite/everest-gallery-lite.php'),
44
+ array('option_name' => 'photonic-options-manager', 'dir_slug' => 'photonic/photonic.php'),
45
+ array('option_name' => 'meowapps-main-menu', 'dir_slug' => 'meow-gallery/meow-gallery.php'),
46
+ array('option_name' => 'video_galleries_origincode_video_gallery', 'dir_slug' => 'smart-grid-gallery/smart-video-gallery.php'),
47
+ array('option_name' => 'wpape_gallery_type', 'dir_slug' => 'gallery-images-ape/index.php'),
48
+ array('option_name' => 'wc-gallery', 'dir_slug' => 'wc-gallery/wc-gallery.php'),
49
+ array('option_name' => 'elementor', 'dir_slug' => 'elementor/elementor.php'),
50
+ array('option_name' => 'robo_gallery_table', 'dir_slug' => 'robo-gallery/robogallery.php'),
51
+ array('option_name' => 'awl_filter_gallery', 'dir_slug' => 'portfolio-filter-gallery/portfolio-filter-gallery.php'),
52
+ array('option_name' => 'gallery_box', 'dir_slug' => 'gallery-box/gallery-box.php'),
53
+ array('option_name' => 'maxgalleria-settings', 'dir_slug' => 'maxgalleria/maxgalleria.php'),
54
+ array('option_name' => 'fa_gallery', 'dir_slug' => 'flickr-album-gallery/flickr-album-gallery.php'),
55
+ array('option_name' => 'grid_gallery', 'dir_slug' => 'new-grid-gallery/grid-gallery.php'),
56
  );
57
  $sharecount_plugins = array(
58
  array("dir_slug" => "optinmonster/optin-monster-wp-api.php", 'option_name' => 'optin-monster-api-welcome'),
84
  array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights_settings'),
85
  array("dir_slug" => "onesignal-free-web-push-notifications/onesignal-push", 'option_name' => 'onesignal-push'),
86
  array("dir_slug" => "access-watch/index.php", 'option_name' => 'access-watch-dashboard'),
87
+ array("dir_slug" => "tweet-old-post/tweet-old-post.php", 'option_name' => 'TweetOldPost'),
88
+ array("dir_slug" => "mailoptin/mailoptin.php", 'option_name' => 'mailoptin-settings'),
89
+ array("dir_slug" => "NextScripts_SNAP/NextScripts_SNAP.php", 'option_name' => 'nxssnap-reposter'),
90
+ array("dir_slug" => "social-pug-author-box/index.php", 'option_name' => 'social_pug_author_box'),
91
+ array("dir_slug" => "google-analytics-for-wordpress/googleanalytics.php", 'option_name' => 'monsterinsights-getting-started'),
92
+ array("dir_slug" => "onesignal-free-web-push-notifications/onesignal.php", 'option_name' => 'onesignal-push'),
93
  );
 
94
  $optimization_plugins = array(
95
  array('dir_slug' => 'litespeed-cache/litespeed-cache.php', 'option_name' => 'lscache-settings'),
96
  array('dir_slug' => 'w3-total-cache/w3-total-cache.php', 'option_name' => 'w3tc_dashboard'),
131
  array('dir_slug' => 'flying-pages/flying-pages.php', 'option_name' => 'flying-pages'),
132
  array('dir_slug' => 'speed-booster-pack/speed-booster-pack.php', 'option_name' => 'sbp-options'),
133
  array('dir_slug' => 'baqend/baqend.php', 'option_name' => 'baqend'),
134
+ array('dir_slug' => 'wp-smushit/wp-smush.php', 'option_name' => 'smush'),
135
+ array('dir_slug' => 'varnish-http-purge/varnish-http-purge.php', 'option_name' => 'varnish-page'),
136
+ array('dir_slug' => 'varnish-http-purge/varnish-http-purge.php', 'option_name' => 'varnish-check-caching'),
137
+
138
  );
139
  $gdpr_plugins = array(
140
  array('dir_slug' => 'cookie-law-info/cookie-law-info.php', 'option_name' => 'cookie-law-info'),
156
  array('dir_slug' => 'gdpr-cookies-pro/gdpr-cookies-pro.php', 'option_name' => 'gdpr-cookies-pro'),
157
  array('dir_slug' => 'seahorse-gdpr-data-manager/seahorse-gdpr-data-manager.php', 'option_name' => 'seahorse_gdpr_data_manager_plugin'),
158
  array('dir_slug' => 'dsgvo-tools-kommentar-ip-entfernen/main.php', 'option_name' => 'fhw_dsgvo_kommentar_options'),
159
+ array('dir_slug' => 'gdpr-tools/gdpr-tools.php', 'option_name' => 'gdpr-tools-settings'),
160
+ array('dir_slug' => 'gdpr-cookie-compliance/moove-gdpr.php', 'option_name' => 'moove-gdpr'),
161
+ array('dir_slug' => 'cookie-notice/cookie-notice.php', 'option_name' => 'cookie-notice'),
162
+ array('dir_slug' => 'tarteaucitronjs/tarteaucitron.php', 'option_name' => 'tarteaucitronjs'),
163
+ array('dir_slug' => 'wp-gdpr-compliance/wp-gdpr-compliance.php', 'option_name' => 'wp_gdpr_compliance'),
164
+ array('dir_slug' => 'iubenda_cookie_solution/iubenda_cookie_solution.php', 'option_name' => 'iubenda'),
165
+ array('dir_slug' => 'easy-wp-cookie-popup/easy-wp-cookie-popup.php', 'option_name' => 'cookii_settings'),
166
+ array('dir_slug' => 'gdpr-compliance-cookie-consent/gdpr-compliance-cookie-consent.php', 'option_name' => 'gdpr-compliance-cookie-consent'),
167
+ array('dir_slug' => 'yetience-plugin/yetience-plugin.php', 'option_name' => 'yetience-yeloni'),
168
+ array('dir_slug' => 'cwis-antivirus-malware-detected/cwis-antivirus-malware-detected.php', 'option_name' => 'cwis-scanner'),
169
+ array('dir_slug' => 'gdpr-compliance-by-supsystic/grs.php', 'option_name' => 'gdpr-compliance-by-supsystic'),
170
+ array('dir_slug' => 'auto-terms-of-service-privacy-policy/auto-terms-of-service-privacy-policy.php', 'option_name' => 'wpautoterms_page'),
171
+ array('dir_slug' => 'google-analytics-opt-out/google-analytics-opt-out.php', 'option_name' => 'gaoo-options'),
172
+ array('dir_slug' => 'surbma-gdpr-proof-google-analytics/surbma-gdpr-proof-google-analytics.php', 'option_name' => 'surbma-gpga-menu'),
173
+ array('dir_slug' => 'bp-gdpr/buddypress-gdpr.php', 'option_name' => 'buddyboss-bp-gdpr'),
174
+ array('dir_slug' => 'beautiful-and-responsive-cookie-consent/nsc_bar-cookie-consent.php', 'option_name' => 'nsc_bar-cookie-consent'),
175
+ array('dir_slug' => 'simple-gdpr/simple-gdpr.php', 'option_name' => 'SGDPR_settings'),
176
+ array('dir_slug' => 'wonderpush-web-push-notifications/wonderpush.php', 'option_name' => 'wonderpush'),
177
+ array('dir_slug' => 'ns-gdpr/ns-gdpr.php', 'option_name' => 'ns-gdpr'),
178
  );
179
  $google_analytics = array(
180
  array('dir_slug' => 'really-simple-ssl/rlrsssl-really-simple-ssl.php', 'option_name' => 'rlrsssl_really_simple_ssl'),
190
  );
191
  function sfsi_check_on_plugin_page($dir_slug, $option_name, $site_url = "")
192
  {
193
+ if (isset($_GET["page"])) {
194
+ return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["page"]) && ($_GET['page'] == $option_name);
195
+ } else if (isset($_GET["post_type"])) {
196
+ return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["post_type"]) && ($_GET['post_type'] == $option_name);
197
+ }
198
  }
199
+
200
  function sfsi_has_gallery_plugin($gallery_plugins)
201
  {
202
  foreach ($gallery_plugins as $key => $gallery_plugin) {
283
  // var_dump($banner);
284
  if (
285
  ($banner['is_active'] == "yes") &&
286
+ $time >= ($banner['timestamp']) && (!sfsi_check_not_show_other_plugin_settings_page($gallery_plugins, $optimization_plugins, $sharecount_plugins, $google_analytics, $gdpr_plugins))
 
287
  ) {
288
  return true;
289
  }
290
  return false;
291
+ }
292
+
293
+ if (!function_exists('sfsi_get_plugin')) {
294
+ function sfsi_get_plugin($dir_slug)
295
+ {
296
+ // if(is_plugin_active($dir_slug)){
297
+ $plugins = get_plugins();
298
+ if (isset($plugins[$dir_slug])) {
299
+ return $plugins[$dir_slug];
300
+ } else {
301
+ return null;
302
+ }
303
+ // }
304
+ }
305
+ }