Skip to content

Commit 933be06

Browse files
committed
version 1.0.4
1 parent f5569be commit 933be06

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=1.0.3-linkedin
1+
version=1.0.4
22
if [ "$1" = "zip" ]; then
33
rm -rf shariff-wp
44
mkdir -p shariff-wp
@@ -25,4 +25,4 @@ elif [ "$1" = "svn" ]; then
2525
else
2626
echo "Nothing specified! Exiting..."
2727
exit 1
28-
fi
28+
fi

src/backend/index.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ public static function run()
2121
if (strpos($_GET["service"],"l") !== false) {
2222
$services[] = "LinkedIn";
2323
}
24-
/*if (strpos($_GET["services"]) !== false) {
25-
$services =
26-
}*/
2724
$arrayconfig = Array ( "cache" => Array ( "ttl" => $_GET["ttl"]),"domain" => $_SERVER["HTTP_HOST"],"services" => $services);
2825
$shariff = new Backend($arrayconfig);
2926
echo json_encode($shariff->get($_GET["url"]));

src/locale/shariff-de_DE.mo

0 Bytes
Binary file not shown.

src/locale/shariff-de_DE.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: shariff\n"
4-
"POT-Creation-Date: 2014-12-01 20:18+0100\n"
5-
"PO-Revision-Date: 2014-12-01 20:18+0100\n"
4+
"POT-Creation-Date: 2014-12-01 20:39+0100\n"
5+
"PO-Revision-Date: 2014-12-01 20:39+0100\n"
66
"Last-Translator: Yannik Ehlert <[email protected]>\n"
77
"Language-Team: Yannik Ehlert <[email protected]>\n"
88
"Language: de\n"

src/readme.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== Shariff for Wordpress ===
22
Contributors: yanniks
3-
Tags: sharing, social, networks, network, privacy, facebook, twitter, google, whatsapp, heise
3+
Tags: sharing, social, networks, network, privacy, facebook, twitter, google, whatsapp, linkedin, heise
44
Requires at least: 3.0
55
Tested up to: 4.0.1
6-
Stable tag: 1.0.3
6+
Stable tag: 1.0.4
77
License: MIT
88
License URI: http://opensource.org/licenses/MIT
99

@@ -19,7 +19,7 @@ This is the Shariff sharing plugin by Heise Zeitschriften Verlag / c't updated f
1919

2020
> Shariff `(/ˈʃɛɹɪf/)` is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.
2121

22-
Shariff supports sharing buttons for Facebook, Twitter, Google+, WhatsApp and mail.
22+
Shariff supports sharing buttons for Facebook, Twitter, Google+, LinkedIn, WhatsApp and mail.
2323
Select which color you want, set the button location, select the orientation fitting most to your website and set the TTL just as you want.
2424

2525
== Installation ==
@@ -44,6 +44,10 @@ Select which color you want, set the button location, select the orientation fit
4444

4545
== Changelog ==
4646

47+
= 1.0.4 =
48+
* Add experimental LinkedIn support
49+
* Set default TTL to 60
50+
4751
= 1.0.3 =
4852
* Include latest upstream changes
4953
* Checkbox to hide Shariff when editing articles or pages

src/shariff-wp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Shariff for Wordpress
44
* Plugin URI: http://www.heise.de/newsticker/meldung/c-t-entwickelt-datenschutzfreundliche-Social-Media-Buttons-weiter-2466687.html
55
* Description: Shariff enables website users to share their favorite content without compromising their privacy.
6-
* Version: 1.0.3-linkedin
6+
* Version: 1.0.4
77
* Author: Heise Zeitschriften Verlag / Yannik Ehlert
88
* Author URI: http://www.heise.de
99
* Text Domain: shariff
@@ -67,7 +67,7 @@ function shariffsharing($content) {
6767
$content2 = $content;
6868
}
6969
if (!((strpos($content,'hideshariff') !== false) && (strpos($content,'/hideshariff') == false)) && !(get_post_meta($post->ID, 'shariff_enabled', true))) {
70-
$content2 .= '<div class="shariff" data-backend-url="'.plugins_url( 'backend/index.php', __FILE__ ).'" data-ttl="'.get_option('shariff_ttl',"30").'" data-service="'.$serv.'" data-services=\''.$services.'\' data-url="'.get_permalink().'" data-lang="'.__('en', 'shariff').'" data-theme="'.get_option('shariff_color',"colored").'" data-orientation="'.get_option('shariff_orientation',"horizontal").'"></div>';
70+
$content2 .= '<div class="shariff" data-backend-url="'.plugins_url( 'backend/index.php', __FILE__ ).'" data-ttl="'.get_option('shariff_ttl',"60").'" data-service="'.$serv.'" data-services=\''.$services.'\' data-url="'.get_permalink().'" data-lang="'.__('en', 'shariff').'" data-theme="'.get_option('shariff_color',"colored").'" data-orientation="'.get_option('shariff_orientation',"horizontal").'"></div>';
7171
}
7272
if (get_option('shariff_beforeafter','before') != 'after') {
7373
$content2 .= $content;
@@ -153,7 +153,7 @@ function setting_orientation_callback() {
153153
</select>';
154154
}
155155
function setting_ttl_callback() {
156-
echo '<input type="number" name="shariff_ttl" value="'.get_option("shariff_ttl","30").'">';
156+
echo '<input type="number" name="shariff_ttl" value="'.get_option("shariff_ttl","60").'">';
157157
}
158158
function setting_color_callback() {
159159
echo '<select name="shariff_color">

0 commit comments

Comments
 (0)