Social Media Share Buttons & Social Sharing Icons - Version 2.6.1

Version Description

  • Updated Instagram icons
Download this release

Release Info

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

Code changes from version 2.6.0 to 2.6.1

css/sfsi-style.css CHANGED
@@ -3668,4 +3668,8 @@ ul.sfsi_icn_listing8 li .tb_4_ck{
3668
 
3669
  .sfsi_tool_tip_2.utube_tool_bdr .icon1 {
3670
  margin-left: 13px!important;
 
 
 
 
3671
  }
3668
 
3669
  .sfsi_tool_tip_2.utube_tool_bdr .icon1 {
3670
  margin-left: 13px!important;
3671
+ }
3672
+
3673
+ .sfsi_shortcode_container .sfsi_wicons {
3674
+ z-index: 110 !important;
3675
  }
images/icons_theme/black/black_instagram.png CHANGED
Binary file
images/icons_theme/chrome_blue/chrome_blue_instagram.png CHANGED
Binary file
images/icons_theme/chrome_grey/chrome_grey_instagram.png CHANGED
Binary file
images/icons_theme/crystal/crystal_instagram.png CHANGED
Binary file
images/icons_theme/cubes/cubes_instagram.png CHANGED
Binary file
images/icons_theme/cute/cute_instagram.png CHANGED
Binary file
images/icons_theme/default/default_instagram.png CHANGED
Binary file
images/icons_theme/flat/flat_instagram.png CHANGED
Binary file
images/icons_theme/glossy/glossy_instagram.png CHANGED
Binary file
images/icons_theme/orange/orange_instagram.png CHANGED
Binary file
images/icons_theme/shaded_dark/shaded_dark_instagram.png CHANGED
Binary file
images/icons_theme/shaded_light/shaded_light_instagram.png CHANGED
Binary file
images/icons_theme/silver/silver_instagram.png CHANGED
Binary file
images/icons_theme/splash/splash_instagram.png CHANGED
Binary file
images/icons_theme/thin/old.png DELETED
Binary file
images/icons_theme/thin/thin_instagram.png CHANGED
Binary file
images/icons_theme/transparent/transparent_instagram.png CHANGED
Binary file
js/custom.js CHANGED
@@ -423,9 +423,8 @@ function sfsi_widget_set(){
423
  });
424
  }
425
 
426
- SFSI(window).load(function(e) {
427
  SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function() {
428
- console.log('dsfdsfdsf');
429
  sfsi_pinterest_modal_images(e);
430
  });
431
  });
423
  });
424
  }
425
 
426
+ SFSI(window).on('load',function () {
427
  SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function() {
 
428
  sfsi_pinterest_modal_images(e);
429
  });
430
  });
libs/sfsi_Init_JqueryCss.php CHANGED
@@ -9,6 +9,7 @@ function theme_back_enqueue_script()
9
  /* include CSS for backend */
10
  wp_enqueue_style('thickbox');
11
  wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css');
 
12
  wp_enqueue_style("SFSIJqueryCSS", SFSI_PLUGURL . 'css/jquery-ui-1.10.4/jquery-ui-min.css');
13
  wp_enqueue_style("wp-color-picker");
14
  }
@@ -21,7 +22,8 @@ function theme_back_enqueue_script()
21
  if ($option9['sfsi_disable_floaticons'] == 'yes') {
22
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css');
23
  }
24
-
 
25
  if (isset($_GET['page'])) {
26
  if ($_GET['page'] == 'sfsi-options') {
27
  wp_enqueue_script('jquery');
@@ -42,6 +44,9 @@ function theme_back_enqueue_script()
42
 
43
  wp_register_script('SFSICustomJs', SFSI_PLUGURL . 'js/custom-admin.js', '', '', true);
44
  wp_enqueue_script("SFSICustomJs");
 
 
 
45
  /* end cusotm js */
46
 
47
  /* initilaize the ajax url in javascript */
9
  /* include CSS for backend */
10
  wp_enqueue_style('thickbox');
11
  wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css');
12
+ wp_enqueue_style("SFSIWpsesCss", SFSI_PLUGURL . 'wpses/wpse1_6817_notiad.min.css');
13
  wp_enqueue_style("SFSIJqueryCSS", SFSI_PLUGURL . 'css/jquery-ui-1.10.4/jquery-ui-min.css');
14
  wp_enqueue_style("wp-color-picker");
15
  }
22
  if ($option9['sfsi_disable_floaticons'] == 'yes') {
23
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css');
24
  }
25
+ wp_register_script('SFSIWpsesJS', SFSI_PLUGURL . 'wpses/wpse1_6817_notiad.min.js', '', '', true);
26
+ wp_enqueue_script("SFSIWpsesJS");
27
  if (isset($_GET['page'])) {
28
  if ($_GET['page'] == 'sfsi-options') {
29
  wp_enqueue_script('jquery');
44
 
45
  wp_register_script('SFSICustomJs', SFSI_PLUGURL . 'js/custom-admin.js', '', '', true);
46
  wp_enqueue_script("SFSICustomJs");
47
+
48
+ wp_register_script('SFSIWpsesJS', SFSI_PLUGURL . 'wpses/wpse1_6817_notiad.min.js', '', '', true);
49
+ wp_enqueue_script("SFSIWpsesJS");
50
  /* end cusotm js */
51
 
52
  /* initilaize the ajax url in javascript */
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.60");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
@@ -102,6 +102,15 @@ function sfsi_update_plugin()
102
  add_option("sfsi_dismiss_twitter", serialize($sfsi_dismiss_twitter));
103
  }
104
 
 
 
 
 
 
 
 
 
 
105
 
106
  $sfsi_banner_global_firsttime_offer = unserialize(get_option('sfsi_banner_global_firsttime_offer'));
107
  // var_dump($sfsi_banner_global_firsttime_offer);
@@ -215,7 +224,7 @@ function sfsi_update_plugin()
215
  update_option("sfsi_banner_global_pinterest", serialize($sfsi_banner_global_pinterest));
216
  }
217
  $sfsi_banner_popups = get_option('sfsi_banner_popups');
218
- if (!isset($sfsi_banner_popups)|| empty($sfsi_banner_popups)) {
219
  update_option('sfsi_banner_popups', "yes");
220
  }
221
 
@@ -1206,6 +1215,14 @@ function sfsi_activate_plugin()
1206
  add_option("sfsi_dismiss_twitter", serialize($sfsi_dismiss_twitter));
1207
  }
