Social Media Share Buttons & Social Sharing Icons - Version 2.7.9

Version Description

  • Added black-friday theme (only for that period)
  • Tested up to WordPress 6.1.1
Download this release

Release Info

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

Code changes from version 2.7.8 to 2.7.9

modules/blackfriday2022/assets/img/bg.webp ADDED
Binary file
modules/blackfriday2022/assets/img/btn.svg ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="165" height="50" viewBox="0 0 165 50" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="165" height="50" rx="25" fill="url(#paint0_linear_46_584)"/>
3
+ <path d="M48.24 28.088C48.0693 28.2053 47.8133 28.3493 47.472 28.52C47.1413 28.6907 46.7413 28.84 46.272 28.968C45.8133 29.0853 45.3013 29.1387 44.736 29.128C43.8293 29.1173 43.0133 28.9573 42.288 28.648C41.5627 28.328 40.9493 27.9013 40.448 27.368C39.9467 26.824 39.5573 26.2053 39.28 25.512C39.0133 24.808 38.88 24.0613 38.88 23.272C38.88 22.3867 39.0187 21.576 39.296 20.84C39.5733 20.104 39.968 19.4693 40.48 18.936C40.992 18.392 41.6 17.9707 42.304 17.672C43.008 17.3733 43.776 17.224 44.608 17.224C45.344 17.224 46 17.3253 46.576 17.528C47.1627 17.72 47.6533 17.9387 48.048 18.184L47.312 19.928C47.0133 19.7253 46.64 19.5227 46.192 19.32C45.744 19.1173 45.2373 19.016 44.672 19.016C44.16 19.016 43.6693 19.1227 43.2 19.336C42.7307 19.5387 42.32 19.832 41.968 20.216C41.616 20.5893 41.3333 21.0267 41.12 21.528C40.9173 22.0293 40.816 22.5733 40.816 23.16C40.816 23.768 40.9067 24.328 41.088 24.84C41.28 25.352 41.5467 25.7947 41.888 26.168C42.24 26.5307 42.656 26.8187 43.136 27.032C43.6267 27.2347 44.176 27.336 44.784 27.336C45.3813 27.336 45.904 27.2453 46.352 27.064C46.8107 26.872 47.1787 26.6587 47.456 26.424L48.24 28.088ZM50.357 29V16.52H52.117V23.72L52.085 23.448C52.3197 23.0107 52.6663 22.6533 53.125 22.376C53.5837 22.088 54.133 21.944 54.773 21.944C55.413 21.944 55.941 22.1307 56.357 22.504C56.773 22.8773 56.9863 23.368 56.997 23.976V29H55.205V24.616C55.1943 24.2747 55.0983 24.0027 54.917 23.8C54.7357 23.5867 54.4477 23.4747 54.053 23.464C53.6903 23.464 53.365 23.576 53.077 23.8C52.789 24.024 52.5597 24.328 52.389 24.712C52.229 25.0853 52.149 25.512 52.149 25.992V29H50.357ZM62.6984 29.176C61.8984 29.176 61.2157 29.0213 60.6504 28.712C60.085 28.4027 59.653 27.976 59.3544 27.432C59.0557 26.888 58.9064 26.264 58.9064 25.56C58.9064 24.888 59.077 24.28 59.4184 23.736C59.7597 23.1813 60.2184 22.744 60.7944 22.424C61.381 22.0933 62.0264 21.928 62.7304 21.928C63.6584 21.928 64.421 22.2 65.0184 22.744C65.6264 23.2773 66.0317 24.0347 66.2344 25.016L60.7784 26.856L60.3624 25.848L64.6344 24.328L64.2504 24.536C64.1437 24.216 63.957 23.9387 63.6904 23.704C63.4237 23.4587 63.0557 23.336 62.5864 23.336C62.213 23.336 61.8824 23.4267 61.5944 23.608C61.3064 23.7893 61.077 24.04 60.9064 24.36C60.7464 24.6693 60.6664 25.0373 60.6664 25.464C60.6664 25.912 60.757 26.3013 60.9384 26.632C61.1197 26.952 61.365 27.2027 61.6744 27.384C61.9837 27.5547 62.3357 27.64 62.7304 27.64C63.0077 27.64 63.269 27.592 63.5144 27.496C63.7704 27.4 64.0157 27.272 64.2504 27.112L65.0664 28.44C64.7144 28.664 64.325 28.8453 63.8984 28.984C63.4824 29.112 63.0824 29.176 62.6984 29.176ZM73.5976 28.376C73.299 28.6213 72.931 28.8187 72.4936 28.968C72.067 29.1067 71.635 29.176 71.1976 29.176C70.451 29.176 69.795 29.032 69.2296 28.744C68.6643 28.4453 68.2216 28.0347 67.9016 27.512C67.5923 26.9787 67.4376 26.344 67.4376 25.608C67.4376 24.872 67.603 24.2373 67.9336 23.704C68.275 23.1707 68.7176 22.7653 69.2616 22.488C69.8163 22.2 70.3976 22.056 71.0056 22.056C71.5816 22.056 72.0883 22.136 72.5256 22.296C72.963 22.4453 73.3363 22.6533 73.6456 22.92L72.7656 24.088C72.595 23.9493 72.371 23.8213 72.0936 23.704C71.827 23.576 71.5176 23.512 71.1656 23.512C70.8136 23.512 70.4883 23.6027 70.1896 23.784C69.891 23.9653 69.6563 24.216 69.4856 24.536C69.315 24.8453 69.2296 25.2027 69.2296 25.608C69.2296 25.992 69.3203 26.344 69.5016 26.664C69.683 26.984 69.9283 27.24 70.2376 27.432C70.5576 27.6133 70.9256 27.704 71.3416 27.704C71.619 27.704 71.8696 27.6667 72.0936 27.592C72.3176 27.5067 72.5203 27.3947 72.7016 27.256L73.5976 28.376ZM75.4351 29V16.52H77.2271V29H75.4351ZM78.9071 24.456L81.9951 29H79.8991L77.7231 25.48L78.9071 24.456ZM76.6831 26.968L76.5071 25.256L80.6031 22.072L81.7071 23.032L76.6831 26.968ZM88.8258 22.232H90.6178V29H88.8258V22.232ZM88.7458 19.8C88.7458 19.5227 88.8524 19.2933 89.0658 19.112C89.2898 18.9307 89.5298 18.84 89.7858 18.84C90.0418 18.84 90.2711 18.9307 90.4738 19.112C90.6764 19.2933 90.7778 19.5227 90.7778 19.8C90.7778 20.0773 90.6764 20.3067 90.4738 20.488C90.2711 20.6587 90.0418 20.744 89.7858 20.744C89.5298 20.744 89.2898 20.6533 89.0658 20.472C88.8524 20.2907 88.7458 20.0667 88.7458 19.8ZM93.7318 19.256H95.5238V22.232H97.2838V23.64H95.5238V29H93.7318V23.64H92.5638V22.232H93.7318V19.256ZM103.61 25.544C103.61 24.8613 103.77 24.248 104.09 23.704C104.42 23.1493 104.874 22.7173 105.45 22.408C106.026 22.088 106.682 21.928 107.418 21.928C108.175 21.928 108.831 22.088 109.386 22.408C109.951 22.7173 110.383 23.1493 110.682 23.704C110.991 24.248 111.146 24.8613 111.146 25.544C111.146 26.2267 110.991 26.8453 110.682 27.4C110.383 27.944 109.951 28.376 109.386 28.696C108.82 29.016 108.159 29.176 107.402 29.176C106.666 29.176 106.01 29.032 105.434 28.744C104.868 28.4453 104.42 28.024 104.09 27.48C103.77 26.936 103.61 26.2907 103.61 25.544ZM105.418 25.56C105.418 25.9547 105.503 26.3173 105.674 26.648C105.844 26.968 106.079 27.224 106.378 27.416C106.676 27.608 107.007 27.704 107.37 27.704C107.764 27.704 108.106 27.608 108.394 27.416C108.692 27.224 108.922 26.968 109.082 26.648C109.252 26.3173 109.338 25.9547 109.338 25.56C109.338 25.1547 109.252 24.792 109.082 24.472C108.922 24.1413 108.692 23.88 108.394 23.688C108.106 23.496 107.764 23.4 107.37 23.4C106.996 23.4 106.66 23.5013 106.362 23.704C106.074 23.896 105.844 24.152 105.674 24.472C105.503 24.792 105.418 25.1547 105.418 25.56ZM115.221 29.288C114.602 29.288 114.09 29.1013 113.685 28.728C113.279 28.344 113.066 27.8533 113.045 27.256V22.232H114.837V26.616C114.858 26.9467 114.954 27.2187 115.125 27.432C115.295 27.6453 115.567 27.752 115.941 27.752C116.293 27.752 116.602 27.6453 116.869 27.432C117.146 27.208 117.365 26.904 117.525 26.52C117.685 26.136 117.765 25.704 117.765 25.224V22.232H119.557V29H117.941L117.797 27.512L117.845 27.736C117.706 28.0347 117.509 28.3013 117.253 28.536C116.997 28.7707 116.693 28.952 116.341 29.08C115.999 29.2187 115.626 29.288 115.221 29.288ZM122.669 19.256H124.461V22.232H126.221V23.64H124.461V29H122.669V23.64H121.501V22.232H122.669V19.256Z" fill="white"/>
4
+ <defs>
5
+ <linearGradient id="paint0_linear_46_584" x1="4.96988" y1="7.00002" x2="190.063" y2="49.7272" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#9B6C31"/>
7
+ <stop offset="0.285161" stop-color="#BB8A40"/>
8
+ <stop offset="0.802738" stop-color="#FEE07B"/>
9
+ <stop offset="0.968448" stop-color="#C19642"/>
10
+ </linearGradient>
11
+ </defs>
12
+ </svg>
modules/blackfriday2022/assets/img/close.svg ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.50297 6.35792L0.249505 0H3.09109L7.01386 4.90164L10.8951 0H13.7089L8.45545 6.35792L14 13H11.1584L7.01386 7.81421L2.81386 13H0L5.50297 6.35792Z" fill="white"/>
3
+ </svg>
modules/blackfriday2022/assets/script.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(function ($) {
2
+
3
+ $('#inis-bf-close').on('click', function (e) {
4
+ e.preventDefault();
5
+
6
+ $('#inis-bf-box').hide(300);
7
+ let slug = $('#inis-bf-box').attr('data-slug');
8
+ $.post(ajaxurl, { action: 'inis_bf20_dismiss', token: 'inis_bf20', slug: slug }).done(function (res) {
9
+
10
+ }).fail(function (err) {
11
+ console.error(err);
12
+ });
13
+ });
14
+
15
+ });
modules/blackfriday2022/assets/styles.css ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #inis-bf-box, #inis-bf-box * {
2
+ -webkit-user-select: none;
3
+ -khtml-user-select: none;
4
+ -moz-user-select: none;
5
+ -o-user-select: none;
6
+ user-select: none;
7
+ user-drag: none;
8
+ }
9
+
10
+ #inis-bf-box {
11
+ position: relative;
12
+ margin: 0 auto;
13
+ padding: 15px;
14
+ padding-right: 40px;
15
+ width: calc(100% - 60px);
16
+ min-width: calc(100% - 60px);
17
+ }
18
+
19
+ #inis-bf-bg {
20
+ border-radius: 10px;
21
+ width: 100%;
22
+ box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.25);
23
+ }
24
+
25
+ #inis-bf-close {
26
+ position: absolute;
27
+ top: 32px;
28
+ right: 53px;
29
+ cursor: pointer;
30
+ transition: opacity 0.3s;
31
+ }
32
+
33
+ #inis-bf-close:hover {
34
+ opacity: 0.7;
35
+ }
36
+
37
+ #inis-bf-close:active {
38
+ opacity: 0.5;
39
+ }
40
+
41
+ #inis-bf-btn {
42
+ position: absolute;
43
+ bottom: 10%;
44
+ margin: auto;
45
+ margin-bottom: 20px;
46
+ left: 0;
47
+ right: 0;
48
+ width: 10%;
49
+ cursor: pointer;
50
+ border-radius: 25px;
51
+ transition: all 0.3s;
52
+ box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.60);
53
+ opacity: 0.8;
54
+ }
55
+
56
+ #inis-bf-btn:hover {
57
+ transform: scale(1.1);
58
+ box-shadow: 0 0 16px 2px rgba(0, 0, 0, 0.85);
59
+ opacity: 1;
60
+ }
61
+
62
+ #inis-bf-btn:active {
63
+ transform: scale(1);
64
+ box-shadow: 0 0 0px 0px rgba(0, 0, 0, 0.85);
65
+ opacity: 0.6;
66
+ }
67
+
68
+ #inis-brought-by {
69
+ text-align: right;
70
+ margin-top: 2px;
71
+ padding-right: 2px;
72
+ font-family: 'Montserrat', 'Helvetica', sans-serif;
73
+ }
modules/blackfriday2022/bf.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * File for our cool Black Friday info the header on our plugin menu page
5
+ *
6
+ * @category Child Plugin
7
+ * @version v0.1.0
8
+ * @since v0.1.0
9
+ * @author iClyde <kontakt@iclyde.pl>
10
+ */
11
+
12
+ // Namespace
13
+ namespace Inisev\Subs;
14
+
15
+ // Disallow direct access
16
+ if (defined('ABSPATH')) {
17
+
18
+ /**
19
+ * Main class for handling the Black Friday Banner
20
+ */
21
+ if (!class_exists('Inisev\Subs\InisevBlackFriday')) {
22
+ class InisevBlackFriday {
23
+
24
+ /**
25
+ * __construct - Construct of the module for particular plugin
26
+ *
27
+ * @param {sting} $slug Slug of the plugin
28
+ * @param {string} $displayName Display name of the plugin
29
+ * @param {array} $pluginURLs = [] URLs to all menu pages in back-end
30
+ * @return {self}
31
+ */
32
+ function __construct($slug, $displayName, $dealURL, $pluginURLs = []) {
33
+
34
+ $currentDate = explode(' ', date('Y m d'));
35
+
36
+ if (intval($currentDate[0]) > 2022) return;
37
+ if (intval($currentDate[1]) > 11) return;
38
+ if (intval($currentDate[2]) > 29) return;
39
+
40
+ $dismisses = get_option('ins_bf20_dismisses', []);
41
+ $this->slug = $slug;
42
+ add_action('wp_ajax_inis_bf20_dismiss', [&$this, 'handleActionsDismiss']);
43
+
44
+ if (!is_array($dismisses)) return;
45
+ if (!is_array($pluginURLs)) return;
46
+ if (in_array($slug, $dismisses)) return;
47
+
48
+ $notFoundInAllowed = true;
49
+ for ($i = 0; $i < sizeof($pluginURLs); ++$i) {
50
+ $part = $pluginURLs[$i];
51
+ if (strpos(strtolower($_SERVER['REQUEST_URI']), strtolower($part)) !== false) {
52
+ $notFoundInAllowed = false;
53
+ break;
54
+ }
55
+ }
56
+
57
+ if ($notFoundInAllowed) return;
58
+
59
+ $this->displayName = $displayName;
60
+ $this->dealURL = $dealURL;
61
+ $this->dir = __DIR__ . DIRECTORY_SEPARATOR;
62
+ $this->assets = 'assets' . DIRECTORY_SEPARATOR;
63
+ add_action('admin_notices', [&$this, 'insertBanner']);
64
+ add_action('admin_enqueue_scripts', [&$this, 'enqueueAssets']);
65
+
66
+ }
67
+
68
+ public function asset($type, $file) {
69
+
70
+ $path = $this->assets . $type . DIRECTORY_SEPARATOR . $file;
71
+ return plugins_url($path, __FILE__);
72
+
73
+ }
74
+
75
+ public function enqueueAssets() {
76
+
77
+ wp_enqueue_script($this->slug . '-black-friday', $this->asset('', 'script.js'), [], '0.1.0', true);
78
+ wp_enqueue_style($this->slug . '-black-friday', $this->asset('', 'styles.css'), [], '0.1.0');
79
+
80
+ }
81
+
82
+ public function insertBanner() {
83
+
84
+ include_once $this->dir . 'views' . DIRECTORY_SEPARATOR . 'banner.php';
85
+
86
+ }
87
+
88
+ public function handleActionsDismiss() {
89
+
90
+ $token = sanitize_text_field($_POST['token']);
91
+ $slug = sanitize_text_field($_POST['slug']);
92
+ if ($token === 'inis_bf20') {
93
+
94
+ $dismissed = get_option('ins_bf20_dismisses', []);
95
+ $dismissed[] = $slug;
96
+
97
+ update_option('ins_bf20_dismisses', $dismissed);
98
+
99
+ wp_send_json_success();
100
+
101
+ }
102
+
103
+ }
104
+
105
+ }
106
+ }
107
+
108
+ }
modules/blackfriday2022/views/banner.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Main renderer for the Black Friday Banner
5
+ *
6
+ * @category Child Plugin
7
+ * @author iClyde <kontakt@iclyde.pl>
8
+ */
9
+
10
+ // Namespace
11
+ namespace Inisev\Subs;
12
+
13
+ // Disallow direct access
14
+ if (!defined('ABSPATH')) exit;
15
+
16
+ ?>
17
+
18
+ <div id="inis-bf-box" data-slug="<?php echo $this->slug; ?>">
19
+ <img id="inis-bf-bg" draggable="false" src="<?php echo $this->asset('img', 'bg.webp'); ?>" alt="background-black-friday">
20
+ <img id="inis-bf-close" draggable="false" src="<?php echo $this->asset('img', 'close.svg'); ?>" alt="black-friday-banner-close-btn">
21
+ <a href="<?php echo $this->dealURL; ?>" target="_blank">
22
+ <img id="inis-bf-btn" draggable="false" src="<?php echo $this->asset('img', 'btn.svg'); ?>" alt="black-friday-check-deal-btn">
23
+ </a>
24
+ <div id="inis-brought-by">Brought to you with ❤️ by <b><?php echo $this->displayName; ?></b></div>
25
+ </div>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialdude, socialtech
3
  Tags: share, social, share icons, social media, widget, sharing icons, sharing buttons, social share, sharing
