Version Description
- fixed the settings link on the plugin overview page for certain environments (thanks to @midgard)
- updated to Facebook Graph API v5.0
- updated the WhatsApp link to swap url and title for a working image preview
- removed nofollow from the info button
- remvoed Xing share counts due to Xing disabling the API
Download this release
Release Info
Developer | starguide |
Plugin | Shariff Wrapper |
Version | 4.6.4 |
Comparing to | |
See all releases |
Code changes from version 4.6.3 to 4.6.4
- admin/admin-menu.php +1 -1
- changelog.txt +7 -0
- readme.txt +65 -66
- services/shariff-facebook.php +1 -1
- services/shariff-whatsapp.php +1 -1
- services/shariff-xing.php +1 -28
- shariff.php +6 -4
admin/admin-menu.php
CHANGED
@@ -12,7 +12,7 @@ if ( ! class_exists( 'WP' ) ) {
|
|
12 |
}
|
13 |
|
14 |
// Set services that have a share count API / backend.
|
15 |
-
$shariff3uu_services_backend = array( 'facebook', 'twitter', 'pinterest', '
|
16 |
|
17 |
// Adds the actions for the admin page.
|
18 |
add_action( 'admin_menu', 'shariff3uu_add_admin_menu' );
|
12 |
}
|
13 |
|
14 |
// Set services that have a share count API / backend.
|
15 |
+
$shariff3uu_services_backend = array( 'facebook', 'twitter', 'pinterest', 'reddit', 'tumblr', 'vk', 'addthis', 'odnoklassniki', 'buffer' );
|
16 |
|
17 |
// Adds the actions for the admin page.
|
18 |
add_action( 'admin_menu', 'shariff3uu_add_admin_menu' );
|
changelog.txt
CHANGED
@@ -2,6 +2,13 @@
|
|
2 |
|
3 |
== Changelog ==
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
= 4.6.3 =
|
6 |
- updated the WhatsApp share link to work with all devices again (thanks to @hanshansenxxx)
|
7 |
- updated to Facebook Graph API v3.3
|
2 |
|
3 |
== Changelog ==
|
4 |
|
5 |
+
= 4.6.4 =
|
6 |
+
- fixed the settings link on the plugin overview page for certain environments (thanks to @midgard)
|
7 |
+
- updated to Facebook Graph API v5.0
|
8 |
+
- updated the WhatsApp link to swap url and title for a working image preview
|
9 |
+
- removed nofollow from the info button
|
10 |
+
- remvoed Xing share counts due to Xing disabling the API
|
11 |
+
|
12 |
= 4.6.3 =
|
13 |
- updated the WhatsApp share link to work with all devices again (thanks to @hanshansenxxx)
|
14 |
- updated to Facebook Graph API v3.3
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: starguide, 3UU
|
|
3 |
Tags: Shariff, GDPR, DSGVO, share buttons, sharing
|
4 |
Requires at least: 4.9
|
5 |
Requires PHP: 7.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 4.6.
|
8 |
License: MIT
|
9 |
License URI: http://opensource.org/licenses/mit
|
10 |
|
@@ -36,97 +36,89 @@ To enable it for all posts please check the options in the plugin settings.
|
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
-
=
|
40 |
-
|
|
|
41 |
You can use all options of the shorttag as described on the help tab in the plugin settings.
|
42 |
|
43 |
-
=
|
44 |
-
|
45 |
|
46 |
-
=
|
47 |
-
|
48 |
-
|
49 |
// $share_counts is an array including all enabled services, the timestamp of the update and the url of the post.
|
50 |
// do stuff
|
51 |
}
|
52 |
-
add_action( 'shariff_share_counts', 'your_awesome_function' )
|
53 |
WARNING: This hook will get called A LOT. So be sure you know what you are doing.
|
54 |
|
55 |
-
=
|
56 |
-
|
57 |
|
58 |
-
=
|
59 |
A: Yes. You can change all options using the shorttag in the Shariff meta box on the right side of the post edit screen.
|
60 |
|
61 |
-
=
|
62 |
A: Shariff tries to protect the privacy of your visitors. In order to do this, the statistics have to be requested by your server, so social networks only see a request of your server and not from your visitor. However, we do not know, if you want this. Therefore it is not enabled by default.
|
63 |
|
64 |
-
=
|
65 |
-
|
66 |
|
67 |
-
=
|
68 |
-
|
69 |
|
70 |
-
=
|
71 |
-
|
72 |
|
73 |
-
=
|
74 |
-
|
75 |
|
76 |
-
=
|
77 |
-
|
78 |
-
style option.
|
79 |
|
80 |
-
=
|
81 |
-
A: Have a look at the parameters "theme", "orientation" and "buttonsize". They work mostly like the original code parameters that are explained at http://heiseonline.github.io/shariff/ Or you can have a look at the test page at http://shariff.3uu.net/shariff-sample-page-with-all-options to get an
|
82 |
-
overview. But please be warned: This is a test page! It is possible that you find features that are only provided in the development version. Use it only to get an impression of the design options.
|
83 |
-
|
84 |
-
= Q: How can I change the design of a single button? =
|
85 |
A: If you are a CSS guru please feel free to modify the css file. But of course this is a bad idea, because all changes will be destroyed with the next update! Instead take a look at the style and class attribute of the shorttag. If you put in any value it will create a DIV container with the ID "ShariffSC" around the buttons. If you are really a CSS guru you will know what does the magic from here on out. ;-)
|
86 |
|
87 |
-
=
|
88 |
-
|
89 |
-
|
90 |
Of course you can use all other options in that shorttag as well. It also works with the CSS style option on the plugins design options page, if you really want this applied to all buttons on your page.
|
91 |
|
92 |
-
=
|
93 |
-
|
94 |
-
|
95 |
|
96 |
-
=
|
97 |
-
|
98 |
-
|
99 |
Of course you can use all other options in that shorttag as well.
|
100 |
|
101 |
-
=
|
102 |
-
|
103 |
-
|
104 |
-
= Q: But I want to hide it on a single post! =
|
105 |
-
A: Do you really know what you want? ;-) However, it is possible. Write anywhere in your post "hideshariff". It will be removed and Shariff will not be added. You can also use "/hideshariff" to write "hideshariff" in your post. You might also want to take a look at the Shariff meta box on the right side of your post edit screen.
|
106 |
|
107 |
-
=
|
108 |
-
|
109 |
|
110 |
-
=
|
111 |
-
|
112 |
|
113 |
-
=
|
114 |
-
|
115 |
-
within the [shariff] shorttag or add it in on the plugin options page - of course with the link to your image.
|
116 |
|
117 |
-
=
|
118 |
-
|
119 |
-
|
120 |
This is also available within widgets. However, it is not a good idea to manipulate the URI, because it could mislead your visitors. So you should only use it, if this is really needed and you do really know what you are doing. Therefore it is not available on the plugin options page in general.
|
121 |
|
122 |
-
=
|
123 |
-
|
124 |
|
125 |
-
=
|
126 |
-
|
127 |
|
128 |
-
=
|
129 |
-
|
130 |
- avoid requests from you WP server to all the social networks
|
131 |
- use a more powerful server for the statistic
|
132 |
- use the original backend implementation of Heise or your own solution
|
@@ -137,12 +129,12 @@ But please have in mind that there are also some good reasons not to use externa
|
|
137 |
- you have to use SHARIFF_FRONTENDS as an array with all your frontend domains to enable the backend or find your own solution
|
138 |
- we CANNOT provide support for your own implementation
|
139 |
|
140 |
-
=
|
141 |
-
|
142 |
-
|
143 |
|
144 |
-
=
|
145 |
-
|
146 |
|
147 |
= KNOWN BUGS =
|
148 |
|
@@ -152,8 +144,15 @@ These are bugs or unexpected glitches that we know of, but that do not have an i
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 4.6.3 =
|
156 |
-
- updated the WhatsApp share link (thanks to @hanshansenxxx
|
157 |
- updated to Facebook Graph API v3.3
|
158 |
- updated the Flattr button to reflect the new Flattr (thanks to Chris, @camthor)
|
159 |
- fixed an update issue with WP CLI
|
3 |
Tags: Shariff, GDPR, DSGVO, share buttons, sharing
|
4 |
Requires at least: 4.9
|
5 |
Requires PHP: 7.0
|
6 |
+
Tested up to: 5.3
|
7 |
+
Stable tag: 4.6.4
|
8 |
License: MIT
|
9 |
License URI: http://opensource.org/licenses/mit
|
10 |
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
+
= Can I use the Shariff buttons in my theme? =
|
40 |
+
Yes. Simply use the shortcode function:
|
41 |
+
<code>do_shortcode('[shariff]')</code>
|
42 |
You can use all options of the shorttag as described on the help tab in the plugin settings.
|
43 |
|
44 |
+
= Can I use the total amount of shares in my theme? =
|
45 |
+
Yes. You can use <code>do_shortcode('[shariff services="totalnumber"]')</code> to simply output the total amount of shares for a post in the loop. It will return the number itself wrapped in a <code><span class="shariff-totalnumber"></span></code> in order for the shariff.js to update the count. Also only cached data is used, in order to not slow down your site.
|
46 |
|
47 |
+
= Is there an action hook to use the share counts every time they get updated? =
|
48 |
+
Yes. You can use
|
49 |
+
<code>function your_awesome_function( $share_counts ) {
|
50 |
// $share_counts is an array including all enabled services, the timestamp of the update and the url of the post.
|
51 |
// do stuff
|
52 |
}
|
53 |
+
add_action( 'shariff_share_counts', 'your_awesome_function' );</code>
|
54 |
WARNING: This hook will get called A LOT. So be sure you know what you are doing.
|
55 |
|
56 |
+
= How can I configure the widget? =
|
57 |
+
It uses the same options that have been configured on the plugin options page. However, you can put in a shorttag that overwrites the default options. It has the same format as you use in posts. Take a look at the help section of the plugin options page for more information.
|
58 |
|
59 |
+
= Can I change the options on a single post? =
|
60 |
A: Yes. You can change all options using the shorttag in the Shariff meta box on the right side of the post edit screen.
|
61 |
|
62 |
+
= Why are shares not listed? =
|
63 |
A: Shariff tries to protect the privacy of your visitors. In order to do this, the statistics have to be requested by your server, so social networks only see a request of your server and not from your visitor. However, we do not know, if you want this. Therefore it is not enabled by default.
|
64 |
|
65 |
+
= How can I show the share counts? =
|
66 |
+
Enable it on the plugin options page in general or add <code>backend="on"</code> to the shariff shorttag in your post.
|
67 |
|
68 |
+
= I still do not see share counts =
|
69 |
+
Please have a look at the status tab on the plugin options page. It states whether share counts are enabled and if there is a problem with a service. Please also keep in mind that the plugin has a minimum refresh time of 60 seconds and that each service has their own cache as well.
|
70 |
|
71 |
+
= Why can't I change the TTL to a smaller / bigger value? =
|
72 |
+
The time to live (TTL) value determines, if a share count of a post or page gets refreshed when someone visits this specific page / post of your blog. Too small values create too much useless traffic, too high values negate the goal of motivating visitors to also share a post. The value can be adjusted between 60 and 7200 seconds. Keep in mind, the actual lifespan depends on the age of the post as well.
|
73 |
|
74 |
+
= How can I change the position of all buttons? =
|
75 |
+
Have a look at the alignment options in the admin menu or checkout the style option.
|
76 |
|
77 |
+
= How can I change the design? =
|
78 |
+
Have a look at the parameters "theme", "orientation" and "buttonsize". They work mostly like the original code parameters that are explained at http://heiseonline.github.io/shariff/ Or you can have a look at the test page at https://shariff.3uu.net/shariff-sample-page-with-all-options to get an overview. But please be warned: This is a test page! It is possible that you find features that are only provided in the development version. Use it only to get an impression of the design options.
|
|
|
79 |
|
80 |
+
= How can I change the design of a single button? =
|
|
|
|
|
|
|
|
|
81 |
A: If you are a CSS guru please feel free to modify the css file. But of course this is a bad idea, because all changes will be destroyed with the next update! Instead take a look at the style and class attribute of the shorttag. If you put in any value it will create a DIV container with the ID "ShariffSC" around the buttons. If you are really a CSS guru you will know what does the magic from here on out. ;-)
|
82 |
|
83 |
+
= I want the buttons to stay fixed while scrolling! =
|
84 |
+
No problem. Just use the style attribute to add some CSS to the shorttag. For example in a widget (adjust the width as needed):
|
85 |
+
<code>[shariff style="position:fixed;width:250px"]</code>
|
86 |
Of course you can use all other options in that shorttag as well. It also works with the CSS style option on the plugins design options page, if you really want this applied to all buttons on your page.
|
87 |
|
88 |
+
= I want a horizontal line above my Shariff buttons! =
|
89 |
+
You can use the headline option on the design tab. For example, enter the following code to create a horizontal line and a headline:
|
90 |
+
<code><hr style='margin:20px 0'><p>Please share this post:</p></code>
|
91 |
|
92 |
+
= I want a different or no headline in a single widget, post or page! =
|
93 |
+
Use the headline attribute to add or remove it. For example, you can use the following shorttag to remove a headline set on the plugins options page in a single widget:
|
94 |
+
<code>[shariff headline=""]</code>
|
95 |
Of course you can use all other options in that shorttag as well.
|
96 |
|
97 |
+
= Can I add <code>[shariff]</code> on all posts? =
|
98 |
+
Yes, check out the plugin options.
|
|
|
|
|
|
|
99 |
|
100 |
+
= QBut I want to hide it on a single post! =
|
101 |
+
Do you really know what you want? ;-) However, it is possible. Write anywhere in your post "hideshariff". It will be removed and Shariff will not be added. You can also use "/hideshariff" to write "hideshariff" in your post. You might also want to take a look at the Shariff meta box on the right side of your post edit screen.
|
102 |
|
103 |
+
= Does it work with a CDN? =
|
104 |
+
Yes.
|
105 |
|
106 |
+
= Pinterest does not show an image! =
|
107 |
+
You can add <code>media="http://wwww.example.com/yourImage.png"</code> within the <code>[shariff]</code> shorttag or add it in on the plugin options page - of course with the link to your image.
|
|
|
108 |
|
109 |
+
= Can I set a fixed URL to share? =
|
110 |
+
You can use the "url" parameter within the shortcode
|
111 |
+
<code>[shariff url="http://www.example.com/"]</code>
|
112 |
This is also available within widgets. However, it is not a good idea to manipulate the URI, because it could mislead your visitors. So you should only use it, if this is really needed and you do really know what you are doing. Therefore it is not available on the plugin options page in general.
|
113 |
|
114 |
+
= What happened to the Twitter share counts? =
|
115 |
+
Twitter does not offer official share counts anymore. As an alternative, share counts for Twitter can be requested via twitcount.com. You will need to register with them for it to work. Otherwise the count will always be zero.
|
116 |
|
117 |
+
= The buttons are not correctly being shown on my custom theme! =
|
118 |
+
Please make sure that <code>wp_footer();</code> has been added to your theme. For more information please visit: https://codex.wordpress.org/Function_Reference/wp_footer
|
119 |
|
120 |
+
= What is the external API feature? =
|
121 |
+
First of all: Usually you do not need it! The plugin requests all share counts itself. However, there are some reasons to put the backend on another server:
|
122 |
- avoid requests from you WP server to all the social networks
|
123 |
- use a more powerful server for the statistic
|
124 |
- use the original backend implementation of Heise or your own solution
|
129 |
- you have to use SHARIFF_FRONTENDS as an array with all your frontend domains to enable the backend or find your own solution
|
130 |
- we CANNOT provide support for your own implementation
|
131 |
|
132 |
+
= How can I configure the external API? =
|
133 |
+
In the statistic settings fill in the URL to the API of the external server. For the WordPress installation on the external server you have to create a "constant" called SHARIFF_FRONTENDS to permit other domains to use it. Please have in mind that you have to fill in all subdomains you want to use! The domains must be defined like this:
|
134 |
+
<code>define( 'SHARIFF_FRONTENDS', 'example.com|www.example.com|blog.example.com|another-domain.com' );</code>
|
135 |
|
136 |
+
= What does "Request external API directly." mean? =
|
137 |
+
By default, the browser request the share counts from the server your site is running on. If you have entered an external API your server will then request the counts from this external API instead of fetching them itself. Therefore, the external server will only see the IP from your server and not the one from your visitors. If you check this option, the browser of your visitors will instead directly request the share counts from the external API and therefore reveal their IP address to them. This might be faster, but it is less secure. Please also make sure to set the Access-Control-Allow-Origin header right. If your site is available using https, your external API will need to be reached by https as well. Otherwise the request will get blocked for security reasons. All options and features (e.g. the ranking tab) regarding the statistic will only work on the external server.
|
138 |
|
139 |
= KNOWN BUGS =
|
140 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 4.6.4 =
|
148 |
+
- fixed the settings link on the plugin overview page for certain environments (thanks to @midgard)
|
149 |
+
- updated to Facebook Graph API v5.0
|
150 |
+
- updated the WhatsApp link to swap url and title for a working image preview
|
151 |
+
- removed nofollow from the info button
|
152 |
+
- remvoed Xing share counts due to Xing disabling the API
|
153 |
+
|
154 |
= 4.6.3 =
|
155 |
+
- updated the WhatsApp share link to work with all devices again (thanks to @hanshansenxxx)
|
156 |
- updated to Facebook Graph API v3.3
|
157 |
- updated the Flattr button to reflect the new Flattr (thanks to Chris, @camthor)
|
158 |
- fixed an update issue with WP CLI
|
services/shariff-facebook.php
CHANGED
@@ -70,7 +70,7 @@ if ( isset( $frontend ) && 1 === $frontend ) {
|
|
70 |
// Create the FB access token.
|
71 |
$fb_token = $fb_app_id . '|' . $fb_app_secret;
|
72 |
// Use the token to get the share counts.
|
73 |
-
$facebook = sanitize_text_field( wp_remote_retrieve_body( wp_remote_get( 'https://graph.facebook.com/
|
74 |
// Decode the json response.
|
75 |
$facebook_json = json_decode( $facebook, true );
|
76 |
// Set nofbid in case the page has not yet been crawled by Facebook and no ID is provided.
|
70 |
// Create the FB access token.
|
71 |
$fb_token = $fb_app_id . '|' . $fb_app_secret;
|
72 |
// Use the token to get the share counts.
|
73 |
+
$facebook = sanitize_text_field( wp_remote_retrieve_body( wp_remote_get( 'https://graph.facebook.com/v5.0/?access_token=' . $fb_token . '&fields=engagement&id=' . $post_url ) ) );
|
74 |
// Decode the json response.
|
75 |
$facebook_json = json_decode( $facebook, true );
|
76 |
// Set nofbid in case the page has not yet been crawled by Facebook and no ID is provided.
|
services/shariff-whatsapp.php
CHANGED
@@ -16,7 +16,7 @@ if ( isset( $frontend ) && 1 === $frontend ) {
|
|
16 |
$service_url = 'https://api.whatsapp.com/send';
|
17 |
|
18 |
// Build button URL.
|
19 |
-
$button_url = $service_url . '?text=' . $
|
20 |
|
21 |
// Colors.
|
22 |
$main_color = '#34af23';
|
16 |
$service_url = 'https://api.whatsapp.com/send';
|
17 |
|
18 |
// Build button URL.
|
19 |
+
$button_url = $service_url . '?text=' . $share_url . '%20' . $share_title;
|
20 |
|
21 |
// Colors.
|
22 |
$main_color = '#34af23';
|
services/shariff-xing.php
CHANGED
@@ -27,7 +27,7 @@ if ( isset( $frontend ) && 1 === $frontend ) {
|
|
27 |
$svg_icon = '<svg width="32px" height="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32"><path fill="' . $main_color . '" d="M10.7 11.9q-0.2 0.3-4.6 8.2-0.5 0.8-1.2 0.8h-4.3q-0.4 0-0.5-0.3t0-0.6l4.5-8q0 0 0 0l-2.9-5q-0.2-0.4 0-0.7 0.2-0.3 0.5-0.3h4.3q0.7 0 1.2 0.8zM25.1 0.4q0.2 0.3 0 0.7l-9.4 16.7 6 11q0.2 0.4 0 0.6-0.2 0.3-0.6 0.3h-4.3q-0.7 0-1.2-0.8l-6-11.1q0.3-0.6 9.5-16.8 0.4-0.8 1.2-0.8h4.3q0.4 0 0.5 0.3z"/></svg>';
|
28 |
|
29 |
// Backend available?
|
30 |
-
$backend_available =
|
31 |
|
32 |
// Button alt label.
|
33 |
$button_title_array = array(
|
@@ -57,31 +57,4 @@ if ( isset( $frontend ) && 1 === $frontend ) {
|
|
57 |
'tr' => 'XING\'ta paylaş',
|
58 |
'zh' => '分享至XING',
|
59 |
);
|
60 |
-
} elseif ( isset( $backend ) && 1 === $backend ) {
|
61 |
-
// Set xing options.
|
62 |
-
$xing_json = array(
|
63 |
-
'url' => $post_url_raw,
|
64 |
-
);
|
65 |
-
|
66 |
-
// Set post options.
|
67 |
-
$xing_post_options = array(
|
68 |
-
'method' => 'POST',
|
69 |
-
'timeout' => 5,
|
70 |
-
'redirection' => 5,
|
71 |
-
'httpversion' => '1.0',
|
72 |
-
'blocking' => true,
|
73 |
-
'headers' => array( 'content-type' => 'application/json' ),
|
74 |
-
'body' => wp_json_encode( $xing_json ),
|
75 |
-
);
|
76 |
-
|
77 |
-
// Fetch counts.
|
78 |
-
$xing = sanitize_text_field( wp_remote_retrieve_body( wp_remote_post( 'https://www.xing.com/spi/shares/statistics', $xing_post_options ) ) );
|
79 |
-
$xing_json = json_decode( $xing, true );
|
80 |
-
|
81 |
-
// Store results, if we have some and record errors, if enabled (e.g. request from the status tab).
|
82 |
-
if ( isset( $xing_json['share_counter'] ) ) {
|
83 |
-
$share_counts['xing'] = intval( $xing_json['share_counter'] );
|
84 |
-
} elseif ( isset( $record_errors ) && 1 === $record_errors ) {
|
85 |
-
$service_errors['xing'] = $xing;
|
86 |
-
}
|
87 |
}
|
27 |
$svg_icon = '<svg width="32px" height="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32"><path fill="' . $main_color . '" d="M10.7 11.9q-0.2 0.3-4.6 8.2-0.5 0.8-1.2 0.8h-4.3q-0.4 0-0.5-0.3t0-0.6l4.5-8q0 0 0 0l-2.9-5q-0.2-0.4 0-0.7 0.2-0.3 0.5-0.3h4.3q0.7 0 1.2 0.8zM25.1 0.4q0.2 0.3 0 0.7l-9.4 16.7 6 11q0.2 0.4 0 0.6-0.2 0.3-0.6 0.3h-4.3q-0.7 0-1.2-0.8l-6-11.1q0.3-0.6 9.5-16.8 0.4-0.8 1.2-0.8h4.3q0.4 0 0.5 0.3z"/></svg>';
|
28 |
|
29 |
// Backend available?
|
30 |
+
$backend_available = 0;
|
31 |
|
32 |
// Button alt label.
|
33 |
$button_title_array = array(
|
57 |
'tr' => 'XING\'ta paylaş',
|
58 |
'zh' => '分享至XING',
|
59 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
shariff.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Shariff Wrapper
|
4 |
* Plugin URI: https://wordpress.org/plugins-wp/shariff/
|
5 |
* Description: Shariff provides share buttons that respect the privacy of your visitors and follow the General Data Protection Regulation (GDPR).
|
6 |
-
* Version: 4.6.
|
7 |
* Author: Jan-Peter Lambeck & 3UU
|
8 |
* Author URI: https://wordpress.org/plugins/shariff/
|
9 |
* License: MIT
|
@@ -33,7 +33,7 @@ $shariff3uu = array_merge( $shariff3uu_basic, $shariff3uu_design, $shariff3uu_ad
|
|
33 |
*/
|
34 |
function shariff3uu_update() {
|
35 |
// Adjust code version.
|
36 |
-
$code_version = '4.6.
|
37 |
|
38 |
// Get basic options.
|
39 |
$shariff3uu_basic = (array) get_option( 'shariff3uu_basic' );
|
@@ -170,7 +170,7 @@ function shariff3uu_meta_links( $links, $file ) {
|
|
170 |
if ( $file === $plugin ) {
|
171 |
return array_merge(
|
172 |
$links,
|
173 |
-
array( '<a href="' .
|
174 |
);
|
175 |
}
|
176 |
return $links;
|
@@ -1329,7 +1329,9 @@ function shariff3uu_render( $atts ) {
|
|
1329 |
if ( 'facebook' !== $service ) {
|
1330 |
$output .= 'noopener ';
|
1331 |
}
|
1332 |
-
|
|
|
|
|
1333 |
}
|
1334 |
$output .= ' class="shariff-link';
|
1335 |
|
3 |
* Plugin Name: Shariff Wrapper
|
4 |
* Plugin URI: https://wordpress.org/plugins-wp/shariff/
|
5 |
* Description: Shariff provides share buttons that respect the privacy of your visitors and follow the General Data Protection Regulation (GDPR).
|
6 |
+
* Version: 4.6.4
|
7 |
* Author: Jan-Peter Lambeck & 3UU
|
8 |
* Author URI: https://wordpress.org/plugins/shariff/
|
9 |
* License: MIT
|
33 |
*/
|
34 |
function shariff3uu_update() {
|
35 |
// Adjust code version.
|
36 |
+
$code_version = '4.6.4';
|
37 |
|
38 |
// Get basic options.
|
39 |
$shariff3uu_basic = (array) get_option( 'shariff3uu_basic' );
|
170 |
if ( $file === $plugin ) {
|
171 |
return array_merge(
|
172 |
$links,
|
173 |
+
array( '<a href="' . site_url() . '/wp-admin/options-general.php?page=shariff3uu">' . __( 'Settings', 'shariff' ) . '</a>', '<a href="https://wordpress.org/support/plugin/shariff" target="_blank">' . __( 'Support Forum', 'shariff' ) . '</a>' )
|
174 |
);
|
175 |
}
|
176 |
return $links;
|
1329 |
if ( 'facebook' !== $service ) {
|
1330 |
$output .= 'noopener ';
|
1331 |
}
|
1332 |
+
if ( 'info' !== $service ) {
|
1333 |
+
$output .= 'nofollow"';
|
1334 |
+
}
|
1335 |
}
|
1336 |
$output .= ' class="shariff-link';
|
1337 |
|