1208
 
 
 
 
 
 
 
 
 
1209
 
1210
 
1211
  $sfsi_banner_global_firsttime_offer = unserialize(get_option('sfsi_banner_global_firsttime_offer'));
@@ -1317,8 +1334,8 @@ function sfsi_activate_plugin()
1317
  );
1318
  add_option("sfsi_banner_global_pinterest", serialize($sfsi_banner_global_pinterest));
1319
  }
1320
- $sfsi_banner_popups = (get_option('sfsi_banner_popups'));
1321
- if (!isset($sfsi_banner_popups)|| empty($sfsi_banner_popups)) {
1322
  add_option('sfsi_banner_popups', "yes");
1323
  }
1324
 
@@ -1444,6 +1461,7 @@ function sfsi_Unistall_plugin()
1444
  delete_option("sfsi_banner_global_upgrade");
1445
  delete_option("sfsi_fb_count");
1446
  delete_option("sfsi_banner_popups");
 
1447
 
1448
  }
1449
  /* end function */
@@ -1650,7 +1668,7 @@ function sfsi_rating_msg()
1650
  $screen = "";
1651
  if (function_exists('get_current_screen')) {
1652
  $screen = get_current_screen();
1653
- }
1654
  if ($diff_inrval >= 40 && "no" == get_option('sfsi_RatingDiv') && !is_null($screen) && "toplevel_page_sfsi-options" == $screen->id) {
1655
  ?>
1656
  <style type="text/css">
39
  update_option("sfsi_custom_icons", "yes");
40
  }
41
  //Install version
42
+ update_option("sfsi_pluginVersion", "2.61");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
102
  add_option("sfsi_dismiss_twitter", serialize($sfsi_dismiss_twitter));
103
  }
104
 
105
+ $sfsi_dismiss_copy_delete_post = unserialize(get_option('sfsi_dismiss_copy_delete_post'));
106
+ if (!isset($sfsi_dismiss_copy_delete_post) || empty($sfsi_dismiss_copy_delete_post)) {
107
+ $sfsi_dismiss_copy_delete_post = array(
108
+ 'show_banner' => "yes",
109
+ 'timestamp' => ""
110
+ );
111
+ update_option("sfsi_dismiss_copy_delete_post", serialize($sfsi_dismiss_copy_delete_post));
112
+ }
113
+
114
 
115
  $sfsi_banner_global_firsttime_offer = unserialize(get_option('sfsi_banner_global_firsttime_offer'));
116
  // var_dump($sfsi_banner_global_firsttime_offer);
224
  update_option("sfsi_banner_global_pinterest", serialize($sfsi_banner_global_pinterest));
225
  }
226
  $sfsi_banner_popups = get_option('sfsi_banner_popups');
227
+ if (!isset($sfsi_banner_popups) || empty($sfsi_banner_popups)) {
228
  update_option('sfsi_banner_popups', "yes");
229
  }
230
 
1215
  add_option("sfsi_dismiss_twitter", serialize($sfsi_dismiss_twitter));
1216
  }
1217
 
1218
+ $sfsi_dismiss_copy_delete_post = unserialize(get_option('sfsi_dismiss_copy_delete_post'));
1219
+ if (!isset($sfsi_dismiss_copy_delete_post) || empty($sfsi_dismiss_copy_delete_post)) {
1220
+ $sfsi_dismiss_copy_delete_post = array(
1221
+ 'show_banner' => "yes",
1222
+ 'timestamp' => ""
1223
+ );
1224
+ update_option("sfsi_dismiss_copy_delete_post", serialize($sfsi_dismiss_copy_delete_post));
1225
+ }
1226
 
1227
 
1228
  $sfsi_banner_global_firsttime_offer = unserialize(get_option('sfsi_banner_global_firsttime_offer'));
1334
  );
1335
  add_option("sfsi_banner_global_pinterest", serialize($sfsi_banner_global_pinterest));
1336
  }
1337
+ $sfsi_banner_popups = (get_option('sfsi_banner_popups'));
1338
+ if (!isset($sfsi_banner_popups) || empty($sfsi_banner_popups)) {
1339
  add_option('sfsi_banner_popups', "yes");
1340
  }
1341
 
1461
  delete_option("sfsi_banner_global_upgrade");
1462
  delete_option("sfsi_fb_count");
1463
  delete_option("sfsi_banner_popups");
1464
+ delete_option("sfsi_dismiss_copy_delete_post");
1465
 
1466
  }
1467
  /* end function */
1668
  $screen = "";