4
  Requires at least: 3.5
5
- Tested up to: 6.1
6
- Stable tag: 2.7.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -302,6 +302,10 @@ It depends on which language you speak :) however probably the answer is “yes
302
 
303
  == Changelog ==
304
 
 
 
 
 
305
  = 2.7.8 =
306
  * Fixed issues with after post icons
307
  * Plugin tested with WordPress 6.1 @ PHP 8.1
@@ -1083,6 +1087,6 @@ It depends on which language you speak :) however probably the answer is “yes
1083
 
1084
  == Upgrade Notice ==
1085
 
1086
- = 2.7.8 =
1087
- * Fixed issues with after post icons
1088
- * Plugin tested with WordPress 6.1 @ PHP 8.1
2
  Contributors: socialdude, socialtech
3
  Tags: share, social, share icons, social media, widget, sharing icons, sharing buttons, social share, sharing
4
  Requires at least: 3.5
5
+ Tested up to: 6.1.1
6
+ Stable tag: 2.7.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
302
 
303
  == Changelog ==
304
 
305
+ = 2.7.9 =
306
+ * Added black-friday theme (only for that period)
307
+ * Tested up to WordPress 6.1.1
308
+
309
  = 2.7.8 =
310
  * Fixed issues with after post icons
311
  * Plugin tested with WordPress 6.1 @ PHP 8.1
1087
 
1088
  == Upgrade Notice ==
1089
 
1090
+ = 2.7.9 =
1091
+ * Added black-friday theme (only for that period)
1092
+ * Tested up to WordPress 6.1.1
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
  Text Domain: ultimate-social-media-icons
9
  Domain Path: /languages
10
- Version: 2.7.8
11
  License: GPLv2 or later
12
  */
13
  require_once 'analyst/main.php';
@@ -23,7 +23,7 @@ sfsi_error_reporting();
23
 
24
  global $wpdb;
25
  /* define the Root for URL and Document */
26
- define( 'SFSI_PLUGIN_VERSION', '2.7.8' );
27
  define( 'SFSI_DOCROOT', dirname( __FILE__ ) );
28
 
29
  define( 'SFSI_PLUGURL', plugin_dir_url( __FILE__ ) );
@@ -2196,6 +2196,11 @@ function sfsi_plugin_redirect()
2196
 
2197
  });
2198
 
 
 
 
 
 
2199
  // Actions of tryOutPlugins
2200
  if (!has_action('wp_ajax_tifm_save_decision')) {
2201
  add_action('wp_ajax_tifm_save_decision', function () {
7
  Author URI: http://ultimatelysocial.com
8
  Text Domain: ultimate-social-media-icons
9
  Domain Path: /languages
10
+ Version: 2.7.9
11
  License: GPLv2 or later
12
  */
13
  require_once 'analyst/main.php';
23
 
24
  global $wpdb;
25
  /* define the Root for URL and Document */
26
+ define( 'SFSI_PLUGIN_VERSION', '2.7.9' );
27
  define( 'SFSI_DOCROOT', dirname( __FILE__ ) );
28
 
29
  define( 'SFSI_PLUGURL', plugin_dir_url( __FILE__ ) );
2196
 
2197
  });
2198
 
2199
+ if (!(class_exists('\Inisev\Subs\InisevBlackFriday') || class_exists('Inisev\Subs\InisevBlackFriday') || class_exists('InisevBlackFriday'))) {
2200
+ require_once __DIR__ . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'blackfriday2022' . DIRECTORY_SEPARATOR . 'bf.php';
2201
+ }
2202
+ $blackfriday_banner = new \Inisev\Subs\InisevBlackFriday('ultimate-social-media-icons', 'Ultimate Social Media Icons', 'http://bit.ly/3TVZQJ1', ['admin.php?page=sfsi-options']);
2203
+
2204
  // Actions of tryOutPlugins
2205
  if (!has_action('wp_ajax_tifm_save_decision')) {
2206
  add_action('wp_ajax_tifm_save_decision', function () {