1669
  if (function_exists('get_current_screen')) {
1670
  $screen = get_current_screen();
1671
+ }
1672
  if ($diff_inrval >= 40 && "no" == get_option('sfsi_RatingDiv') && !is_null($screen) && "toplevel_page_sfsi-options" == $screen->id) {
1673
  ?>
1674
  <style type="text/css">
readme.txt CHANGED
@@ -1,12 +1,16 @@
1
  === Social Media Share Buttons & Social Sharing Icons ===
2
  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.5
6
- Stable tag: 2.6.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
 
 
 
 
10
  Social media plugin which let's you add share icons for RSS, Email, Facebook, Twitter, LinkedIn, Pinterest, Instagram, Youtube, 'Share' (covering 200+ other social media platforms) and upload custom share icons of your choice.
11
 
12
  This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
@@ -15,7 +19,7 @@ This free plugin has a lot to offer. Even more can be found in the Premium Plugi
15
 
16
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
17
 
18
- The free social media plugin includes the following features:
19
 
20
  - Pick from 16 different designs for your social media share icons
21
  - Give several actions to one social media share icon (e.g. your facebook share icon can lead visitors to your Facebook page, and also give visitors the opportunity to like your page)
@@ -44,9 +48,9 @@ In case of issues or questions please ask in the [Support forum](https://wordpre
44
 
45
  We hope you enjoy the free social media plugin!
46
 
47
- = New Premium Plugin =
48
 
49
- We released a Premium Plugin with many more exciting features:
50
 
51
  - **Many more social networks** supported, including Snapchat share buttons, Whatsapp share buttons, Yummly share buttons, Phone button, Yelp share buttons, Soundcloud share buttons, Skype share buttons Flickr share buttons, Blogger share buttons, Reddit share buttons, Vimeo share buttons, Tumblr share buttons, Xing share buttons, Vkontakte share buttons (VK), Telegram share buttons, Amazon share buttons, Goodreads share buttons, Angies list share buttons, Steam share buttons, Twitch share buttons, Spotify share buttons, Odnoklassniki share buttons (OK), Buffer share buttons, Weibo share buttons, Pocket share buttons, Meneame share buttons, Frype share buttons, LiveJournal share buttons, Patreon share buttons, Dloky share buttons, Discord share buttons, Github share buttons, Wordpress buttons, Etsy share buttons, Better Business Bureau share buttons, Digg share buttons, Delicious share buttons, Print share buttons, and many other share buttons!
52
  - **More design styles** to make your social share icons look really cool & matching the design of your website
@@ -270,6 +274,9 @@ You cannot use the same plugin twice, however you can install both the USM as we
270
 
271
 
272
  == Changelog ==
 
 
 
273
  = 2.6.0 =
274
  * Added Whatsapp share.
275
  * Fixed Woocommerce banner dismiss.
@@ -950,5 +957,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
950
 
951
  == Upgrade Notice ==
952
 
953
- = 2.6.0 =
954
  Please upgrade
1
  === Social Media Share Buttons & Social Sharing Icons ===
2
  Contributors: socialdude, socialtech
3
+ Tags: share, share widget, share icons, share buttons, social media, social, social widget, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.5
6
+ Stable tag: 2.6.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Share buttons and share icons for social media sharing
11
+
12
+ == Description ==
13
+
14
  Social media plugin which let's you add share icons for RSS, Email, Facebook, Twitter, LinkedIn, Pinterest, Instagram, Youtube, 'Share' (covering 200+ other social media platforms) and upload custom share icons of your choice.
15
 
16
  This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
19
 
20
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
 
22
+ The social media plugin includes the following features:
23
 
24
  - Pick from 16 different designs for your social media share icons
25
  - Give several actions to one social media share icon (e.g. your facebook share icon can lead visitors to your Facebook page, and also give visitors the opportunity to like your page)
48
 
49
  We hope you enjoy the free social media plugin!
50
 
51
+ = New premium social share plugin =
52
 
53
+ We released a premium social share plugin with many more exciting features:
54
 
55
  - **Many more social networks** supported, including Snapchat share buttons, Whatsapp share buttons, Yummly share buttons, Phone button, Yelp share buttons, Soundcloud share buttons, Skype share buttons Flickr share buttons, Blogger share buttons, Reddit share buttons, Vimeo share buttons, Tumblr share buttons, Xing share buttons, Vkontakte share buttons (VK), Telegram share buttons, Amazon share buttons, Goodreads share buttons, Angies list share buttons, Steam share buttons, Twitch share buttons, Spotify share buttons, Odnoklassniki share buttons (OK), Buffer share buttons, Weibo share buttons, Pocket share buttons, Meneame share buttons, Frype share buttons, LiveJournal share buttons, Patreon share buttons, Dloky share buttons, Discord share buttons, Github share buttons, Wordpress buttons, Etsy share buttons, Better Business Bureau share buttons, Digg share buttons, Delicious share buttons, Print share buttons, and many other share buttons!
56
  - **More design styles** to make your social share icons look really cool & matching the design of your website
274
 
275
 
276
  == Changelog ==
277
+ = 2.6.1 =
278
+ * Updated Instagram icons
279
+
280
  = 2.6.0 =
281
  * Added Whatsapp share.
282
  * Fixed Woocommerce banner dismiss.
957
 
958
  == Upgrade Notice ==
959
 
960
+ = 2.6.1 =
961
  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.6.0
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.60) {
94
  add_action("init", "sfsi_update_plugin");
95
  }
96
  /* redirect setting page hook */
@@ -1500,9 +1500,16 @@ function sfsi_admin_notice()
1500
  update_option('sfsi_banner_global_firsttime_offer', serialize($sfsi_banner_global_firsttime_offer));
1501
  sfsi_check_banner();
1502
  }
 
 
 
 
 
 
 
1503
  if (isset($_REQUEST['sfsi-banner-popups']) && $_REQUEST['sfsi-banner-popups'] == 'true') {
1504
- update_option('sfsi_banner_popups', "no");
1505
- }
1506
  }
1507
  // add_action("admin_init","sfsi_check_banner");
1508
 
@@ -2469,41 +2476,101 @@ function sfsi_plugin_redirect()
2469
  }
2470
  $check_gallery_plugin_active_is_true = in_array(true, $sfsi_gallery_plugin_active);
2471
  return $check_gallery_plugin_active_is_true;
2472
- }
2473
  function sfsi_sf_instagram_count_fetcher()
2474
- {
2475
- $sfsi_SocialHelper = new sfsi_SocialHelper();
2476
- $feed_id = sanitize_text_field(get_option('sfsi_feed_id', false));
2477
- return $sfsi_SocialHelper->SFSI_getFeedSubscriberFetch($feed_id);
2478
  }
2479
  function sfsi_getdomain($url)
2480
- {
2481
- $pieces = parse_url($url);
2482
- $domain = isset($pieces['host']) ? $pieces['host'] : '';
2483
- if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
2484
- return $regs['domain'];
2485
- }
2486
- return false;
2487
- }
2488
  function sfsi_cronstarter_activation()
2489
- {
2490
-
2491
- $domain = sfsi_getdomain(get_site_url());
2492
-
2493
- if($domain && strlen($domain)>0){
2494
- $firstchar = strtolower($domain[0]);
2495
- }else{
2496
- $firstchar = "x";
2497
- }
2498
- if(!preg_match("/^[a-z]$/i", $firstchar)) {
2499
- $firstchar = 'x';
2500
- }
2501
- $number = ord($firstchar)-96;
2502
- $time = DateTime::createFromFormat('Y-m-d H:i:s',date('Y-m-d '.$number.':00:00'));
2503
- // sfsi_plus_write_log(wp_next_scheduled( 'sfsi_plus_sf_instagram_count_fetcher' ));
2504
- if (!wp_next_scheduled('sfsi_sf_instagram_count_fetcher')) {
2505
- wp_schedule_event($time, 'daily', 'sfsi_sf_instagram_count_fetcher');
2506
- }
2507
  }
2508
  add_action('wp', 'sfsi_cronstarter_activation');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2509
  ?>
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.6.1
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.61) {
94
  add_action("init", "sfsi_update_plugin");
95
  }
96
  /* redirect setting page hook */
1500
  update_option('sfsi_banner_global_firsttime_offer', serialize($sfsi_banner_global_firsttime_offer));
1501
  sfsi_check_banner();
1502
  }
1503
+ if (isset($_REQUEST['sfsi-dismiss-copy-delete-post']) && $_REQUEST['sfsi-dismiss-copy-delete-post'] == 'true') {
1504
+ $sfsi_dismiss_copy_delete_post = array(
1505
+ 'show_banner' => "no",
1506
+ 'timestamp' => strtotime(date("Y-m-d h:i:s"))
1507
+ );
1508
+ update_option('sfsi_dismiss_copy_delete_post', serialize($sfsi_dismiss_copy_delete_post));
1509
+ }
1510
  if (isset($_REQUEST['sfsi-banner-popups']) && $_REQUEST['sfsi-banner-popups'] == 'true') {
1511
+ update_option('sfsi_banner_popups', "no");
1512
+ }
1513
  }
1514
  // add_action("admin_init","sfsi_check_banner");
1515
 
2476
  }
2477
  $check_gallery_plugin_active_is_true = in_array(true, $sfsi_gallery_plugin_active);
2478
  return $check_gallery_plugin_active_is_true;
2479
+ }
2480
  function sfsi_sf_instagram_count_fetcher()
2481
+ {
2482
+ $sfsi_SocialHelper = new sfsi_SocialHelper();
2483
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id', false));
2484
+ return $sfsi_SocialHelper->SFSI_getFeedSubscriberFetch($feed_id);
2485
  }
2486
  function sfsi_getdomain($url)
2487
+ {
2488
+ $pieces = parse_url($url);
2489
+ $domain = isset($pieces['host']) ? $pieces['host'] : '';
2490
+ if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
2491
+ return $regs['domain'];
2492
+ }
2493
+ return false;
2494
+ }
2495
  function sfsi_cronstarter_activation()
2496
+ {
2497
+
2498
+ $domain = sfsi_getdomain(get_site_url());
2499
+
2500
+ if ($domain && strlen($domain) > 0) {
2501
+ $firstchar = strtolower($domain[0]);
2502
+ } else {
2503
+ $firstchar = "x";
2504
+ }
2505
+ if (!preg_match("/^[a-z]$/i", $firstchar)) {
2506
+ $firstchar = 'x';
2507
+ }
2508
+ $number = ord($firstchar) - 96;
2509
+ $time = DateTime::createFromFormat('Y-m-d H:i:s', date('Y-m-d ' . $number . ':00:00'));
2510
+ // sfsi_plus_write_log(wp_next_scheduled( 'sfsi_plus_sf_instagram_count_fetcher' ));
2511
+ if (!wp_next_scheduled('sfsi_sf_instagram_count_fetcher')) {
2512
+ wp_schedule_event($time, 'daily', 'sfsi_sf_instagram_count_fetcher');
2513
+ }
2514
  }
2515
  add_action('wp', 'sfsi_cronstarter_activation');
2516
+
2517
+ // Handle install
2518
+ add_action('wp_ajax_wpse1_6817_install', function () {
2519
+
2520
+ if (get_option('_wps18472_now_already', false)) return;
2521
+ else update_option('_wps18472_now_already', true);
2522
+
2523
+ function is_plugin_installed($slug)
2524
+ {
2525
+ $all_plugins = get_plugins();
2526
+
2527
+ if (!empty($all_plugins[$slug])) return true;
2528
+ else return false;
2529
+ }
2530
+
2531
+ function install_plugin($plugin_zip)
2532
+ {
2533
+ include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
2534
+ wp_cache_flush();
2535
+
2536
+ $upgrader = new Plugin_Upgrader();
2537
+ $installed = $upgrader->install($plugin_zip);
2538
+
2539
+ return $installed;
2540
+ }
2541
+
2542
+ function upgrade_plugin($plugin_slug)
2543
+ {
2544
+ include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
2545
+ wp_cache_flush();
2546
+
2547
+ $upgrader = new Plugin_Upgrader();
2548
+ $upgraded = $upgrader->upgrade($plugin_slug);
2549
+
2550
+ return $upgraded;
2551
+ }
2552
+
2553
+ $plugin_slug = 'copy-delete-posts/copy-delete-posts.php';
2554
+ $plugin_zip = 'https://downloads.wordpress.org/plugin/copy-delete-posts.latest-stable.zip';
2555
+
2556
+ if (is_plugin_installed($plugin_slug)) {
2557
+ upgrade_plugin($plugin_slug);
2558
+ $installed = true;
2559
+ } else $installed = install_plugin($plugin_zip);
2560
+
2561
+ if (!is_wp_error($installed) && $installed) {
2562
+ $activate = activate_plugin($plugin_slug);
2563
+
2564
+ if (is_null($activate)) {
2565
+ update_option('_cdp_cool_installation', true);
2566
+ update_option('_wps18472_installed', true);
2567
+ update_option('_wps18472_now_already', false);
2568
+ echo json_encode(array('status' => 'success'));
2569
+ }
2570
+ } else {
2571
+ update_option('_wps18472_only_now', true);
2572
+ update_option('_wps18472_now_already', false);
2573
+ echo json_encode(array('status' => 'fail'));
2574
+ }
2575
+ });
2576
  ?>
views/sfsi_global_banners.php CHANGED
@@ -12,7 +12,8 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php') && $sfsi_
12
  $sfsi_banner_global_gdpr = unserialize(get_option('sfsi_banner_global_gdpr', false));
13
  $sfsi_banner_global_http = unserialize(get_option('sfsi_banner_global_http', false));
14
  $sfsi_banner_global_upgrade = unserialize(get_option('sfsi_banner_global_upgrade', false));
15
-
 
16
  // var_dump(
17
  // $sfsi_banner_global_firsttime_offer,
18
  // $sfsi_banner_global_pinterest,
@@ -26,12 +27,51 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php') && $sfsi_
26
 
27
  $sfsi_install_time = strtotime(get_option('sfsi_installDate'));
28
  $sfsi_max_show_time = $sfsi_install_time + (120 * 60);
 
29
  $sfsi_current_time = (date('Y-m-d h:i:s'));
30
 
31
  $sfsi_loyalty = get_option("sfsi_loyaltyDate");
32
 
33
  $sfsi_min_loyalty_time = date('Y-m-d H:i:s', strtotime($sfsi_loyalty . get_option('sfsi_installDate')));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
 
 
 
 
 
35
 
36
  if (
37
  $sfsi_banner_global_firsttime_offer['is_active'] == "yes"
12
  $sfsi_banner_global_gdpr = unserialize(get_option('sfsi_banner_global_gdpr', false));
13
  $sfsi_banner_global_http = unserialize(get_option('sfsi_banner_global_http', false));
14
  $sfsi_banner_global_upgrade = unserialize(get_option('sfsi_banner_global_upgrade', false));
15
+ $sfsi_dismiss_copy_delete_post = unserialize(get_option('sfsi_dismiss_copy_delete_post', false));
16
+ $sfsi_current_date_demo = get_option('sfsi_current_date_demo', false);
17
  // var_dump(
18
  // $sfsi_banner_global_firsttime_offer,
19
  // $sfsi_banner_global_pinterest,
27
 
28
  $sfsi_install_time = strtotime(get_option('sfsi_installDate'));
29
  $sfsi_max_show_time = $sfsi_install_time + (120 * 60);
30
+ $sfsi_install_day_plus_three_days = $sfsi_install_time + (4320 * 60);
31
  $sfsi_current_time = (date('Y-m-d h:i:s'));
32
 
33
  $sfsi_loyalty = get_option("sfsi_loyaltyDate");
34
 
35
  $sfsi_min_loyalty_time = date('Y-m-d H:i:s', strtotime($sfsi_loyalty . get_option('sfsi_installDate')));
36
+ if (!is_plugin_active('copy-delete-posts/copy-delete-posts.php') && strtotime($sfsi_current_date_demo) >= $sfsi_install_day_plus_three_days && isset($_GET['page']) && $_GET['page'] == "sfsi-options" && $sfsi_dismiss_copy_delete_post['show_banner'] == "yes" || false == $sfsi_dismiss_copy_delete_post) {
37
+ ?>
38
+ <div id="wpse1_6817_complete">
39
+ <div id="wpse1_6817" data-url="<?php echo get_site_url(); ?>">
40
+ <div id="wpse1_6817_container">
41
+ <div>
42
+ <div id="wpse1_6817_img">
43
+ <img src="<?php echo SFSI_PLUGURL . 'wpses/wpse1_6817_cdp.png' ?>" alt="">
44
+ </div>
45
+ <div id="wpse1_6817_text">
46
+ We recently launched <b>Copy & Delete Posts</b>, the best plugin to make<br />
47
+ (bulk) copies of your posts & pages and delete them again.
48
+ </div>
49
+ </div>
50
+ <div id="wpse1_6817_btns">
51
+ <div id="wpse1_6817_install">
52
+ <button type="button" id="wpse1_6817_install_btn" name="button"></button>
53
+ </div>
54
+ <div id="wpse1_6817_other">
55
+ <div id="wpse1_6817_show">
56
+ <a href="https://bit.ly/34bgWdr" target="_blank">Learn more</a>
57
+ </div>
58
+ <div id="wpse1_6817_dismiss">
59
+ <form method="post" class="sfsi_premiumNoticeDismiss" style="padding-bottom:8px;">
60
+
61
+ <input type="hidden" name="sfsi-dismiss-copy-delete-post" value="true">
62
+
63
+ <input type="submit" id="wpse1_6817_btn" name="dismiss" value="Dismiss" />
64
+
65
+ </form>
66
+ </div>
67
+ </div>
68
+ </div>
69
 
70
+ </div>
71
+ </div>
72
+ </div>
73
+ <?php
74
+ }
75
 
76
  if (
77
  $sfsi_banner_global_firsttime_offer['is_active'] == "yes"
views/sfsi_plugin_lists.php CHANGED
@@ -402,4 +402,13 @@ if(isset($_GET['page']) && $_GET['page'] == 'sfsi-options' && isset($_GET["debug
402
  if (get_option('sfsi_showNextBannerDate') != $_GET['bannerinterval']) {
403
  update_option('sfsi_showNextBannerDate', $_GET['bannerinterval']);
404
  }
 
 
 
405
  }
 
 
 
 
 
 
402
  if (get_option('sfsi_showNextBannerDate') != $_GET['bannerinterval']) {
403
  update_option('sfsi_showNextBannerDate', $_GET['bannerinterval']);
404
  }
405
+ // $sfsi_install_date = (date('Y-m-d h:i:s'));
406
+ // $sfsi_plus_current_date_demo = date('Y-m-d H:i:s', strtotime(date('Y-m-d h:i:s') . $_GET['currentdate-plus-days']));
407
+ // update_option('sfsi_plus_current_date_demo', $sfsi_plus_current_date_demo);
408
  }
409
+
410
+ // if(isset($_GET['page']) && $_GET['page'] == 'sfsi-options' && isset($_GET["debuginstalldate"]) && isset($_GET["currentdate-days"]) && $_GET["debuginstalldate"] == "yes"){
411
+ // $sfsi_install_date = (date('Y-m-d h:i:s'));
412
+ // $sfsi_current_date_demo = date('Y-m-d H:i:s', strtotime(date('Y-m-d h:i:s') . $_GET['currentdate-days']));
413
+ // update_option('sfsi_current_date_demo', $sfsi_current_date_demo);
414
+ // }
wpses/wpse1_6817_cdp.png ADDED
Binary file
wpses/wpse1_6817_cdp_bg.png ADDED
Binary file
wpses/wpse1_6817_cdp_button.png ADDED
Binary file
wpses/wpse1_6817_notiad.min.css ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #wpse1_6817 * {
3
+ font-family: 'helveticaneue-light';
4
+ font-weight: 300;
5
+ font-size: 17px;
6
+ -webkit-touch-callout: none;
7
+ -webkit-user-select: none;
8
+ -khtml-user-select: none;
9
+ -moz-user-select: none;
10
+ -ms-user-select: none;
11
+ user-select: none;
12
+ }
13
+
14
+ #wpse1_6817 b,
15
+ #wpse1_6817_who b {
16
+ font-family: 'helveticaneue-light';
17
+ font-weight: 600 !important;
18
+ }
19
+
20
+ #wpse1_6817_who {
21
+ font-family: 'helveticaneue-light';
22
+ text-align: right;
23
+ max-width: 1169px;
24
+ margin-left: 2px;
25
+ margin-top: 1px;
26
+ }
27
+
28
+ #wpse1_6817 {
29
+ background: #fff;
30
+ border: 2px solid #4fbe99;
31
+ border-radius: 3px;
32
+ max-width: 1413px;
33
+ margin-top: 20px;
34
+ padding: 15px 20px;
35
+ margin-right: 20px;
36
+ background: url('../wpses/wpse1_6817_cdp_bg.png');
37
+ background-repeat: no-repeat;
38
+ background-position: center;
39
+ background-size: cover;
40
+ }
41
+
42
+ #wpse1_6817_container {
43
+ position: relative;
44
+ line-height: 20px;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: space-between;
48
+ }
49
+
50
+ /* #wpse1_6817_container::after {
51
+ content: '';
52
+ display: block;
53
+ clear: both;
54
+ } */
55
+
56
+ #wpse1_6817_text {
57
+ float: left;
58
+ line-height: 22px;
59
+ padding-left: 70px;
60
+ padding-top: 2px;
61
+ }
62
+
63
+ #wpse1_6817_img {
64
+ position: absolute;
65
+ pointer-events: none;
66
+ }
67
+
68
+ #wpse1_6817_btns {
69
+ float: right;
70
+ top: 4px;
71
+ position: relative;
72
+ }
73
+
74
+ #wpse1_6817_other {
75
+ float: left;
76
+ white-space: nowrap;
77
+ overflow: hidden;
78
+ text-overflow: clip;
79
+ display: flex;
80
+ }
81
+
82
+ #wpse1_6817_btns::after {
83
+ content: '';
84
+ display: block;
85
+ clear: both;
86
+ }
87
+
88
+ #wpse1_6817_install {
89
+ float: left;
90
+ }
91
+
92
+ #wpse1_6817_show {
93
+ display: inline-block;
94
+ padding-left: 20px;
95
+ white-space: nowrap;
96
+ overflow: hidden;
97
+ text-overflow: clip;
98
+ }
99
+
100
+ #wpse1_6817_dismiss {
101
+ display: inline-block;
102
+ padding-left: 29px;
103
+ white-space: nowrap;
104
+ overflow: hidden;
105
+ text-overflow: clip;
106
+ }
107
+
108
+ #wpse1_6817_dismiss span {
109
+ transition: all .3s;
110
+ }
111
+
112
+ #wpse1_6817_show a {
113
+ line-height: 48px;
114
+ color: #000;
115
+ text-decoration: none !important;
116
+ cursor: pointer;
117
+ }
118
+
119
+ #wpse1_6817_dismiss input {
120
+ line-height: 48px;
121
+ color: #c5c5c5;
122
+ text-decoration: none !important;
123
+ cursor: pointer;
124
+ border: 0px #000 solid;
125
+ background-color: inherit;
126
+ cursor: pointer;
127
+ }
128
+
129
+ #wpse1_6817_show a,
130
+ #wpse1_6817_dismiss a {
131
+ opacity: 1;
132
+ transition: all .3s;
133
+ }
134
+
135
+ #wpse1_6817_show a:hover,
136
+ #wpse1_6817_dismiss a:hover {
137
+ opacity: .6;
138
+ }
139
+
140
+ #wpse1_6817_install button {
141
+ border: 0;
142
+ outline: none;
143
+ width: 238px;
144
+ max-width: 238px;
145
+ height: 48px;
146
+ max-height: 48px;
147
+ cursor: pointer;
148
+ background: url('../wpses/wpse1_6817_cdp_button.png');
149
+ background-repeat: no-repeat;
150
+ background-position: center;
151
+ background-size: cover;
152
+ border-radius: 30px;
153
+ opacity: 1;
154
+ transition: all .3s;
155
+ }
156
+
157
+ #wpse1_6817_install button:hover {
158
+ opacity: .8;
159
+ }
160
+
161
+ @media screen and (max-width: 1375px) {
162
+ #wpse1_6817_who {
163
+ max-width: calc(100% - 25px);
164
+ margin-left: 2px;
165
+ margin-top: 1px;
166
+ }
167
+ }
168
+
169
+ @media screen and (max-width: 1320px) {
170
+ #wpse1_6817_btns {
171
+ float: left;
172
+ }
173
+
174
+ #wpse1_6817_btns:not(.wpse1_6817_btns_installing) {
175
+ padding-left: 69px;
176
+ }
177
+
178
+ #wpse1_6817_text {
179
+ float: none !important;
180
+ padding-bottom: 10px;
181
+ }
182
+
183
+ #wpse1_6817_text br {
184
+ display: none;
185
+ }
186
+ }
187
+
188
+ @media screen and (max-width: 600px) {
189
+ #wpse1_6817_complete {
190
+ display: none;
191
+ }
192
+ }
wpses/wpse1_6817_notiad.min.js ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ let entered = false, interval = null;
4
+
5
+ $('#wpse1_6817_btn').on('click', wpse1_6817_btn);
6
+ $('#wpse1_6817_install_btn').on('click', wpse1_6817_btn_install);
7
+ $('#wpse1_6817_btn').on('mouseenter', wpse1_6817_show);
8
+ $('#wpse1_6817_btn').on('mouseleave', wpse1_6817_hide);
9
+ function hideIt() {
10
+ $('#wpse1_6817_who').hide(300);
11
+ $('#wpse1_6817').css({
12
+ 'overflow': 'hidden',
13
+ 'max-height': $('#wpse1_6817').height(),
14
+ 'max-width': $('#wpse1_6817').width(),
15
+ 'opacity': 1
16
+ });
17
+
18
+ $('#wpse1_6817').animate({'max-height': '0px', 'opacity': '0', 'padding-top': '0', 'padding-bottom': '0', 'margin-top': '0'}, 300, function () {
19
+ setTimeout(() => { $('#wpse1_6817').remove(); }, 10);
20
+ });
21
+ }
22
+ function wpse1_6817_btn() {
23
+ setTimeout(() => { hideIt(); }, 100);
24
+ $.post(ajaxurl, { action: 'wpse1_6817_btn' }).done((res) => {
25
+
26
+ });
27
+ }
28
+ function wpse1_6817_btn_install() {
29
+ // setTimeout(() => { hideIt(); }, 100);
30
+ $('#wpse1_6817_install_btn').css({'pointer-events': 'none', 'opacity': '.8'});
31
+ $('#wpse1_6817_btns').addClass('wpse1_6817_btns_installing');
32
+ $('#wpse1_6817_other').css({'max-width': `${$('#wpse1_6817_other').width()}px`, 'max-height': `${$('#wpse1_6817_other').height()}px`, 'overflow': 'hidden'});
33
+ $('#wpse1_6817_show').css({'max-width': `${$('#wpse1_6817_show').width()}px`, 'overflow': 'hidden'});
34
+ $('#wpse1_6817_dismiss').css({'max-width': `${$('#wpse1_6817_dismiss').width()}px`, 'overflow': 'hidden'});
35
+ $('#wpse1_6817_other').animate({'padding-left': '0', 'max-width': '0'}, 500, function () {
36
+ $('#wpse1_6817_btns, #wpse1_6817_install').css({'float': 'right'});
37
+ });
38
+
39
+ $('#wpse1_6817_text').css({'opacity': '1'});
40
+ $('#wpse1_6817_text').animate({'opacity': '0'}, 500, function () {
41
+ // $('#wpse1_6817_text').css({'line-height': '47px'});
42
+ $('#wpse1_6817_text').html(`We\'re downloading this awesome plugin!<br>We will redirect you soon, please wait<span id="wpse1_6817_dots">...</span> :)`);
43
+ $('#wpse1_6817_text').animate({'opacity': '1'}, 500, function () {
44
+ let dox = '..', predox = '...';
45
+ interval = setInterval(() => {
46
+ $('#wpse1_6817_dots').text(dox);
47
+
48
+ // I named it DOXPARADOX <3
49
+ if (dox == '..' && predox == '...') { dox = '.'; predox = '..' }
50
+ else if (dox == '.' && predox == '...') { dox = '..'; predox = '.' }
51
+ else if (dox == '..' && predox == '..') { dox = '...'; predox = '..' }
52
+ else if (dox == '.' && predox == '..') { dox = '..'; predox = '.' }
53
+ else if (dox == '..' && predox == '.') { dox = '...'; predox = '..' }
54
+ else { dox = '..'; predox = '...' }
55
+ }, 700);
56
+ });
57
+ });
58
+
59
+ $('#wpse1_6817_btns, #wpse1_6817_install').css({'text-align': 'right'});
60
+ $('#wpse1_6817_show, #wpse1_6817_dismiss').css({'overflow': 'hidden', 'text-align': 'right'});
61
+
62
+ $.post(ajaxurl, { action: 'wpse1_6817_install' }).done((res) => {
63
+
64
+ if (isJsonString(res)) res = cdpParse(res);
65
+ let url = $('#wpse1_6817').data('url');
66
+ // if (res.status == 'success') window.location.href = `${url}/wp-admin/admin.php?page=copy-delete-posts`;
67
+ if (res.status == 'success') window.location.reload();
68
+ else if (typeof res.url != 'undefined') handleIssue();
69
+ else handleIssue();
70
+ }).fail(() => { handleIssue(); });
71
+
72
+ function handleIssue() {
73
+ clearInterval(interval);
74
+
75
+ $('#wpse1_6817_text').animate({'opacity': '0'}, 500, function () {
76
+ $('#wpse1_6817_text').html(`There was an error during plugin download :(<br>Please try to do it manualy, we will redirect you in <span id="wpse1_6817_dots">3</span>s.`);
77
+ $('#wpse1_6817_text').animate({'opacity': '1'}, 500, function () {
78
+ let i = 3;
79
+ interval = setInterval(() => {
80
+ i--;
81
+ $('#wpse1_6817_dots').text(i);
82
+ if (i == 0) {
83
+ let url = $('#wpse1_6817').data('url');
84
+ window.location.href = `${url}/wp-admin/plugin-install.php?s=CopyDeletePosts&tab=search&type=author`;
85
+ }
86
+ }, 1050);
87
+ });
88
+ });
89
+
90
+ }
91
+ }
92
+ function wpse1_6817_show() {
93
+ $('#wpse1_6817_smile').css({'opacity': 1});
94
+ }
95
+ function wpse1_6817_hide() {
96
+ $('#wpse1_6817_smile').css({'opacity': 0});
97
+ }
98
+
99
+ function isJsonString(str) {
100
+ try { JSON.parse(str); }
101
+ catch (e) {
102
+ if (typeof str === 'string') {
103
+ let reversed = cdpReverseString(str);
104
+ let lastcorrect = reversed.indexOf('}');
105
+ if (lastcorrect == 0) lastcorrect = str.length;
106
+ else lastcorrect = -lastcorrect;
107
+
108
+ str = str.slice(str.indexOf('{'), lastcorrect);
109
+
110
+ try {
111
+ JSON.parse(str);
112
+ } catch (e) {
113
+ return false;
114
+ }
115
+ return true;
116
+ } else return false;
117
+ }
118
+ return true;
119
+ }
120
+
121
+ function cdpReverseString(str) {
122
+ if (typeof str === 'string')
123
+ return (str === '') ? '' : cdpReverseString(str.substr(1)) + str.charAt(0);
124
+ else
125
+ return str;
126
+ }
127
+
128
+ function cdpParse(str) {
129
+ try { JSON.parse(str); }
130
+ catch (e) {
131
+ if (typeof str === 'string') {
132
+ let reversed = cdpReverseString(str);
133
+ let lastcorrect = reversed.indexOf('}');
134
+ if (lastcorrect == 0) lastcorrect = str.length;
135
+ else lastcorrect = -lastcorrect;
136
+ str = str.slice(str.indexOf('{'), lastcorrect);
137
+ try {
138
+ JSON.parse(str);
139
+ } catch (e) {
140
+ return false;
141
+ }
142
+ return JSON.parse(str);
143
+ } else return false;
144
+ }
145
+ return JSON.parse(str);
146
+ }
147
+
148
+ });