Version Description
Please update to version 2.0.5 for improved script handling, added buttons, bug fixes and integration of Bit.ly url shortening and Open Graph tags. Custom post types are now supported.
Download this release
Release Info
Developer | MarijnRongen |
Plugin | Social Sharing Toolkit |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- admin.css +31 -5
- banners/3docean.gif +0 -0
- banners/activeden.gif +0 -0
- banners/audiojungle.gif +0 -0
- banners/codecanyon.gif +0 -0
- banners/graphicriver.gif +0 -0
- banners/mojo_1.jpg +0 -0
- banners/mojo_2.jpg +0 -0
- banners/photodune.gif +0 -0
- banners/themeforest.gif +0 -0
- banners/tutsplus.gif +0 -0
- banners/videohive.gif +0 -0
- delicious.js +26 -0
- images/buttons/pinterest.png +0 -0
- images/buttons/stumbleupon.png +0 -0
- images/buttons/xing.png +0 -0
- images/icons_large/500px.png +0 -0
- images/icons_large/buffer.png +0 -0
- images/icons_large/googleplus.png +0 -0
- images/icons_large/pinterest.png +0 -0
- images/icons_large/stumbleupon.png +0 -0
- images/icons_large/xing.png +0 -0
- images/icons_medium/500px.png +0 -0
- images/icons_medium/buffer.png +0 -0
- images/icons_medium/googleplus.png +0 -0
- images/icons_medium/pinterest.png +0 -0
- images/icons_medium/stumbleupon.png +0 -0
- images/icons_medium/xing.png +0 -0
- images/icons_small/500px.png +0 -0
- images/icons_small/buffer.png +0 -0
- images/icons_small/googleplus.png +0 -0
- images/icons_small/pinterest.png +0 -0
- images/icons_small/stumbleupon.png +0 -0
- images/icons_small/xing.png +0 -0
- languages/mr_social_sharing_toolkit-nl_NL.mo +0 -0
- languages/mr_social_sharing_toolkit-nl_NL.po +131 -83
- languages/mr_social_sharing_toolkit.pot +104 -53
- pinterest.js +20 -0
- readme.txt +44 -15
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- script.js +2 -26
- script_no_follow.js +15 -0
- social_sharing_toolkit.php +746 -101
- stumbleupon.js +5 -0
- style.css +24 -144
admin.css
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
ul.tabs {
|
2 |
-
height: 24px;
|
|
|
|
|
3 |
}
|
4 |
|
5 |
ul.tabs li {
|
@@ -10,15 +12,24 @@ ul.tabs li.ui-state-default, ul.tabs li.ui-state-active {
|
|
10 |
height: 20px;
|
11 |
padding: 2px 4px;
|
12 |
margin: 0 0 0 2px;
|
13 |
-
background-color: #
|
14 |
border-color: #DFDFDF;
|
15 |
border-radius: 3px 3px 0 0;
|
16 |
border-style: solid;
|
17 |
-
border-width: 1px 1px 0 1px;
|
18 |
}
|
19 |
|
20 |
ul.tabs li.ui-state-active {
|
21 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
div.mr_social_sharing_networks {
|
@@ -42,7 +53,7 @@ div.mr_social_sharing_networks {
|
|
42 |
padding: 0 0 10px 0;
|
43 |
}
|
44 |
|
45 |
-
.mr_social_sharing_networks h3, .mr_social_sharing_networks p {
|
46 |
padding: 0 10px 0 10px;
|
47 |
}
|
48 |
|
@@ -134,4 +145,19 @@ ul#mr_social_sharing_networks li select, ul#mr_social_sharing_shortcode_networks
|
|
134 |
|
135 |
label.check {
|
136 |
width: 400px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
1 |
ul.tabs {
|
2 |
+
height: 24px;
|
3 |
+
padding: 0;
|
4 |
+
margin: 0;
|
5 |
}
|
6 |
|
7 |
ul.tabs li {
|
12 |
height: 20px;
|
13 |
padding: 2px 4px;
|
14 |
margin: 0 0 0 2px;
|
15 |
+
background-color: #F0F0F0;
|
16 |
border-color: #DFDFDF;
|
17 |
border-radius: 3px 3px 0 0;
|
18 |
border-style: solid;
|
19 |
+
border-width: 1px 1px 0 1px;
|
20 |
}
|
21 |
|
22 |
ul.tabs li.ui-state-active {
|
23 |
+
background-color: #FFF;
|
24 |
+
}
|
25 |
+
|
26 |
+
ul.tabs li.ui-state-default a, ul.tabs li.ui-state-active a {
|
27 |
+
text-decoration: none;
|
28 |
+
}
|
29 |
+
|
30 |
+
ul.tabs li.ui-state-active a {
|
31 |
+
color: #000;
|
32 |
+
font-weight: bold;
|
33 |
}
|
34 |
|
35 |
div.mr_social_sharing_networks {
|
53 |
padding: 0 0 10px 0;
|
54 |
}
|
55 |
|
56 |
+
.mr_social_sharing_networks h3, .mr_social_sharing_networks h4, .mr_social_sharing_networks p {
|
57 |
padding: 0 10px 0 10px;
|
58 |
}
|
59 |
|
145 |
|
146 |
label.check {
|
147 |
width: 400px;
|
148 |
+
}
|
149 |
+
|
150 |
+
.banners {
|
151 |
+
text-align: center;
|
152 |
+
}
|
153 |
+
|
154 |
+
.banners a {
|
155 |
+
display: inline-block;
|
156 |
+
width: 468px;
|
157 |
+
height: 60px;
|
158 |
+
padding: 10px 0 0 0;
|
159 |
+
}
|
160 |
+
|
161 |
+
.banners a img {
|
162 |
+
border: 0;
|
163 |
}
|
banners/3docean.gif
ADDED
Binary file
|
banners/activeden.gif
ADDED
Binary file
|
banners/audiojungle.gif
ADDED
Binary file
|
banners/codecanyon.gif
ADDED
Binary file
|
banners/graphicriver.gif
ADDED
Binary file
|
banners/mojo_1.jpg
ADDED
Binary file
|
banners/mojo_2.jpg
ADDED
Binary file
|
banners/photodune.gif
ADDED
Binary file
|
banners/themeforest.gif
ADDED
Binary file
|
banners/tutsplus.gif
ADDED
Binary file
|
banners/videohive.gif
ADDED
Binary file
|
delicious.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
// Delicious:
|
3 |
+
$.each($("span.delicious_hash"), function () {
|
4 |
+
var elem = $(this);
|
5 |
+
$.ajax({ type: "GET",
|
6 |
+
dataType: "jsonp",
|
7 |
+
url: "http://feeds.delicious.com/v2/json/urlinfo/"+$(this).html(),
|
8 |
+
success: function(data){
|
9 |
+
if (data.length > 0) {
|
10 |
+
var posts = parseInt(data[0].total_posts);
|
11 |
+
if (posts > 1000000) {
|
12 |
+
var txt = parseInt(posts/1000000);
|
13 |
+
elem.next().prepend(txt + 'M');
|
14 |
+
} else if (posts > 1000) {
|
15 |
+
var txt = parseInt(posts/1000);
|
16 |
+
elem.next().prepend(txt + 'K');
|
17 |
+
} else {
|
18 |
+
elem.next().prepend(posts);
|
19 |
+
}
|
20 |
+
} else {
|
21 |
+
elem.next().prepend('0');
|
22 |
+
}
|
23 |
+
}
|
24 |
+
});
|
25 |
+
});
|
26 |
+
});
|
images/buttons/pinterest.png
ADDED
Binary file
|
images/buttons/stumbleupon.png
CHANGED
Binary file
|
images/buttons/xing.png
ADDED
Binary file
|
images/icons_large/500px.png
ADDED
Binary file
|
images/icons_large/buffer.png
ADDED
Binary file
|
images/icons_large/googleplus.png
CHANGED
Binary file
|
images/icons_large/pinterest.png
ADDED
Binary file
|
images/icons_large/stumbleupon.png
CHANGED
Binary file
|
images/icons_large/xing.png
ADDED
Binary file
|
images/icons_medium/500px.png
ADDED
Binary file
|
images/icons_medium/buffer.png
ADDED
Binary file
|
images/icons_medium/googleplus.png
CHANGED
Binary file
|
images/icons_medium/pinterest.png
ADDED
Binary file
|
images/icons_medium/stumbleupon.png
CHANGED
Binary file
|
images/icons_medium/xing.png
ADDED
Binary file
|
images/icons_small/500px.png
ADDED
Binary file
|
images/icons_small/buffer.png
ADDED
Binary file
|
images/icons_small/googleplus.png
CHANGED
Binary file
|
images/icons_small/pinterest.png
ADDED
Binary file
|
images/icons_small/stumbleupon.png
CHANGED
Binary file
|
images/icons_small/xing.png
ADDED
Binary file
|
languages/mr_social_sharing_toolkit-nl_NL.mo
CHANGED
Binary file
|
languages/mr_social_sharing_toolkit-nl_NL.po
CHANGED
@@ -2,17 +2,16 @@
|
|
2 |
# This file is distributed under the same license as the Social Sharing Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Social Sharing Toolkit 2.0.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/social_sharing_toolkit\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: Marijn Rongen <m.rongen@active-bits.nl>\n"
|
13 |
"Language-Team: Dutch <LL@li.org>\n"
|
14 |
|
15 |
-
#: Button types:
|
16 |
msgid "Button"
|
17 |
msgstr "Knop"
|
18 |
|
@@ -49,7 +48,6 @@ msgstr "Afscheiding"
|
|
49 |
msgid "RSS Feed"
|
50 |
msgstr "RSS Feed"
|
51 |
|
52 |
-
#: Admin screen:
|
53 |
msgid "Donate"
|
54 |
msgstr "Doneren"
|
55 |
|
@@ -59,8 +57,8 @@ msgstr "Instellingen opgeslagen"
|
|
59 |
msgid "General settings"
|
60 |
msgstr "Algemene instellingen"
|
61 |
|
62 |
-
msgid "
|
63 |
-
msgstr "
|
64 |
|
65 |
msgid "Shortcode"
|
66 |
msgstr "Shortcode"
|
@@ -71,10 +69,9 @@ msgstr "Deel Widget"
|
|
71 |
msgid "Follow Widget"
|
72 |
msgstr "Volg Widget"
|
73 |
|
74 |
-
msgid "
|
75 |
-
msgstr "
|
76 |
|
77 |
-
#: General settings:
|
78 |
msgid "Load JavaScript in footer"
|
79 |
msgstr "JavaScript in footer laden"
|
80 |
|
@@ -102,15 +99,6 @@ msgstr "Vertoon voor en na inhoud"
|
|
102 |
msgid "Place buttons on"
|
103 |
msgstr "Plaats knoppen op"
|
104 |
|
105 |
-
msgid "Posts and pages"
|
106 |
-
msgstr "Berichten en pagina's"
|
107 |
-
|
108 |
-
msgid "Only on posts"
|
109 |
-
msgstr "Enkel berichten"
|
110 |
-
|
111 |
-
msgid "Only on pages"
|
112 |
-
msgstr "Enkel pagina's"
|
113 |
-
|
114 |
msgid "Enable shortcode"
|
115 |
msgstr "Shortcode inschakelen"
|
116 |
|
@@ -123,7 +111,9 @@ msgstr "Ontvink dit als u problemen ondervindt met de weergave van knoppen in sa
|
|
123 |
msgid "Include buttons in excerpts"
|
124 |
msgstr "Toon knoppen in samenvattingen"
|
125 |
|
126 |
-
|
|
|
|
|
127 |
msgid "Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress)."
|
128 |
msgstr "Vink de knoppen aan om deze weer te geven op uw website. Voor elke knop kunt u een apart stijl selecteren uit het selectieveld. U kunt de volgorde van de knoppen wijzigen door deze naar de gewenste positie in de lijst te slepen. Voor de Tweet knop kunt u ook uw Twitter gebruikersnaam invullen om deze aan de tweet toe te voegen (zoals via @WordPress)."
|
129 |
|
@@ -139,72 +129,75 @@ msgstr "ga naar de widget configuratie pagina"
|
|
139 |
msgid "Check the boxes to display the button on Social Sharing Toolkit Follow widget. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list."
|
140 |
msgstr "Vink de knoppen aan om deze weer te geven in de Social Sharing Toolkit Volg widget. Voor elke knop kunt u een apart stijl selecteren uit het selectieveld. U kunt de volgorde van de knoppen wijzigen door deze naar de gewenste positie in de lijst te slepen."
|
141 |
|
142 |
-
msgid "Change button order"
|
143 |
-
msgstr "Verander volgorde van knoppen"
|
144 |
-
|
145 |
-
msgid "Choose button orientation horizontal to display the buttons side by side, vertical will place them below each other. You can also select an alignment to better suit your theme."
|
146 |
-
msgstr "Kies horizontale knop orientatie om de knoppen langs elkaar te tonen, de verticale orientatie zal de knoppen onder elkaar plaatsen. U kunt ook een uitlijning kiezen welke beter bij uw thema past. "
|
147 |
-
|
148 |
-
msgid "Button orientation"
|
149 |
-
msgstr "Knop orientatie"
|
150 |
-
|
151 |
-
msgid "Horizontal"
|
152 |
-
msgstr "Horizontaal"
|
153 |
-
|
154 |
-
msgid "Vertical"
|
155 |
-
msgstr "Verticaal"
|
156 |
-
|
157 |
-
msgid "Button alignment"
|
158 |
-
msgstr "Knop uitlijning"
|
159 |
-
|
160 |
-
msgid "Align to bottom"
|
161 |
-
msgstr "Uitlijnen op onderkant"
|
162 |
-
|
163 |
-
msgid "Align to top"
|
164 |
-
msgstr "Uitlijnen op bovenkant"
|
165 |
-
|
166 |
-
#: Automatic Twitter links settings:
|
167 |
msgid "For each button you only have to enter your id or username of the network as it appears in the url of your profile page. You will need to enter the complete url for the RSS Feed (including the http:// part) if you wish to display this button."
|
168 |
msgstr "Voor elke knop hoeft u enkel uw id of gebruikersnaam van het netwerk op te geven zoals deze wordt weergegeven in de url van uw profielpagina. U dient de complete url op te geven voor de RSS Feed (inclusief http://) als u deze wenst weer te geven."
|
169 |
|
170 |
msgid "To add the widget to your website"
|
171 |
msgstr "Om de widget aan uw website toe te voegen"
|
172 |
|
|
|
|
|
|
|
173 |
msgid "Select what you want to convert:"
|
174 |
-
msgstr "
|
175 |
|
176 |
msgid "Convert Twitter usernames"
|
177 |
-
msgstr "
|
178 |
|
179 |
msgid "Convert hashtags"
|
180 |
-
msgstr "
|
181 |
|
182 |
msgid "And where it should be converted:"
|
183 |
msgstr "En waar het geconverteerd moet worden:"
|
184 |
|
185 |
msgid "Convert in posts and pages"
|
186 |
-
msgstr "
|
187 |
|
188 |
msgid "Convert in comments"
|
189 |
-
msgstr "
|
190 |
|
191 |
-
|
192 |
-
|
193 |
-
msgstr "Titel"
|
194 |
|
195 |
-
msgid "
|
196 |
-
msgstr "
|
197 |
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
|
201 |
-
msgid "
|
202 |
-
msgstr "
|
203 |
|
204 |
-
msgid "
|
205 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
-
#: Thank you box:
|
208 |
msgid "Thank you for using the Social Sharing Toolkit!"
|
209 |
msgstr "Bedankt voor het gebruiken van de Social Sharing Toolkit!"
|
210 |
|
@@ -226,25 +219,59 @@ msgstr "Als u de plugin echt leuk vindt kunt u ook"
|
|
226 |
msgid "donate here"
|
227 |
msgstr "hier doneren"
|
228 |
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
msgid "en_US"
|
231 |
msgstr "nl_NL"
|
232 |
|
233 |
-
|
|
|
|
|
234 |
msgid "fb_horizontal_width"
|
235 |
-
msgstr "
|
|
|
|
|
|
|
236 |
|
237 |
-
#: Facebook vertical counter width:
|
238 |
msgid "fb_vertical_width"
|
239 |
-
msgstr "
|
|
|
|
|
|
|
240 |
|
241 |
-
#: Facebook button width (to hide text):
|
242 |
msgid "fb_standard_width"
|
243 |
-
msgstr "
|
244 |
|
245 |
-
#: Button texts and titles:
|
246 |
msgid "Share on"
|
247 |
-
msgstr "Deel
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
msgid "Submit to"
|
250 |
msgstr "Voeg toe aan"
|
@@ -264,23 +291,26 @@ msgstr "Bevriend me op"
|
|
264 |
msgid "Follow me on"
|
265 |
msgstr "Volg me op"
|
266 |
|
267 |
-
msgid "My profile on"
|
268 |
-
msgstr "Mijn profiel op"
|
269 |
-
|
270 |
-
msgid "Follow my company on"
|
271 |
-
msgstr "Volg mijn bedrijf op"
|
272 |
-
|
273 |
msgid "Add me to your circles"
|
274 |
msgstr "Voeg me toe aan je cirkels"
|
275 |
|
276 |
msgid "Join my network on"
|
277 |
msgstr "Wordt lid van mijn netwerk op"
|
278 |
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
msgid "Watch me on"
|
280 |
msgstr "Bekijk me op"
|
281 |
|
282 |
msgid "My photostream on"
|
283 |
-
msgstr "Mijn
|
|
|
|
|
|
|
284 |
|
285 |
msgid "My Picasa Web Albums"
|
286 |
msgstr "Mijn Picasa Web Albums"
|
@@ -288,23 +318,41 @@ msgstr "Mijn Picasa Web Albums"
|
|
288 |
msgid "My deviantArt"
|
289 |
msgstr "Mijn deviantArt"
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
#. Plugin Name of the plugin/theme
|
292 |
msgid "Social Sharing Toolkit"
|
293 |
msgstr "Social Sharing Toolkit"
|
294 |
|
295 |
#. Plugin URI of the plugin/theme
|
296 |
-
msgid "http://www.
|
297 |
-
msgstr "
|
298 |
|
299 |
#. Description of the plugin/theme
|
300 |
msgid "This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable."
|
301 |
-
msgstr "
|
302 |
|
303 |
#. Author of the plugin/theme
|
304 |
msgid "Marijn Rongen"
|
305 |
msgstr "Marijn Rongen"
|
306 |
|
307 |
#. Author URI of the plugin/theme
|
308 |
-
msgid "http://www.
|
309 |
-
msgstr "http://www.
|
310 |
|
2 |
# This file is distributed under the same license as the Social Sharing Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Social Sharing Toolkit 2.0.5\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/social_sharing_toolkit\n"
|
7 |
+
"POT-Creation-Date: 2012-04-07 14:59:58+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2012-04-07 17:37+0100\n"
|
12 |
"Last-Translator: Marijn Rongen <m.rongen@active-bits.nl>\n"
|
13 |
"Language-Team: Dutch <LL@li.org>\n"
|
14 |
|
|
|
15 |
msgid "Button"
|
16 |
msgstr "Knop"
|
17 |
|
48 |
msgid "RSS Feed"
|
49 |
msgstr "RSS Feed"
|
50 |
|
|
|
51 |
msgid "Donate"
|
52 |
msgstr "Doneren"
|
53 |
|
57 |
msgid "General settings"
|
58 |
msgstr "Algemene instellingen"
|
59 |
|
60 |
+
msgid "Content"
|
61 |
+
msgstr "Inhoud"
|
62 |
|
63 |
msgid "Shortcode"
|
64 |
msgstr "Shortcode"
|
69 |
msgid "Follow Widget"
|
70 |
msgstr "Volg Widget"
|
71 |
|
72 |
+
msgid "Advanced settings"
|
73 |
+
msgstr "Geavanceerde instellingen"
|
74 |
|
|
|
75 |
msgid "Load JavaScript in footer"
|
76 |
msgstr "JavaScript in footer laden"
|
77 |
|
99 |
msgid "Place buttons on"
|
100 |
msgstr "Plaats knoppen op"
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
msgid "Enable shortcode"
|
103 |
msgstr "Shortcode inschakelen"
|
104 |
|
111 |
msgid "Include buttons in excerpts"
|
112 |
msgstr "Toon knoppen in samenvattingen"
|
113 |
|
114 |
+
msgid "Use rel=\"nofollow\" on links to social networks"
|
115 |
+
msgstr "Gebruik rel=\"nofollow\" voor links naar sociale networken"
|
116 |
+
|
117 |
msgid "Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress)."
|
118 |
msgstr "Vink de knoppen aan om deze weer te geven op uw website. Voor elke knop kunt u een apart stijl selecteren uit het selectieveld. U kunt de volgorde van de knoppen wijzigen door deze naar de gewenste positie in de lijst te slepen. Voor de Tweet knop kunt u ook uw Twitter gebruikersnaam invullen om deze aan de tweet toe te voegen (zoals via @WordPress)."
|
119 |
|
129 |
msgid "Check the boxes to display the button on Social Sharing Toolkit Follow widget. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list."
|
130 |
msgstr "Vink de knoppen aan om deze weer te geven in de Social Sharing Toolkit Volg widget. Voor elke knop kunt u een apart stijl selecteren uit het selectieveld. U kunt de volgorde van de knoppen wijzigen door deze naar de gewenste positie in de lijst te slepen."
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
msgid "For each button you only have to enter your id or username of the network as it appears in the url of your profile page. You will need to enter the complete url for the RSS Feed (including the http:// part) if you wish to display this button."
|
133 |
msgstr "Voor elke knop hoeft u enkel uw id of gebruikersnaam van het netwerk op te geven zoals deze wordt weergegeven in de url van uw profielpagina. U dient de complete url op te geven voor de RSS Feed (inclusief http://) als u deze wenst weer te geven."
|
134 |
|
135 |
msgid "To add the widget to your website"
|
136 |
msgstr "Om de widget aan uw website toe te voegen"
|
137 |
|
138 |
+
msgid "Automatic Twitter links"
|
139 |
+
msgstr "Automatische Twitter links"
|
140 |
+
|
141 |
msgid "Select what you want to convert:"
|
142 |
+
msgstr "Selecteer wat u wilt converteren:"
|
143 |
|
144 |
msgid "Convert Twitter usernames"
|
145 |
+
msgstr "Twitter gebruikersnamen converteren"
|
146 |
|
147 |
msgid "Convert hashtags"
|
148 |
+
msgstr "Hashtags converteren"
|
149 |
|
150 |
msgid "And where it should be converted:"
|
151 |
msgstr "En waar het geconverteerd moet worden:"
|
152 |
|
153 |
msgid "Convert in posts and pages"
|
154 |
+
msgstr "Converteren in inhoud"
|
155 |
|
156 |
msgid "Convert in comments"
|
157 |
+
msgstr "Converteren in reacties"
|
158 |
|
159 |
+
msgid "Open links in new window or tab"
|
160 |
+
msgstr "Open links in een nieuw venster of tabblad"
|
|
|
161 |
|
162 |
+
msgid "Bitly"
|
163 |
+
msgstr "Bitly"
|
164 |
|
165 |
+
msgid "Use Bitly url shortening for the tweet button"
|
166 |
+
msgstr "Gebruik Bitly url verkorting voor de tweet knop"
|
167 |
|
168 |
+
msgid "Enable Bitly URL shortening"
|
169 |
+
msgstr "Bilty URL verkorting inschakelen"
|
170 |
|
171 |
+
msgid "Your bitly Username"
|
172 |
+
msgstr "Uw bitly gebruikersnaam"
|
173 |
+
|
174 |
+
msgid "Your bitly API Key"
|
175 |
+
msgstr "Uw bitly API Sleutel"
|
176 |
+
|
177 |
+
msgid "OpenGraph"
|
178 |
+
msgstr "OpenGraph"
|
179 |
+
|
180 |
+
msgid "Include Open Graph tags"
|
181 |
+
msgstr "Open Graph tags gebruiken"
|
182 |
+
|
183 |
+
msgid "Enable Open Graph"
|
184 |
+
msgstr "Open Graph inschakelen"
|
185 |
+
|
186 |
+
msgid "Default image URL"
|
187 |
+
msgstr "Standaard afbeelding URL"
|
188 |
+
|
189 |
+
msgid "You can specify a link to an image you would like to include in your likes and shares"
|
190 |
+
msgstr "U kunt een link naar een afbeelding invullen die u wilt gebruiken voor gedeelde inhoud"
|
191 |
+
|
192 |
+
msgid "Always use the default image"
|
193 |
+
msgstr "Altijd de standaard afbeelding gebruiken"
|
194 |
+
|
195 |
+
msgid "Check this box to always display the default image with you shared content"
|
196 |
+
msgstr "Vink deze knop aan om altijd de standaard afbeelding to tonen bij uw gedeelde inhoud"
|
197 |
+
|
198 |
+
msgid "Save Changes"
|
199 |
+
msgstr "Veranderingen Opslaan"
|
200 |
|
|
|
201 |
msgid "Thank you for using the Social Sharing Toolkit!"
|
202 |
msgstr "Bedankt voor het gebruiken van de Social Sharing Toolkit!"
|
203 |
|
219 |
msgid "donate here"
|
220 |
msgstr "hier doneren"
|
221 |
|
222 |
+
msgid "Change button order"
|
223 |
+
msgstr "Verander volgorde van knoppen"
|
224 |
+
|
225 |
+
msgid "Choose button orientation horizontal to display the buttons side by side, vertical will place them below each other. You can also select an alignment to better suit your theme."
|
226 |
+
msgstr "Kies horizontale knop orientatie om de knoppen langs elkaar te tonen, de verticale orientatie zal de knoppen onder elkaar plaatsen. U kunt ook een uitlijning kiezen welke beter bij uw thema past. "
|
227 |
+
|
228 |
+
msgid "Button orientation"
|
229 |
+
msgstr "Knop orientatie"
|
230 |
+
|
231 |
+
msgid "Horizontal"
|
232 |
+
msgstr "Horizontaal"
|
233 |
+
|
234 |
+
msgid "Vertical"
|
235 |
+
msgstr "Verticaal"
|
236 |
+
|
237 |
+
msgid "Button alignment"
|
238 |
+
msgstr "Knop uitlijning"
|
239 |
+
|
240 |
+
msgid "Align to bottom"
|
241 |
+
msgstr "Uitlijnen op onderkant"
|
242 |
+
|
243 |
+
msgid "Align to top"
|
244 |
+
msgstr "Uitlijnen op bovenkant"
|
245 |
+
|
246 |
msgid "en_US"
|
247 |
msgstr "nl_NL"
|
248 |
|
249 |
+
msgid "fb_horizontal_recommend_width"
|
250 |
+
msgstr "125"
|
251 |
+
|
252 |
msgid "fb_horizontal_width"
|
253 |
+
msgstr "125"
|
254 |
+
|
255 |
+
msgid "fb_vertical_recommend_width"
|
256 |
+
msgstr "91"
|
257 |
|
|
|
258 |
msgid "fb_vertical_width"
|
259 |
+
msgstr "91"
|
260 |
+
|
261 |
+
msgid "fb_standard_recommend_width"
|
262 |
+
msgstr "93"
|
263 |
|
|
|
264 |
msgid "fb_standard_width"
|
265 |
+
msgstr "93"
|
266 |
|
|
|
267 |
msgid "Share on"
|
268 |
+
msgstr "Deel op"
|
269 |
+
|
270 |
+
msgid "Add to"
|
271 |
+
msgstr "Toevoegen aan"
|
272 |
+
|
273 |
+
msgid "Pin it on"
|
274 |
+
msgstr "Pin het op"
|
275 |
|
276 |
msgid "Submit to"
|
277 |
msgstr "Voeg toe aan"
|
291 |
msgid "Follow me on"
|
292 |
msgstr "Volg me op"
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
msgid "Add me to your circles"
|
295 |
msgstr "Voeg me toe aan je cirkels"
|
296 |
|
297 |
msgid "Join my network on"
|
298 |
msgstr "Wordt lid van mijn netwerk op"
|
299 |
|
300 |
+
msgid "Follow my company on"
|
301 |
+
msgstr "Volg mijn bedrijf op"
|
302 |
+
|
303 |
+
msgid "Join my group on"
|
304 |
+
msgstr "Wordt lid van mijn groep op"
|
305 |
+
|
306 |
msgid "Watch me on"
|
307 |
msgstr "Bekijk me op"
|
308 |
|
309 |
msgid "My photostream on"
|
310 |
+
msgstr "Mijn photostream op"
|
311 |
+
|
312 |
+
msgid "My portfolio on"
|
313 |
+
msgstr "Mijn portfolio op"
|
314 |
|
315 |
msgid "My Picasa Web Albums"
|
316 |
msgstr "Mijn Picasa Web Albums"
|
318 |
msgid "My deviantArt"
|
319 |
msgstr "Mijn deviantArt"
|
320 |
|
321 |
+
msgid "My profile on"
|
322 |
+
msgstr "Mijn profiel op"
|
323 |
+
|
324 |
+
msgid "Title"
|
325 |
+
msgstr "Titel"
|
326 |
+
|
327 |
+
msgid "Fixed title"
|
328 |
+
msgstr "Vaste titel"
|
329 |
+
|
330 |
+
msgid "Fixed url"
|
331 |
+
msgstr "Vaste url"
|
332 |
+
|
333 |
+
msgid "Further configuration is done via the"
|
334 |
+
msgstr "Verdere configuratie wordt gedaan via het"
|
335 |
+
|
336 |
+
msgid "plugin admin screen"
|
337 |
+
msgstr "plugin admin scherm"
|
338 |
+
|
339 |
#. Plugin Name of the plugin/theme
|
340 |
msgid "Social Sharing Toolkit"
|
341 |
msgstr "Social Sharing Toolkit"
|
342 |
|
343 |
#. Plugin URI of the plugin/theme
|
344 |
+
msgid "http://www.active-bits.nl/support/social_sharing_toolkit/"
|
345 |
+
msgstr "Social Sharing Toolkit"
|
346 |
|
347 |
#. Description of the plugin/theme
|
348 |
msgid "This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable."
|
349 |
+
msgstr "http://www.active-bits.nl/support/social_sharing_toolkit/"
|
350 |
|
351 |
#. Author of the plugin/theme
|
352 |
msgid "Marijn Rongen"
|
353 |
msgstr "Marijn Rongen"
|
354 |
|
355 |
#. Author URI of the plugin/theme
|
356 |
+
msgid "http://www.active-bits.nl"
|
357 |
+
msgstr "http://www.active-bits.nl"
|
358 |
|
languages/mr_social_sharing_toolkit.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Social Sharing Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Social Sharing Toolkit 2.0.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/social_sharing_toolkit\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -12,7 +12,6 @@ msgstr ""
|
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: Button types:
|
16 |
msgid "Button"
|
17 |
msgstr ""
|
18 |
|
@@ -49,17 +48,19 @@ msgstr ""
|
|
49 |
msgid "RSS Feed"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: Admin screen:
|
53 |
msgid "Donate"
|
54 |
msgstr ""
|
55 |
|
|
|
|
|
|
|
56 |
msgid "Settings saved."
|
57 |
msgstr ""
|
58 |
|
59 |
msgid "General settings"
|
60 |
msgstr ""
|
61 |
|
62 |
-
msgid "
|
63 |
msgstr ""
|
64 |
|
65 |
msgid "Shortcode"
|
@@ -71,10 +72,9 @@ msgstr ""
|
|
71 |
msgid "Follow Widget"
|
72 |
msgstr ""
|
73 |
|
74 |
-
msgid "
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: General settings:
|
78 |
msgid "Load JavaScript in footer"
|
79 |
msgstr ""
|
80 |
|
@@ -102,28 +102,21 @@ msgstr ""
|
|
102 |
msgid "Place buttons on"
|
103 |
msgstr ""
|
104 |
|
105 |
-
msgid "Posts and pages"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
msgid "Only on posts"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
msgid "Only on pages"
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
msgid "Enable shortcode"
|
115 |
msgstr ""
|
116 |
|
117 |
msgid "Use the shortcode [social_share/] where you want the buttons to appear"
|
118 |
msgstr ""
|
119 |
|
|
|
|
|
|
|
120 |
msgid "Uncheck this box if you are having issues displaying the buttons with excerpts (some themes have custom excerpt functions which do not play nice with the plugin)."
|
121 |
msgstr ""
|
122 |
|
123 |
-
msgid "
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: Posts & Pages, Shortcode, Share and Follow widget settings:
|
127 |
msgid "Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress)."
|
128 |
msgstr ""
|
129 |
|
@@ -139,72 +132,75 @@ msgstr ""
|
|
139 |
msgid "Check the boxes to display the button on Social Sharing Toolkit Follow widget. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list."
|
140 |
msgstr ""
|
141 |
|
142 |
-
msgid "
|
143 |
msgstr ""
|
144 |
|
145 |
-
msgid "
|
146 |
msgstr ""
|
147 |
|
148 |
-
msgid "
|
149 |
msgstr ""
|
150 |
|
151 |
-
msgid "
|
152 |
msgstr ""
|
153 |
|
154 |
-
msgid "
|
155 |
msgstr ""
|
156 |
|
157 |
-
msgid "
|
158 |
msgstr ""
|
159 |
|
160 |
-
msgid "
|
161 |
msgstr ""
|
162 |
|
163 |
-
msgid "
|
164 |
msgstr ""
|
165 |
|
166 |
-
|
167 |
-
msgid "For each button you only have to enter your id or username of the network as it appears in the url of your profile page. You will need to enter the complete url for the RSS Feed (including the http:// part) if you wish to display this button."
|
168 |
msgstr ""
|
169 |
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
msgid "
|
174 |
msgstr ""
|
175 |
|
176 |
-
msgid "
|
177 |
msgstr ""
|
178 |
|
179 |
-
msgid "
|
180 |
msgstr ""
|
181 |
|
182 |
-
msgid "
|
183 |
msgstr ""
|
184 |
|
185 |
-
msgid "
|
186 |
msgstr ""
|
187 |
|
188 |
-
msgid "
|
189 |
msgstr ""
|
190 |
|
191 |
-
|
192 |
-
msgid "Title"
|
193 |
msgstr ""
|
194 |
|
195 |
-
msgid "
|
196 |
msgstr ""
|
197 |
|
198 |
-
msgid "
|
199 |
msgstr ""
|
200 |
|
201 |
-
msgid "
|
202 |
msgstr ""
|
203 |
|
204 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: Thank you box:
|
208 |
msgid "Thank you for using the Social Sharing Toolkit!"
|
209 |
msgstr ""
|
210 |
|
@@ -226,26 +222,60 @@ msgstr ""
|
|
226 |
msgid "donate here"
|
227 |
msgstr ""
|
228 |
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
msgid "en_US"
|
231 |
msgstr ""
|
232 |
|
233 |
-
|
|
|
|
|
234 |
msgid "fb_horizontal_width"
|
235 |
msgstr ""
|
236 |
|
237 |
-
|
|
|
|
|
238 |
msgid "fb_vertical_width"
|
239 |
msgstr ""
|
240 |
|
241 |
-
|
|
|
|
|
242 |
msgid "fb_standard_width"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: Button texts and titles:
|
246 |
msgid "Share on"
|
247 |
msgstr ""
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
msgid "Submit to"
|
250 |
msgstr ""
|
251 |
|
@@ -264,16 +294,16 @@ msgstr ""
|
|
264 |
msgid "Follow me on"
|
265 |
msgstr ""
|
266 |
|
267 |
-
msgid "
|
268 |
msgstr ""
|
269 |
|
270 |
-
msgid "
|
271 |
msgstr ""
|
272 |
|
273 |
-
msgid "
|
274 |
msgstr ""
|
275 |
|
276 |
-
msgid "Join my
|
277 |
msgstr ""
|
278 |
|
279 |
msgid "Watch me on"
|
@@ -282,18 +312,39 @@ msgstr ""
|
|
282 |
msgid "My photostream on"
|
283 |
msgstr ""
|
284 |
|
|
|
|
|
|
|
285 |
msgid "My Picasa Web Albums"
|
286 |
msgstr ""
|
287 |
|
288 |
msgid "My deviantArt"
|
289 |
msgstr ""
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
#. Plugin Name of the plugin/theme
|
292 |
msgid "Social Sharing Toolkit"
|
293 |
msgstr ""
|
294 |
|
295 |
#. Plugin URI of the plugin/theme
|
296 |
-
msgid "http://www.
|
297 |
msgstr ""
|
298 |
|
299 |
#. Description of the plugin/theme
|
@@ -305,5 +356,5 @@ msgid "Marijn Rongen"
|
|
305 |
msgstr ""
|
306 |
|
307 |
#. Author URI of the plugin/theme
|
308 |
-
msgid "http://www.
|
309 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Social Sharing Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Social Sharing Toolkit 2.0.5\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/social_sharing_toolkit\n"
|
7 |
+
"POT-Creation-Date: 2012-04-07 14:59:58+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
|
|
15 |
msgid "Button"
|
16 |
msgstr ""
|
17 |
|
48 |
msgid "RSS Feed"
|
49 |
msgstr ""
|
50 |
|
|
|
51 |
msgid "Donate"
|
52 |
msgstr ""
|
53 |
|
54 |
+
msgid "You do not have sufficient permissions to access this page."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
msgid "Settings saved."
|
58 |
msgstr ""
|
59 |
|
60 |
msgid "General settings"
|
61 |
msgstr ""
|
62 |
|
63 |
+
msgid "Content"
|
64 |
msgstr ""
|
65 |
|
66 |
msgid "Shortcode"
|
72 |
msgid "Follow Widget"
|
73 |
msgstr ""
|
74 |
|
75 |
+
msgid "Advanced settings"
|
76 |
msgstr ""
|
77 |
|
|
|
78 |
msgid "Load JavaScript in footer"
|
79 |
msgstr ""
|
80 |
|
102 |
msgid "Place buttons on"
|
103 |
msgstr ""
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
msgid "Enable shortcode"
|
106 |
msgstr ""
|
107 |
|
108 |
msgid "Use the shortcode [social_share/] where you want the buttons to appear"
|
109 |
msgstr ""
|
110 |
|
111 |
+
msgid "Include buttons in excerpts"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
msgid "Uncheck this box if you are having issues displaying the buttons with excerpts (some themes have custom excerpt functions which do not play nice with the plugin)."
|
115 |
msgstr ""
|
116 |
|
117 |
+
msgid "Use rel=\"nofollow\" on links to social networks"
|
118 |
msgstr ""
|
119 |
|
|
|
120 |
msgid "Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress)."
|
121 |
msgstr ""
|
122 |
|
132 |
msgid "Check the boxes to display the button on Social Sharing Toolkit Follow widget. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list."
|
133 |
msgstr ""
|
134 |
|
135 |
+
msgid "For each button you only have to enter your id or username of the network as it appears in the url of your profile page. You will need to enter the complete url for the RSS Feed (including the http:// part) if you wish to display this button."
|
136 |
msgstr ""
|
137 |
|
138 |
+
msgid "To add the widget to your website"
|
139 |
msgstr ""
|
140 |
|
141 |
+
msgid "Automatic Twitter links"
|
142 |
msgstr ""
|
143 |
|
144 |
+
msgid "Select what you want to convert:"
|
145 |
msgstr ""
|
146 |
|
147 |
+
msgid "Convert Twitter usernames"
|
148 |
msgstr ""
|
149 |
|
150 |
+
msgid "Convert hashtags"
|
151 |
msgstr ""
|
152 |
|
153 |
+
msgid "And where it should be converted:"
|
154 |
msgstr ""
|
155 |
|
156 |
+
msgid "Convert in posts and pages"
|
157 |
msgstr ""
|
158 |
|
159 |
+
msgid "Convert in comments"
|
|
|
160 |
msgstr ""
|
161 |
|
162 |
+
msgid "Open links in new window or tab"
|
163 |
msgstr ""
|
164 |
|
165 |
+
msgid "Bitly"
|
166 |
msgstr ""
|
167 |
|
168 |
+
msgid "Use Bitly url shortening for the tweet button"
|
169 |
msgstr ""
|
170 |
|
171 |
+
msgid "Enable Bitly URL shortening"
|
172 |
msgstr ""
|
173 |
|
174 |
+
msgid "Your bitly Username"
|
175 |
msgstr ""
|
176 |
|
177 |
+
msgid "Your bitly API Key"
|
178 |
msgstr ""
|
179 |
|
180 |
+
msgid "OpenGraph"
|
181 |
msgstr ""
|
182 |
|
183 |
+
msgid "Include Open Graph tags"
|
|
|
184 |
msgstr ""
|
185 |
|
186 |
+
msgid "Enable Open Graph"
|
187 |
msgstr ""
|
188 |
|
189 |
+
msgid "Default image URL"
|
190 |
msgstr ""
|
191 |
|
192 |
+
msgid "You can specify a link to an image you would like to include in your likes and shares"
|
193 |
msgstr ""
|
194 |
|
195 |
+
msgid "Always use the default image"
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
msgid "Check this box to always display the default image with you shared content"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
msgid "Save Changes"
|
202 |
msgstr ""
|
203 |
|
|
|
204 |
msgid "Thank you for using the Social Sharing Toolkit!"
|
205 |
msgstr ""
|
206 |
|
222 |
msgid "donate here"
|
223 |
msgstr ""
|
224 |
|
225 |
+
msgid "Change button order"
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
msgid "Choose button orientation horizontal to display the buttons side by side, vertical will place them below each other. You can also select an alignment to better suit your theme."
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
msgid "Button orientation"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
msgid "Horizontal"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
msgid "Vertical"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
msgid "Button alignment"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
msgid "Align to bottom"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
msgid "Align to top"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
msgid "en_US"
|
250 |
msgstr ""
|
251 |
|
252 |
+
msgid "fb_horizontal_recommend_width"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
msgid "fb_horizontal_width"
|
256 |
msgstr ""
|
257 |
|
258 |
+
msgid "fb_vertical_recommend_width"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
msgid "fb_vertical_width"
|
262 |
msgstr ""
|
263 |
|
264 |
+
msgid "fb_standard_recommend_width"
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
msgid "fb_standard_width"
|
268 |
msgstr ""
|
269 |
|
|
|
270 |
msgid "Share on"
|
271 |
msgstr ""
|
272 |
|
273 |
+
msgid "Add to"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
msgid "Pin it on"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
msgid "Submit to"
|
280 |
msgstr ""
|
281 |
|
294 |
msgid "Follow me on"
|
295 |
msgstr ""
|
296 |
|
297 |
+
msgid "Add me to your circles"
|
298 |
msgstr ""
|
299 |
|
300 |
+
msgid "Join my network on"
|
301 |
msgstr ""
|
302 |
|
303 |
+
msgid "Follow my company on"
|
304 |
msgstr ""
|
305 |
|
306 |
+
msgid "Join my group on"
|
307 |
msgstr ""
|
308 |
|
309 |
msgid "Watch me on"
|
312 |
msgid "My photostream on"
|
313 |
msgstr ""
|
314 |
|
315 |
+
msgid "My portfolio on"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
msgid "My Picasa Web Albums"
|
319 |
msgstr ""
|
320 |
|
321 |
msgid "My deviantArt"
|
322 |
msgstr ""
|
323 |
|
324 |
+
msgid "My profile on"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
msgid "Title"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
msgid "Fixed title"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
msgid "Fixed url"
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
msgid "Further configuration is done via the"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
msgid "plugin admin screen"
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
#. Plugin Name of the plugin/theme
|
343 |
msgid "Social Sharing Toolkit"
|
344 |
msgstr ""
|
345 |
|
346 |
#. Plugin URI of the plugin/theme
|
347 |
+
msgid "http://www.active-bits.nl/support/social_sharing_toolkit/"
|
348 |
msgstr ""
|
349 |
|
350 |
#. Description of the plugin/theme
|
356 |
msgstr ""
|
357 |
|
358 |
#. Author URI of the plugin/theme
|
359 |
+
msgid "http://www.active-bits.nl"
|
360 |
msgstr ""
|
pinterest.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function() {
|
2 |
+
window.PinIt = window.PinIt || { loaded:false };
|
3 |
+
if (window.PinIt.loaded) return;
|
4 |
+
window.PinIt.loaded = true;
|
5 |
+
function async_load(){
|
6 |
+
var s = document.createElement("script");
|
7 |
+
s.type = "text/javascript";
|
8 |
+
s.async = true;
|
9 |
+
if (window.location.protocol == "https:")
|
10 |
+
s.src = "https://assets.pinterest.com/js/pinit.js";
|
11 |
+
else
|
12 |
+
s.src = "http://assets.pinterest.com/js/pinit.js";
|
13 |
+
var x = document.getElementsByTagName("script")[0];
|
14 |
+
x.parentNode.insertBefore(s, x);
|
15 |
+
}
|
16 |
+
if (window.attachEvent)
|
17 |
+
window.attachEvent("onload", async_load);
|
18 |
+
else
|
19 |
+
window.addEventListener("load", async_load, false);
|
20 |
+
})();
|
readme.txt
CHANGED
@@ -1,23 +1,25 @@
|
|
1 |
=== Social Sharing Toolkit ===
|
2 |
Contributors: MarijnRongen
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P8ZVNC57E58FE&lc=NL&item_name=WordPress%20plugins%20by%20Marijn%20Rongen&item_number=Social%20Sharing%20Toolkit¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
-
Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Google+, Twitter, Tweet, Follow, StumbleUpon, Stumble, Tumblr, Delicious, Digg, Reddit, Myspace, Hyves, YouTube, Flickr, Picasa, deaviantART, mail, RSS, feed, connect, recommend, social, sharing, widget, shortcode, page, post, button, counter, icon
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Easy sharing and connecting on social networks. Display on posts or use widgets or shortcode. Also Twitter name/hashtag to link converter.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
= Sharing
|
15 |
|
16 |
-
The plugin currently supports the following networks for sharing:
|
17 |
|
18 |
-
* Facebook (like and send buttons)
|
19 |
* Twitter
|
|
|
20 |
* Google +1
|
|
|
21 |
* LinkedIn
|
22 |
* Tumblr
|
23 |
* StumbleUpon
|
@@ -27,7 +29,7 @@ The plugin currently supports the following networks for sharing:
|
|
27 |
* Myspace
|
28 |
* Hyves
|
29 |
|
30 |
-
On Tweet buttons you can specify a Twitter handle which is then appended to the tweet a visitor sends (like "... via @WordPress"). An email send button is also included.
|
31 |
|
32 |
You can decide which networks to support on your blog, where the buttons will appear (either above or below the content). Through drag and drop you can easily change the order in which the buttons appear.
|
33 |
|
@@ -53,7 +55,7 @@ In version 2.0.4 three dividers were added to each list. These might be useful i
|
|
53 |
|
54 |
= Shortcode =
|
55 |
|
56 |
-
It is also possible to only let the buttons appear where you want by using shortcode. The shortcode function has it's own list of buttons with the same possibilities as the list for
|
57 |
|
58 |
= Widget =
|
59 |
|
@@ -68,12 +70,14 @@ The networks currently supported for the Follow Widget are:
|
|
68 |
* Facebook
|
69 |
* Twitter
|
70 |
* Google+
|
71 |
-
*
|
|
|
72 |
* Tumblr
|
73 |
* Myspace
|
74 |
* Hyves
|
75 |
* YouTube
|
76 |
* Flickr
|
|
|
77 |
* Picasa
|
78 |
* DeviantArt
|
79 |
* Last.fm
|
@@ -87,13 +91,22 @@ A button for an RSS feed is also included. Of course the type, order and orienta
|
|
87 |
* medium icon with text
|
88 |
* large icon
|
89 |
|
90 |
-
To use a button you must enter your user id or username for the network. To use the RSS feed button you must enter the full url.
|
91 |
|
92 |
= Automatic Twitter links =
|
93 |
|
94 |
This plugin also includes a configurable & improved version of my earlier Automatic Twitter Links plugin. You can decide if you want to convert Twitter names and/or hashtags to links.
|
95 |
Twitter names will link to their Twitter profile and hashtags will link to the Twitter search page.
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
== Frequently Asked Questions ==
|
98 |
|
99 |
= My excerpts aren't displaying the buttons but some strange text is displayed =
|
@@ -140,14 +153,15 @@ Upload the Social Sharing Toolkit plugin to the `/wp-content/plugins/` folder on
|
|
140 |
== Screenshots ==
|
141 |
|
142 |
1. Plugin configuration: General settings
|
143 |
-
2. Plugin configuration:
|
144 |
-
3.
|
145 |
-
4. Plugin configuration: Follow Widget
|
146 |
-
5. Example of buttons generated by Follow Widget
|
147 |
-
6. Plugin configuration: Automatic Twitter links
|
148 |
|
149 |
== Upgrade Notice ==
|
150 |
|
|
|
|
|
|
|
|
|
151 |
= 2.0.4 =
|
152 |
|
153 |
Please update to version 2.0.4 for several display bug fixes, internationalization and expanded functionality.
|
@@ -185,6 +199,21 @@ Please update to version 1.0.1 to prevent an unexpected printing of the page tit
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
= 2.0.4 =
|
189 |
* Redesigned email button
|
190 |
* Redesigned Delicious buttons and counters
|
1 |
=== Social Sharing Toolkit ===
|
2 |
Contributors: MarijnRongen
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P8ZVNC57E58FE&lc=NL&item_name=WordPress%20plugins%20by%20Marijn%20Rongen&item_number=Social%20Sharing%20Toolkit¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
+
Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Pinterest, Google+, Twitter, Tweet, Buffer, Follow, StumbleUpon, Stumble, Tumblr, Delicious, Digg, Reddit, Myspace, Hyves, YouTube, Flickr, 500px, Picasa, deaviantART, mail, RSS, feed, connect, recommend, social, sharing, widget, shortcode, page, post, button, counter, icon, bitly, Open Graph
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.3.1
|
7 |
+
Stable tag: 2.0.5
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Easy sharing and connecting on social networks. Display on posts or use widgets or shortcode. Also Twitter name/hashtag to link converter.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
= Sharing content =
|
15 |
|
16 |
+
The plugin currently supports the following networks for sharing your content:
|
17 |
|
18 |
+
* Facebook (like, share and send buttons)
|
19 |
* Twitter
|
20 |
+
* Buffer
|
21 |
* Google +1
|
22 |
+
* Pinterest
|
23 |
* LinkedIn
|
24 |
* Tumblr
|
25 |
* StumbleUpon
|
29 |
* Myspace
|
30 |
* Hyves
|
31 |
|
32 |
+
On Tweet and Buffer buttons you can specify a Twitter handle which is then appended to the tweet a visitor sends (like "... via @WordPress"). An email send button is also included.
|
33 |
|
34 |
You can decide which networks to support on your blog, where the buttons will appear (either above or below the content). Through drag and drop you can easily change the order in which the buttons appear.
|
35 |
|
55 |
|
56 |
= Shortcode =
|
57 |
|
58 |
+
It is also possible to only let the buttons appear where you want by using shortcode. The shortcode function has it's own list of buttons with the same possibilities as the list for content. Use the shortcode [social_share/] in the content where you would like to display the buttons.
|
59 |
|
60 |
= Widget =
|
61 |
|
70 |
* Facebook
|
71 |
* Twitter
|
72 |
* Google+
|
73 |
+
* Pinterest
|
74 |
+
* LinkedIn (including company and group links)
|
75 |
* Tumblr
|
76 |
* Myspace
|
77 |
* Hyves
|
78 |
* YouTube
|
79 |
* Flickr
|
80 |
+
* 500px
|
81 |
* Picasa
|
82 |
* DeviantArt
|
83 |
* Last.fm
|
91 |
* medium icon with text
|
92 |
* large icon
|
93 |
|
94 |
+
To use a button you must enter your user / profile id or username for the network. To use the RSS feed button you must enter the full url.
|
95 |
|
96 |
= Automatic Twitter links =
|
97 |
|
98 |
This plugin also includes a configurable & improved version of my earlier Automatic Twitter Links plugin. You can decide if you want to convert Twitter names and/or hashtags to links.
|
99 |
Twitter names will link to their Twitter profile and hashtags will link to the Twitter search page.
|
100 |
|
101 |
+
= Bitly =
|
102 |
+
|
103 |
+
Since version 2.0.5 the plugin has the option to use bitly to shorten the urls for the tweet button. To use it you need to register with bitly and fill in your bitly username and API key.
|
104 |
+
|
105 |
+
= Open Graph =
|
106 |
+
|
107 |
+
Since version 2.0.5 the plugin also has the option to automatically create Open Graph tags on your Wordpress site. These will tell Facebook for example which image to display when sharing a page.
|
108 |
+
You can enter the URL of a default image to use in case no image was found. The plugin will try to use the thumbnail attached to the post (if your theme supports it), or the first image it finds in the content. To turn of this behavior you can check a box which will force the plugin to always use the default image you have specified.
|
109 |
+
|
110 |
== Frequently Asked Questions ==
|
111 |
|
112 |
= My excerpts aren't displaying the buttons but some strange text is displayed =
|
153 |
== Screenshots ==
|
154 |
|
155 |
1. Plugin configuration: General settings
|
156 |
+
2. Plugin configuration: Content, Shortcode and Share Widget have the same options
|
157 |
+
3. Advanced settings with bitly and Open Graph
|
|
|
|
|
|
|
158 |
|
159 |
== Upgrade Notice ==
|
160 |
|
161 |
+
= 2.0.5 =
|
162 |
+
|
163 |
+
Please update to version 2.0.5 for improved script handling, added buttons, bug fixes and integration of Bit.ly url shortening and Open Graph tags. Custom post types are now supported.
|
164 |
+
|
165 |
= 2.0.4 =
|
166 |
|
167 |
Please update to version 2.0.4 for several display bug fixes, internationalization and expanded functionality.
|
199 |
|
200 |
== Changelog ==
|
201 |
|
202 |
+
= 2.0.5 =
|
203 |
+
* Improved JavaScript handling
|
204 |
+
* Integrated Open Graph tag generator
|
205 |
+
* Integrated Bit.ly url shortening for Tweet buttons
|
206 |
+
* Fixed Automatic Twitter Links bugs
|
207 |
+
* Improved display of buttons in excerpts
|
208 |
+
* Plugin now supports custom post types
|
209 |
+
* Included Pinterest buttons
|
210 |
+
* Included Buffer buttons
|
211 |
+
* Included Xing buttons
|
212 |
+
* Slightly improved admin screens
|
213 |
+
* Buttons are excluded from feeds
|
214 |
+
* Updated StumbleUpon icons
|
215 |
+
* added rel="nofollow" option for outbound links
|
216 |
+
|
217 |
= 2.0.4 =
|
218 |
* Redesigned email button
|
219 |
* Redesigned Delicious buttons and counters
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
DELETED
Binary file
|
screenshot-5.png
DELETED
Binary file
|
screenshot-6.png
DELETED
Binary file
|
script.js
CHANGED
@@ -1,34 +1,10 @@
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
-
//
|
3 |
-
$.each($("span.delicious_hash"), function () {
|
4 |
-
var elem = $(this);
|
5 |
-
$.ajax({ type: "GET",
|
6 |
-
dataType: "jsonp",
|
7 |
-
url: "http://feeds.delicious.com/v2/json/urlinfo/"+$(this).html(),
|
8 |
-
success: function(data){
|
9 |
-
if (data.length > 0) {
|
10 |
-
var posts = parseInt(data[0].total_posts);
|
11 |
-
if (posts > 1000000) {
|
12 |
-
var txt = parseInt(posts/1000000);
|
13 |
-
elem.next().prepend(txt + 'M');
|
14 |
-
} else if (posts > 1000) {
|
15 |
-
var txt = parseInt(posts/1000);
|
16 |
-
elem.next().prepend(txt + 'K');
|
17 |
-
} else {
|
18 |
-
elem.next().prepend(posts);
|
19 |
-
}
|
20 |
-
} else {
|
21 |
-
elem.next().prepend('0');
|
22 |
-
}
|
23 |
-
}
|
24 |
-
});
|
25 |
-
});
|
26 |
-
// Link popup handler:
|
27 |
$.each($("a.mr_social_sharing_popup_link"), function() {
|
28 |
var elem = $(this);
|
29 |
elem.click( function (event) {
|
30 |
event.preventDefault();
|
31 |
-
var popup = window.open(elem.attr('href'),'mr_social_sharing','height=400,width=
|
32 |
if (popup) {
|
33 |
popup.focus();
|
34 |
}
|
1 |
jQuery(document).ready(function($) {
|
2 |
+
// Link popup handler:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
$.each($("a.mr_social_sharing_popup_link"), function() {
|
4 |
var elem = $(this);
|
5 |
elem.click( function (event) {
|
6 |
event.preventDefault();
|
7 |
+
var popup = window.open(elem.attr('href'),'mr_social_sharing','height=400,width=740');
|
8 |
if (popup) {
|
9 |
popup.focus();
|
10 |
}
|
script_no_follow.js
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
// Link popup handler:
|
3 |
+
$.each($("a.mr_social_sharing_popup_link"), function() {
|
4 |
+
var elem = $(this);
|
5 |
+
elem.click( function (event) {
|
6 |
+
event.preventDefault();
|
7 |
+
var popup = window.open(elem.attr('href'),'mr_social_sharing','height=400,width=740');
|
8 |
+
if (popup) {
|
9 |
+
popup.focus();
|
10 |
+
}
|
11 |
+
});
|
12 |
+
});
|
13 |
+
// Don't share links
|
14 |
+
$(".mr_social_sharing_wrapper a").attr("rel", "nofollow");
|
15 |
+
});
|
social_sharing_toolkit.php
CHANGED
@@ -1,20 +1,22 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Social Sharing Toolkit
|
4 |
-
Plugin URI: http://www.
|
5 |
Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
|
6 |
-
Version: 2.0.
|
7 |
Author: Marijn Rongen
|
8 |
-
Author URI: http://www.
|
9 |
*/
|
10 |
|
11 |
class MR_Social_Sharing_Toolkit {
|
|
|
12 |
var $options;
|
13 |
var $types;
|
14 |
var $share_buttons;
|
15 |
var $follow_buttons;
|
16 |
|
17 |
function MR_Social_Sharing_Toolkit() {
|
|
|
18 |
load_plugin_textdomain( 'mr_social_sharing_toolkit', false, dirname(plugin_basename(__FILE__)).'/languages/');
|
19 |
/* Declare button types */
|
20 |
$this->types['none'] = __('Button','mr_social_sharing_toolkit');
|
@@ -29,9 +31,13 @@ class MR_Social_Sharing_Toolkit {
|
|
29 |
/* Declare bookmark buttons with options */
|
30 |
$this->share_buttons['fb_like'] = array('icon' => 'facebook', 'title' => 'Facebook Like', 'types' => array('none', 'none_text', 'horizontal', 'vertical'));
|
31 |
$this->share_buttons['fb_send'] = array('icon' => 'facebook', 'title' => 'Facebook Send', 'types' => array('none'));
|
|
|
32 |
$this->share_buttons['tw_tweet'] = array('icon' => 'twitter', 'title' => 'Twitter', 'id' => '@', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
|
|
33 |
$this->share_buttons['gl_plus'] = array('icon' => 'googleplus', 'title' => 'Google+', 'types' => array('none', 'horizontal', 'vertical'));
|
34 |
-
$this->share_buttons['
|
|
|
|
|
35 |
$this->share_buttons['tu_tumblr'] = array('icon' => 'tumblr', 'title' => 'Tumblr', 'types' => array('none', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
36 |
$this->share_buttons['su_stumble'] = array('icon' => 'stumbleupon', 'title' => 'StumbleUpon', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
37 |
$this->share_buttons['dl_delicious'] = array('icon' => 'delicious', 'title' => 'Delicious', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
@@ -47,13 +53,17 @@ class MR_Social_Sharing_Toolkit {
|
|
47 |
$this->follow_buttons['follow_facebook'] = array('icon' => 'facebook', 'title' => 'Facebook', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
48 |
$this->follow_buttons['follow_twitter'] = array('icon' => 'twitter', 'title' => 'Twitter', 'id' => '@', 'types' => array('none', 'horizontal', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
49 |
$this->follow_buttons['follow_plus'] = array('icon' => 'googleplus', 'title' => 'Google+', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
|
|
50 |
$this->follow_buttons['follow_linked'] = array('icon' => 'linkedin', 'title' => 'LinkedIn Person', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
51 |
$this->follow_buttons['follow_linked_co'] = array('icon' => 'linkedin', 'title' => 'LinkedIn Company', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
|
|
|
|
52 |
$this->follow_buttons['follow_tumblr'] = array('icon' => 'tumblr', 'title' => 'Tumblr', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
53 |
$this->follow_buttons['follow_myspace'] = array('icon' => 'myspace', 'title' => 'Myspace', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
54 |
$this->follow_buttons['follow_hyves'] = array('icon' => 'hyves', 'title' => 'Hyves', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
55 |
$this->follow_buttons['follow_youtube'] = array('icon' => 'youtube', 'title' => 'YouTube', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
56 |
$this->follow_buttons['follow_flickr'] = array('icon' => 'flickr', 'title' => 'Flickr', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
|
|
57 |
$this->follow_buttons['follow_picasa'] = array('icon' => 'picasa', 'title' => 'Picasa', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
58 |
$this->follow_buttons['follow_deviant'] = array('icon' => 'deviantart', 'title' => 'deviantArt', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
59 |
$this->follow_buttons['follow_lastfm'] = array('icon' => 'lastfm', 'title' => 'Last.fm', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
@@ -79,10 +89,32 @@ class MR_Social_Sharing_Toolkit {
|
|
79 |
$followers[$key] = array('enable' => 0, 'type' => $val['types'][0], 'id' => '');
|
80 |
$follow_order[] = $key;
|
81 |
}
|
82 |
-
$
|
|
|
|
|
83 |
foreach ($this->options as $key => $val) {
|
84 |
$this->options[$key] = get_option( $key, $val );
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
foreach ($this->share_buttons as $key => $val) {
|
87 |
if (!array_key_exists($key, $this->options['mr_social_sharing_buttons'])) {
|
88 |
$this->options['mr_social_sharing_buttons'][$key] = array('enable' => 0, 'type' => $val['types'][0]);
|
@@ -162,11 +194,11 @@ class MR_Social_Sharing_Toolkit {
|
|
162 |
<div id="mr_social_sharing_tabs">
|
163 |
<ul class="tabs">
|
164 |
<li><a href="#tab_0">'.__('General settings','mr_social_sharing_toolkit').'</a><li>
|
165 |
-
<li><a href="#tab_1">'.__('
|
166 |
<li><a href="#tab_2">'.__('Shortcode','mr_social_sharing_toolkit').'</a><li>
|
167 |
<li><a href="#tab_3">'.__('Share Widget','mr_social_sharing_toolkit').'</a><li>
|
168 |
<li><a href="#tab_4">'.__('Follow Widget','mr_social_sharing_toolkit').'</a><li>
|
169 |
-
<li><a href="#tab_5">'.__('
|
170 |
</ul>
|
171 |
<div id="tab_0" class="mr_social_sharing_networks">
|
172 |
<h3>'.__('General settings','mr_social_sharing_toolkit').':</h3>
|
@@ -195,30 +227,35 @@ class MR_Social_Sharing_Toolkit {
|
|
195 |
if ($this->options['mr_social_sharing_position'] == 'both') { echo ' selected="selected"';}
|
196 |
echo '>'.__('Display before and after content','mr_social_sharing_toolkit').'</option>
|
197 |
</select><br/><br/>
|
198 |
-
<label for="mr_social_sharing_types">'.__('Place buttons on','mr_social_sharing_toolkit').'</label
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
|
|
|
|
210 |
<br/>
|
211 |
<label for="mr_social_sharing_enable_shortcode" class="check"><input type="checkbox" name="mr_social_sharing_enable_shortcode" id="mr_social_sharing_enable_shortcode"';
|
212 |
-
if ($this->options['
|
213 |
echo ' value="1" /> '.__('Enable shortcode').'</label><br/>
|
214 |
<p><span class="description"> '.__('Use the shortcode [social_share/] where you want the buttons to appear', 'mr_social_sharing_toolkit').'</span></p>
|
215 |
<label for="mr_social_sharing_include_excerpts" class="check"><input type="checkbox" name="mr_social_sharing_include_excerpts" id="mr_social_sharing_include_excerpts"';
|
216 |
if ($this->options['mr_social_sharing_include_excerpts'] == 1) { echo ' checked="checked"';}
|
217 |
echo ' value="1" /> '.__('Include buttons in excerpts','mr_social_sharing_toolkit').'</label>
|
218 |
<p><span class="description">'.__('Uncheck this box if you are having issues displaying the buttons with excerpts (some themes have custom excerpt functions which do not play nice with the plugin).','mr_social_sharing_toolkit').'</p>
|
|
|
|
|
|
|
219 |
</div>
|
220 |
<div id="tab_1" class="mr_social_sharing_networks">
|
221 |
-
<h3>'.__('
|
222 |
<p>
|
223 |
'.__('Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress).','mr_social_sharing_toolkit').'
|
224 |
</p>';
|
@@ -257,7 +294,8 @@ class MR_Social_Sharing_Toolkit {
|
|
257 |
echo '
|
258 |
</div>
|
259 |
<div id="tab_5" class="mr_social_sharing_networks">
|
260 |
-
<h3>'.__('
|
|
|
261 |
<p>'.__('Select what you want to convert:','mr_social_sharing_toolkit').'</p>
|
262 |
<label for="mr_social_sharing_twitter_handles" class="check"><input type="checkbox" name="mr_social_sharing_twitter_handles" id="mr_social_sharing_twitter_handles"';
|
263 |
if ($this->options['mr_social_sharing_twitter_handles'] == 1) { echo ' checked="checked"';}
|
@@ -271,7 +309,31 @@ class MR_Social_Sharing_Toolkit {
|
|
271 |
echo ' value="1" /> '.__("Convert in posts and pages", 'mr_social_sharing_toolkit').'</label><br/>
|
272 |
<label for="mr_social_sharing_linkify_comments" class="check"><input type="checkbox" name="mr_social_sharing_linkify_comments" id="mr_social_sharing_linkify_comments"';
|
273 |
if ($this->options['mr_social_sharing_linkify_comments'] == 1) { echo ' checked="checked"';}
|
274 |
-
echo ' value="1" /> '.__("Convert in comments", 'mr_social_sharing_toolkit').'</label
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
</div>
|
276 |
</div>
|
277 |
<p class="submit">
|
@@ -280,10 +342,13 @@ class MR_Social_Sharing_Toolkit {
|
|
280 |
<div class="mr_social_sharing_networks">
|
281 |
<h3>'.__('Thank you for using the Social Sharing Toolkit!','mr_social_sharing_toolkit').'</h3>
|
282 |
<p>
|
283 |
-
'.__('For questions or requests about this plugin please use the','mr_social_sharing_toolkit').' <a href="http://www.
|
284 |
'.__('If you like the plugin I would appreciate it if you provide a rating of the','mr_social_sharing_toolkit').' <a href="http://wordpress.org/extend/plugins/social-sharing-toolkit/" target="_blank">'.__('plugin on WordPress.org','mr_social_sharing_toolkit').'</a>. '.__('If you really like the plugin you can also','mr_social_sharing_toolkit').' <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P8ZVNC57E58FE&lc=NL&item_name=WordPress%20plugins%20by%20Marijn%20Rongen&item_number=Social%20Sharing%20Toolkit¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">'.__('donate here','mr_social_sharing_toolkit').'</a>.
|
285 |
</p>
|
286 |
</div>
|
|
|
|
|
|
|
287 |
</form>
|
288 |
</div>';
|
289 |
}
|
@@ -300,21 +365,43 @@ class MR_Social_Sharing_Toolkit {
|
|
300 |
echo ' value="1" />'.$buttons[$button]['title'].'</label>
|
301 |
<img class="right" src="'.plugins_url('/images/move.png', __FILE__).'" title="'.__('Change button order','mr_social_sharing_toolkit').'" alt="'.__('Change button order','mr_social_sharing_toolkit').'"/>';
|
302 |
if (is_array($buttons[$button]['types']) && $buttons[$button]['types'][0] != '') {
|
303 |
-
|
|
|
|
|
|
|
|
|
304 |
<select name="mr_social_sharing_'.$button_type.'buttons['.$button.'][type]" id="mr_social_sharing_'.$button_type.$button.'_type">';
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
|
|
|
|
309 |
}
|
310 |
} else {
|
311 |
echo '
|
312 |
<input type="hidden" name="mr_social_sharing_'.$button_type.'buttons['.$button.'][type]" value=""/>';
|
313 |
}
|
314 |
if (array_key_exists('id', $buttons[$button])) {
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
<input type="text" class="text" name="mr_social_sharing_'.$button_type.'buttons['.$button.'][id]" id="mr_social_sharing_'.$button_type.$button.'_id" value="'.$this->options['mr_social_sharing_'.$button_type.'buttons'][$button]['id'].'"/>
|
317 |
<label for="mr_social_sharing_'.$button_type.$button.'_id" class="text">'.$buttons[$button]['id'].'</label>';
|
|
|
318 |
}
|
319 |
echo '
|
320 |
<input type="hidden" name="mr_social_sharing_'.$button_type.'button_order[]" value="'.$button.'"/>
|
@@ -345,8 +432,99 @@ class MR_Social_Sharing_Toolkit {
|
|
345 |
</select>';
|
346 |
}
|
347 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
/* Output functions */
|
349 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
|
351 |
function prepare_styles() {
|
352 |
wp_enqueue_style('mr_social_sharing', plugins_url('/style.css', __FILE__));
|
@@ -354,57 +532,205 @@ class MR_Social_Sharing_Toolkit {
|
|
354 |
|
355 |
function prepare_scripts() {
|
356 |
$lang = __('en_US','mr_social_sharing_toolkit');
|
357 |
-
if ($this->options['
|
358 |
-
|
|
|
|
|
|
|
|
|
359 |
} else {
|
360 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
}
|
362 |
-
if (($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
364 |
wp_enqueue_script('GooglePlusLang', plugins_url('/googleplus.js.php?lang='.$lang, __FILE__), array(), false, true);
|
365 |
wp_enqueue_script('GooglePlus', 'http://apis.google.com/js/plusone.js', array(), false, true);
|
366 |
} else {
|
367 |
wp_enqueue_script('GooglePlusLang', plugins_url('/googleplus.js.php?lang='.$lang, __FILE__));
|
368 |
wp_enqueue_script('GooglePlus', 'http://apis.google.com/js/plusone.js');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
}
|
370 |
}
|
371 |
-
if (
|
372 |
-
if ($this->options['
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
wp_enqueue_script('Digg', plugins_url('/digg.js', __FILE__));
|
377 |
-
}
|
378 |
}
|
379 |
-
}
|
380 |
-
if (
|
381 |
-
if ($this->options['
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
wp_enqueue_script('LinkedIn', 'http://platform.linkedin.com/in.js');
|
386 |
-
}
|
387 |
}
|
388 |
}
|
389 |
-
if (
|
390 |
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
391 |
-
wp_enqueue_script('
|
392 |
} else {
|
393 |
-
wp_enqueue_script('
|
394 |
}
|
395 |
}
|
396 |
-
if (
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
wp_enqueue_script('Twitter', 'http://platform.twitter.com/widgets.js');
|
402 |
-
}
|
403 |
}
|
404 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
}
|
406 |
|
407 |
-
function create_bookmarks($url = '', $title = '', $type = '') {
|
408 |
$url = trim($url);
|
409 |
$title = trim($title);
|
410 |
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
@@ -412,22 +738,23 @@ class MR_Social_Sharing_Toolkit {
|
|
412 |
$url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
413 |
}
|
414 |
$bookmarks = '
|
415 |
-
<!-- Social Sharing Toolkit v2.0.
|
416 |
<div class="mr_social_sharing_wrapper">';
|
417 |
foreach ($this->options['mr_social_sharing_'.$type.'button_order'] as $button) {
|
418 |
if ($this->options['mr_social_sharing_'.$type.'buttons'][$button]['enable'] == 1) {
|
419 |
$id = array_key_exists('id', $this->options['mr_social_sharing_'.$type.'buttons'][$button]) ? $this->options['mr_social_sharing_'.$type.'buttons'][$button]['id'] : '';
|
420 |
-
$bookmarks .= $this->get_bookmark_button($button, $url, $title, $this->options['mr_social_sharing_'.$type.'buttons'][$button]['type'], $this->options['mr_social_sharing_'.$type.'display'], $this->options['mr_social_sharing_'.$type.'align'], $id);
|
421 |
}
|
422 |
}
|
423 |
$bookmarks .= '</div>';
|
424 |
$bookmarks = str_replace('<div class="mr_social_sharing_wrapper"></div>', '', $bookmarks);
|
|
|
425 |
return $bookmarks;
|
426 |
}
|
427 |
|
428 |
function create_followers() {
|
429 |
$followers = '
|
430 |
-
<!-- Social Sharing Toolkit v2.0.
|
431 |
<div class="mr_social_sharing_wrapper">';
|
432 |
foreach ($this->options['mr_social_sharing_follow_button_order'] as $button) {
|
433 |
if ($this->options['mr_social_sharing_follow_buttons'][$button]['enable'] == 1) {
|
@@ -440,10 +767,17 @@ class MR_Social_Sharing_Toolkit {
|
|
440 |
return $followers;
|
441 |
}
|
442 |
|
443 |
-
function get_bookmark_button($button, $url, $title, $type, $display = 'span', $align = '', $id = '') {
|
444 |
if ($button == 'ln_break_1' || $button == 'ln_break_2' || $button == 'ln_break_3') {
|
445 |
$retval = '</div><div class="mr_social_sharing_wrapper">';
|
446 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
$button = 'get_'.$button;
|
448 |
$retval = '<'.$display.' class="mr_social_sharing'.$align.'">'.$this->$button($url, $title, $type, $id).'</'.$display.'>';
|
449 |
}
|
@@ -465,29 +799,70 @@ class MR_Social_Sharing_Toolkit {
|
|
465 |
switch ($type) {
|
466 |
case 'horizontal':
|
467 |
$retval .= 'button_count';
|
468 |
-
$
|
469 |
-
|
470 |
-
|
|
|
|
|
|
|
|
|
|
|
471 |
break;
|
472 |
case 'vertical':
|
473 |
$retval .= 'box_count';
|
474 |
-
$
|
475 |
-
|
476 |
-
|
|
|
|
|
|
|
|
|
|
|
477 |
break;
|
478 |
case 'none_text':
|
479 |
$retval .= 'standard';
|
480 |
-
$
|
481 |
-
|
|
|
|
|
|
|
|
|
482 |
break;
|
483 |
default:
|
484 |
$retval .= 'standard';
|
485 |
-
$
|
486 |
-
|
487 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
break;
|
489 |
}
|
490 |
-
$retval .= '&show_faces=false&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'; height:'.$height.';" allowTransparency="true"></iframe>';
|
491 |
return $retval;
|
492 |
}
|
493 |
|
@@ -497,26 +872,44 @@ class MR_Social_Sharing_Toolkit {
|
|
497 |
}
|
498 |
|
499 |
function get_tw_tweet($url, $title, $type, $id) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
switch ($type) {
|
501 |
case 'horizontal':
|
502 |
-
$retval = '<a href="
|
503 |
if ($id != '') {
|
504 |
$retval .= ' data-via="'.$id.'"';
|
505 |
}
|
|
|
|
|
|
|
506 |
$retval .= ' data-text="'.$title.'">Tweet</a>';
|
507 |
break;
|
508 |
case 'vertical':
|
509 |
-
$retval = '<a href="
|
510 |
if ($id != '') {
|
511 |
$retval .= ' data-via="'.$id.'"';
|
512 |
}
|
|
|
|
|
|
|
513 |
$retval .= ' data-text="'.$title.'">Tweet</a>';
|
514 |
break;
|
515 |
default:
|
516 |
-
$url = '
|
517 |
if ($id != '') {
|
518 |
$url .= '&via='.$id;
|
519 |
}
|
|
|
|
|
|
|
520 |
$title = __('Share on','mr_social_sharing_toolkit').' Twitter';
|
521 |
$text = __('Share on','mr_social_sharing_toolkit').' Twitter';
|
522 |
$icon = 'twitter';
|
@@ -526,6 +919,65 @@ class MR_Social_Sharing_Toolkit {
|
|
526 |
return $retval;
|
527 |
}
|
528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
function get_gl_plus($url, $title, $type, $id) {
|
530 |
$retval = '<g:plusone';
|
531 |
switch ($type) {
|
@@ -565,6 +1017,28 @@ class MR_Social_Sharing_Toolkit {
|
|
565 |
return $retval;
|
566 |
}
|
567 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
function get_tu_tumblr($url, $title, $type, $id) {
|
569 |
$url = 'http://www.tumblr.com/share/link?url='.urlencode($url).'&name='.urlencode($title);
|
570 |
$title = __('Share on','mr_social_sharing_toolkit').' Tumblr';
|
@@ -576,13 +1050,13 @@ class MR_Social_Sharing_Toolkit {
|
|
576 |
function get_su_stumble($url, $title, $type, $id) {
|
577 |
switch ($type) {
|
578 |
case 'horizontal':
|
579 |
-
$retval = '<
|
580 |
break;
|
581 |
-
case 'vertical':
|
582 |
-
$retval = '<
|
583 |
break;
|
584 |
default:
|
585 |
-
$url = 'http://www.stumbleupon.com/submit?url='.urlencode($url)
|
586 |
$title = __('Submit to','mr_social_sharing_toolkit').' StumbleUpon';
|
587 |
$text = __('Submit to','mr_social_sharing_toolkit').' StumbleUpon';
|
588 |
$icon = 'stumbleupon';
|
@@ -690,10 +1164,10 @@ class MR_Social_Sharing_Toolkit {
|
|
690 |
function get_follow_twitter($type, $id) {
|
691 |
switch ($type) {
|
692 |
case 'none':
|
693 |
-
$retval = '<a href="http://twitter.com/'.$id.'" class="twitter-follow-button" data-show-count="false">Follow @
|
694 |
break;
|
695 |
case 'horizontal':
|
696 |
-
$retval = '<a href="http://twitter.com/'.$id.'" class="twitter-follow-button">Follow @
|
697 |
break;
|
698 |
default:
|
699 |
$url = 'http://twitter.com/'.$id;
|
@@ -714,6 +1188,14 @@ class MR_Social_Sharing_Toolkit {
|
|
714 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
715 |
}
|
716 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
function get_follow_linked($type, $id) {
|
718 |
$url = 'http://www.linkedin.com/in/'.$id;
|
719 |
$title = __('Join my network on','mr_social_sharing_toolkit').' LinkedIn';
|
@@ -730,6 +1212,22 @@ class MR_Social_Sharing_Toolkit {
|
|
730 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
731 |
}
|
732 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
733 |
function get_follow_tumblr($type, $id) {
|
734 |
$url = 'http://'.$id.'.tumblr.com';
|
735 |
$title = __('Follow me on','mr_social_sharing_toolkit').' Tumblr';
|
@@ -770,6 +1268,14 @@ class MR_Social_Sharing_Toolkit {
|
|
770 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
771 |
}
|
772 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
function get_follow_picasa($type, $id) {
|
774 |
$url = 'http://picasaweb.google.com/'.$id;
|
775 |
$title = __('My Picasa Web Albums','mr_social_sharing_toolkit');
|
@@ -843,26 +1349,117 @@ class MR_Social_Sharing_Toolkit {
|
|
843 |
return $retval;
|
844 |
}
|
845 |
|
|
|
|
|
|
|
|
|
|
|
|
|
846 |
function should_share_content() {
|
847 |
-
if ($this->options['mr_social_sharing_position'] != 'none' &&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
return true;
|
849 |
}
|
850 |
return false;
|
851 |
}
|
852 |
|
853 |
function share($content) {
|
854 |
-
$
|
855 |
-
if ((
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
856 |
if ($this->options['mr_social_sharing_position'] == 'top') {
|
857 |
-
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false));
|
858 |
$content = $bookmarks.$content;
|
859 |
}
|
860 |
if ($this->options['mr_social_sharing_position'] == 'bottom') {
|
861 |
-
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false));
|
862 |
$content .= $bookmarks;
|
863 |
}
|
864 |
if ($this->options['mr_social_sharing_position'] == 'both') {
|
865 |
-
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false));
|
866 |
$content = $bookmarks.$content.$bookmarks;
|
867 |
}
|
868 |
}
|
@@ -870,16 +1467,32 @@ class MR_Social_Sharing_Toolkit {
|
|
870 |
}
|
871 |
|
872 |
function should_use_shortcode() {
|
873 |
-
if ($this->options['
|
874 |
return true;
|
875 |
}
|
876 |
return false;
|
877 |
}
|
878 |
|
879 |
function share_shortcode() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
$bookmarks = '';
|
881 |
-
if (
|
882 |
-
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), 'shortcode_');
|
883 |
}
|
884 |
return $bookmarks;
|
885 |
}
|
@@ -899,11 +1512,20 @@ class MR_Social_Sharing_Toolkit {
|
|
899 |
}
|
900 |
|
901 |
function linkify($content) {
|
902 |
-
if ($this->options['
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
907 |
}
|
908 |
return $content;
|
909 |
}
|
@@ -921,7 +1543,23 @@ class MR_Social_Sharing_Toolkit_Widget extends WP_Widget {
|
|
921 |
$widget_title = empty($instance['widget_title']) ? '' : $instance['widget_title'];
|
922 |
$url = empty($instance['fixed_url']) ? '' : $instance['fixed_url'];
|
923 |
$title = empty($instance['fixed_title']) ? wp_title('', false) : $instance['fixed_title'];
|
924 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
925 |
echo $before_widget;
|
926 |
if ($widget_title != '') {
|
927 |
echo $before_title . $widget_title . $after_title;
|
@@ -999,6 +1637,9 @@ class MR_Social_Sharing_Toolkit_Follow_Widget extends WP_Widget {
|
|
999 |
$MR_Social_Sharing_Toolkit = new MR_Social_Sharing_Toolkit();
|
1000 |
add_action('wp_print_styles', array($MR_Social_Sharing_Toolkit, 'prepare_styles'));
|
1001 |
add_action('wp_print_scripts', array($MR_Social_Sharing_Toolkit, 'prepare_scripts'));
|
|
|
|
|
|
|
1002 |
if ($MR_Social_Sharing_Toolkit->should_linkify_content()) {
|
1003 |
add_filter('the_content', array($MR_Social_Sharing_Toolkit, 'linkify'));
|
1004 |
}
|
@@ -1006,7 +1647,11 @@ if ($MR_Social_Sharing_Toolkit->should_linkify_comments()) {
|
|
1006 |
add_filter('comment_text', array($MR_Social_Sharing_Toolkit, 'linkify'));
|
1007 |
}
|
1008 |
if ($MR_Social_Sharing_Toolkit->should_share_content()) {
|
1009 |
-
add_filter(
|
|
|
|
|
|
|
|
|
1010 |
}
|
1011 |
if ($MR_Social_Sharing_Toolkit->should_use_shortcode()) {
|
1012 |
add_shortcode('social_share', array($MR_Social_Sharing_Toolkit, 'share_shortcode'));
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Social Sharing Toolkit
|
4 |
+
Plugin URI: http://www.active-bits.nl/support/social_sharing_toolkit/
|
5 |
Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
|
6 |
+
Version: 2.0.5
|
7 |
Author: Marijn Rongen
|
8 |
+
Author URI: http://www.active-bits.nl
|
9 |
*/
|
10 |
|
11 |
class MR_Social_Sharing_Toolkit {
|
12 |
+
var $count;
|
13 |
var $options;
|
14 |
var $types;
|
15 |
var $share_buttons;
|
16 |
var $follow_buttons;
|
17 |
|
18 |
function MR_Social_Sharing_Toolkit() {
|
19 |
+
$this->count = 0;
|
20 |
load_plugin_textdomain( 'mr_social_sharing_toolkit', false, dirname(plugin_basename(__FILE__)).'/languages/');
|
21 |
/* Declare button types */
|
22 |
$this->types['none'] = __('Button','mr_social_sharing_toolkit');
|
31 |
/* Declare bookmark buttons with options */
|
32 |
$this->share_buttons['fb_like'] = array('icon' => 'facebook', 'title' => 'Facebook Like', 'types' => array('none', 'none_text', 'horizontal', 'vertical'));
|
33 |
$this->share_buttons['fb_send'] = array('icon' => 'facebook', 'title' => 'Facebook Send', 'types' => array('none'));
|
34 |
+
$this->share_buttons['fb_share'] = array('icon' => 'facebook', 'title' => 'Facebook Share', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
35 |
$this->share_buttons['tw_tweet'] = array('icon' => 'twitter', 'title' => 'Twitter', 'id' => '@', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
36 |
+
$this->share_buttons['bf_buffer'] = array('icon' => 'buffer', 'title' => 'Buffer', 'id' => '@', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
37 |
$this->share_buttons['gl_plus'] = array('icon' => 'googleplus', 'title' => 'Google+', 'types' => array('none', 'horizontal', 'vertical'));
|
38 |
+
$this->share_buttons['pn_pinterest'] = array('icon' => 'pinterest', 'title' => 'Pinterest Pin It', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
39 |
+
$this->share_buttons['li_share'] = array('icon' => 'linkedin', 'title' => 'LinkedIn', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
40 |
+
$this->share_buttons['xi_xing'] = array('icon' => 'xing', 'title' => 'Xing', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
41 |
$this->share_buttons['tu_tumblr'] = array('icon' => 'tumblr', 'title' => 'Tumblr', 'types' => array('none', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
42 |
$this->share_buttons['su_stumble'] = array('icon' => 'stumbleupon', 'title' => 'StumbleUpon', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
43 |
$this->share_buttons['dl_delicious'] = array('icon' => 'delicious', 'title' => 'Delicious', 'types' => array('none', 'horizontal', 'vertical', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
53 |
$this->follow_buttons['follow_facebook'] = array('icon' => 'facebook', 'title' => 'Facebook', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
54 |
$this->follow_buttons['follow_twitter'] = array('icon' => 'twitter', 'title' => 'Twitter', 'id' => '@', 'types' => array('none', 'horizontal', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
55 |
$this->follow_buttons['follow_plus'] = array('icon' => 'googleplus', 'title' => 'Google+', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
56 |
+
$this->follow_buttons['follow_pinterest'] = array('icon' => 'pinterest', 'title' => 'Pinterest', 'id' => 'id:', 'types' => array('none', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
57 |
$this->follow_buttons['follow_linked'] = array('icon' => 'linkedin', 'title' => 'LinkedIn Person', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
58 |
$this->follow_buttons['follow_linked_co'] = array('icon' => 'linkedin', 'title' => 'LinkedIn Company', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
59 |
+
$this->follow_buttons['follow_linked_group'] = array('icon' => 'linkedin', 'title' => 'LinkedIn Group', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
60 |
+
$this->follow_buttons['follow_xing'] = array('icon' => 'xing', 'title' => 'Xing', 'id' => 'id:', 'types' => array('none', 'icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
61 |
$this->follow_buttons['follow_tumblr'] = array('icon' => 'tumblr', 'title' => 'Tumblr', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
62 |
$this->follow_buttons['follow_myspace'] = array('icon' => 'myspace', 'title' => 'Myspace', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
63 |
$this->follow_buttons['follow_hyves'] = array('icon' => 'hyves', 'title' => 'Hyves', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
64 |
$this->follow_buttons['follow_youtube'] = array('icon' => 'youtube', 'title' => 'YouTube', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
65 |
$this->follow_buttons['follow_flickr'] = array('icon' => 'flickr', 'title' => 'Flickr', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
66 |
+
$this->follow_buttons['follow_500px'] = array('icon' => '500px', 'title' => '500px', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
67 |
$this->follow_buttons['follow_picasa'] = array('icon' => 'picasa', 'title' => 'Picasa', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
68 |
$this->follow_buttons['follow_deviant'] = array('icon' => 'deviantart', 'title' => 'deviantArt', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
69 |
$this->follow_buttons['follow_lastfm'] = array('icon' => 'lastfm', 'title' => 'Last.fm', 'id' => 'id:', 'types' => array('icon_small', 'icon_small_text', 'icon_medium', 'icon_medium_text', 'icon_large'));
|
89 |
$followers[$key] = array('enable' => 0, 'type' => $val['types'][0], 'id' => '');
|
90 |
$follow_order[] = $key;
|
91 |
}
|
92 |
+
$bitly_options = array('enable' => 0, 'username' => '', 'key' => '');
|
93 |
+
$opengraph_options = array('enable' => 0, 'default_image' => '', 'fixed_image' => 0);
|
94 |
+
$this->options = array('mr_social_sharing_buttons' => $buttons, 'mr_social_sharing_shortcode_buttons' => $shortcodes, 'mr_social_sharing_widget_buttons' => $widgets, 'mr_social_sharing_follow_buttons' => $followers, 'mr_social_sharing_display' => 'span', 'mr_social_sharing_shortcode_display' => 'span', 'mr_social_sharing_widget_display' => 'span', 'mr_social_sharing_follow_display' => 'span', 'mr_social_sharing_align' => '', 'mr_social_sharing_shortcode_align' => '', 'mr_social_sharing_widget_align' => '', 'mr_social_sharing_follow_align' => '', 'mr_social_sharing_position' => 'none', 'mr_social_sharing_types' => array('post', 'page'), 'mr_social_sharing_enable_shortcode' => 1, 'mr_social_sharing_include_excerpts' => 1, 'mr_social_sharing_button_order' => $button_order, 'mr_social_sharing_shortcode_button_order' => $shortcode_order, 'mr_social_sharing_widget_button_order' => $widget_order, 'mr_social_sharing_follow_button_order' => $follow_order, 'mr_social_sharing_linkify_content' => 0, 'mr_social_sharing_linkify_comments' => 0, 'mr_social_sharing_linkify_new' => 1, 'mr_social_sharing_twitter_handles' => 0, 'mr_social_sharing_twitter_hashtags' => 0, 'mr_social_sharing_js_footer' => 1, 'mr_social_sharing_no_follow' => 0, 'mr_social_sharing_bitly' => $bitly_options, 'mr_social_sharing_opengraph' => $opengraph_options);
|
95 |
foreach ($this->options as $key => $val) {
|
96 |
$this->options[$key] = get_option( $key, $val );
|
97 |
}
|
98 |
+
if (!is_array($this->options['mr_social_sharing_types'])) {
|
99 |
+
$types = array();
|
100 |
+
switch ($this->options['mr_social_sharing_types']) {
|
101 |
+
case 'both':
|
102 |
+
$types[] = 'page';
|
103 |
+
$types[] = 'post';
|
104 |
+
break;
|
105 |
+
case 'pages':
|
106 |
+
$types[] = 'page';
|
107 |
+
break;
|
108 |
+
case 'posts':
|
109 |
+
$types[] = 'post';
|
110 |
+
break;
|
111 |
+
}
|
112 |
+
$this->options['mr_social_sharing_types'] = $types;
|
113 |
+
}
|
114 |
+
if ($this->options['mr_social_sharing_position'] == 'shortcode') {
|
115 |
+
$this->options['mr_social_sharing_position'] = 'none';
|
116 |
+
$this->options['mr_social_sharing_enable_shortcode'] = 1;
|
117 |
+
}
|
118 |
foreach ($this->share_buttons as $key => $val) {
|
119 |
if (!array_key_exists($key, $this->options['mr_social_sharing_buttons'])) {
|
120 |
$this->options['mr_social_sharing_buttons'][$key] = array('enable' => 0, 'type' => $val['types'][0]);
|
194 |
<div id="mr_social_sharing_tabs">
|
195 |
<ul class="tabs">
|
196 |
<li><a href="#tab_0">'.__('General settings','mr_social_sharing_toolkit').'</a><li>
|
197 |
+
<li><a href="#tab_1">'.__('Content','mr_social_sharing_toolkit').'</a><li>
|
198 |
<li><a href="#tab_2">'.__('Shortcode','mr_social_sharing_toolkit').'</a><li>
|
199 |
<li><a href="#tab_3">'.__('Share Widget','mr_social_sharing_toolkit').'</a><li>
|
200 |
<li><a href="#tab_4">'.__('Follow Widget','mr_social_sharing_toolkit').'</a><li>
|
201 |
+
<li><a href="#tab_5">'.__('Advanced settings','mr_social_sharing_toolkit').'</a><li>
|
202 |
</ul>
|
203 |
<div id="tab_0" class="mr_social_sharing_networks">
|
204 |
<h3>'.__('General settings','mr_social_sharing_toolkit').':</h3>
|
227 |
if ($this->options['mr_social_sharing_position'] == 'both') { echo ' selected="selected"';}
|
228 |
echo '>'.__('Display before and after content','mr_social_sharing_toolkit').'</option>
|
229 |
</select><br/><br/>
|
230 |
+
<label for="mr_social_sharing_types">'.__('Place buttons on','mr_social_sharing_toolkit').'</label><br/>';
|
231 |
+
$types = get_post_types();
|
232 |
+
if (is_array($types) && count($types) > 0) {
|
233 |
+
foreach ($types as $type) {
|
234 |
+
if (!in_array($type, array('attachment','revision','nav_menu_item'))) {
|
235 |
+
echo '<label for="share_type_'.$type.'"><input type="checkbox" id="share_type_'.$type.'" name="mr_social_sharing_types[]" value="'.$type.'"';
|
236 |
+
if (is_array($this->options['mr_social_sharing_types']) && in_array($type, $this->options['mr_social_sharing_types'])) {
|
237 |
+
echo ' checked="checked"';
|
238 |
+
}
|
239 |
+
echo '/>'.ucfirst(__($type)).'</label><br/>';
|
240 |
+
}
|
241 |
+
}
|
242 |
+
}
|
243 |
+
echo '
|
244 |
<br/>
|
245 |
<label for="mr_social_sharing_enable_shortcode" class="check"><input type="checkbox" name="mr_social_sharing_enable_shortcode" id="mr_social_sharing_enable_shortcode"';
|
246 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1) { echo ' checked="checked"';}
|
247 |
echo ' value="1" /> '.__('Enable shortcode').'</label><br/>
|
248 |
<p><span class="description"> '.__('Use the shortcode [social_share/] where you want the buttons to appear', 'mr_social_sharing_toolkit').'</span></p>
|
249 |
<label for="mr_social_sharing_include_excerpts" class="check"><input type="checkbox" name="mr_social_sharing_include_excerpts" id="mr_social_sharing_include_excerpts"';
|
250 |
if ($this->options['mr_social_sharing_include_excerpts'] == 1) { echo ' checked="checked"';}
|
251 |
echo ' value="1" /> '.__('Include buttons in excerpts','mr_social_sharing_toolkit').'</label>
|
252 |
<p><span class="description">'.__('Uncheck this box if you are having issues displaying the buttons with excerpts (some themes have custom excerpt functions which do not play nice with the plugin).','mr_social_sharing_toolkit').'</p>
|
253 |
+
<label for="mr_social_sharing_no_follow" class="check"><input type="checkbox" name="mr_social_sharing_no_follow" id="mr_social_sharing_no_follow"';
|
254 |
+
if ($this->options['mr_social_sharing_no_follow'] == 1) { echo ' checked="checked"';}
|
255 |
+
echo ' value="1" /> '.__('Use rel="nofollow" on links to social networks','mr_social_sharing_toolkit').'</label>
|
256 |
</div>
|
257 |
<div id="tab_1" class="mr_social_sharing_networks">
|
258 |
+
<h3>'.__('Content','mr_social_sharing_toolkit').'</h3>
|
259 |
<p>
|
260 |
'.__('Check the boxes to display the button on your website. For each button you can select a separate style from the dropdown box. You can change the order of the buttons by dragging them to the desired location in the list. For the tweet button you can also fill in your Twitter username which will then be appended to the tweet (like via @WordPress).','mr_social_sharing_toolkit').'
|
261 |
</p>';
|
294 |
echo '
|
295 |
</div>
|
296 |
<div id="tab_5" class="mr_social_sharing_networks">
|
297 |
+
<h3>'.__('Advanced settings','mr_social_sharing_toolkit').'</h3>
|
298 |
+
<h4>'.__('Automatic Twitter links','mr_social_sharing_toolkit').'</h4>
|
299 |
<p>'.__('Select what you want to convert:','mr_social_sharing_toolkit').'</p>
|
300 |
<label for="mr_social_sharing_twitter_handles" class="check"><input type="checkbox" name="mr_social_sharing_twitter_handles" id="mr_social_sharing_twitter_handles"';
|
301 |
if ($this->options['mr_social_sharing_twitter_handles'] == 1) { echo ' checked="checked"';}
|
309 |
echo ' value="1" /> '.__("Convert in posts and pages", 'mr_social_sharing_toolkit').'</label><br/>
|
310 |
<label for="mr_social_sharing_linkify_comments" class="check"><input type="checkbox" name="mr_social_sharing_linkify_comments" id="mr_social_sharing_linkify_comments"';
|
311 |
if ($this->options['mr_social_sharing_linkify_comments'] == 1) { echo ' checked="checked"';}
|
312 |
+
echo ' value="1" /> '.__("Convert in comments", 'mr_social_sharing_toolkit').'</label><br/>
|
313 |
+
<label for="mr_social_sharing_linkify_new" class="check"><input type="checkbox" name="mr_social_sharing_linkify_new" id="mr_social_sharing_linkify_new"';
|
314 |
+
if ($this->options['mr_social_sharing_linkify_new'] == 1) { echo ' checked="checked"';}
|
315 |
+
echo ' value="1" /> '.__("Open links in new window or tab", 'mr_social_sharing_toolkit').'</label>
|
316 |
+
<h4>'.__('Bitly','mr_social_sharing_toolkit').'</h4>
|
317 |
+
<p>'.__('Use Bitly url shortening for the tweet button','mr_social_sharing_toolkit').'</p>
|
318 |
+
<label for="mr_social_sharing_bitly_enable" class="check"><input type="checkbox" name="mr_social_sharing_bitly[enable]" id="mr_social_sharing_bitly_enable"';
|
319 |
+
if ($this->options['mr_social_sharing_bitly']['enable'] == 1) { echo ' checked="checked"';}
|
320 |
+
echo ' value="1" /> '.__("Enable Bitly URL shortening", 'mr_social_sharing_toolkit').'</label></br/>
|
321 |
+
<label for="mr_social_sharing_bitly_username">'.__('Your bitly Username','mr_social_sharing_toolkit').'</label>
|
322 |
+
<input type="text" name="mr_social_sharing_bitly[username]" id="mr_social_sharing_bitly_username" value="'.$this->options['mr_social_sharing_bitly']['username'].'"/></br/>
|
323 |
+
<label for="mr_social_sharing_bitly_key">'.__('Your bitly API Key','mr_social_sharing_toolkit').'</label>
|
324 |
+
<input type="text" name="mr_social_sharing_bitly[key]" id="mr_social_sharing_bitly_key" value="'.$this->options['mr_social_sharing_bitly']['key'].'"/>
|
325 |
+
<h4>'.__('OpenGraph','mr_social_sharing_toolkit').'</h4>
|
326 |
+
<p>'.__('Include Open Graph tags','mr_social_sharing_toolkit').'</p>
|
327 |
+
<label for="mr_social_sharing_opengraph_enable" class="check"><input type="checkbox" name="mr_social_sharing_opengraph[enable]" id="mr_social_sharing_opengraph_enable"';
|
328 |
+
if ($this->options['mr_social_sharing_opengraph']['enable'] == 1) { echo ' checked="checked"';}
|
329 |
+
echo ' value="1" /> '.__("Enable Open Graph", 'mr_social_sharing_toolkit').'</label><br/>
|
330 |
+
<label for="mr_social_sharing_opengraph_default_image">'.__('Default image URL','mr_social_sharing_toolkit').'</label>
|
331 |
+
<input type="text" name="mr_social_sharing_opengraph[default_image]" id="mr_social_sharing_opengraph_default_image" value="'.$this->options['mr_social_sharing_opengraph']['default_image'].'"/></br/>
|
332 |
+
<p><span class="description">'.__('You can specify a link to an image you would like to include in your likes and shares','mr_social_sharing_toolkit').'</span></p>
|
333 |
+
<label for="mr_social_sharing_opengraph_fixed_image" class="check"><input type="checkbox" name="mr_social_sharing_opengraph[fixed_image]" id="mr_social_sharing_opengraph_fixed_image"';
|
334 |
+
if ($this->options['mr_social_sharing_opengraph']['fixed_image'] == 1) { echo ' checked="checked"';}
|
335 |
+
echo ' value="1" /> '.__("Always use the default image", 'mr_social_sharing_toolkit').'</label><br/>
|
336 |
+
<p><span class="description">'.__("Check this box to always display the default image with you shared content", 'mr_social_sharing_toolkit').'</span></p>
|
337 |
</div>
|
338 |
</div>
|
339 |
<p class="submit">
|
342 |
<div class="mr_social_sharing_networks">
|
343 |
<h3>'.__('Thank you for using the Social Sharing Toolkit!','mr_social_sharing_toolkit').'</h3>
|
344 |
<p>
|
345 |
+
'.__('For questions or requests about this plugin please use the','mr_social_sharing_toolkit').' <a href="http://www.active-bits.nl/support/social-sharing-toolkit/" target="_blank">'.__('official plugin page','mr_social_sharing_toolkit').'</a>.
|
346 |
'.__('If you like the plugin I would appreciate it if you provide a rating of the','mr_social_sharing_toolkit').' <a href="http://wordpress.org/extend/plugins/social-sharing-toolkit/" target="_blank">'.__('plugin on WordPress.org','mr_social_sharing_toolkit').'</a>. '.__('If you really like the plugin you can also','mr_social_sharing_toolkit').' <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P8ZVNC57E58FE&lc=NL&item_name=WordPress%20plugins%20by%20Marijn%20Rongen&item_number=Social%20Sharing%20Toolkit¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">'.__('donate here','mr_social_sharing_toolkit').'</a>.
|
347 |
</p>
|
348 |
</div>
|
349 |
+
<div class="mr_social_sharing_networks banners">
|
350 |
+
'.$this->getBanner().'
|
351 |
+
</div>
|
352 |
</form>
|
353 |
</div>';
|
354 |
}
|
365 |
echo ' value="1" />'.$buttons[$button]['title'].'</label>
|
366 |
<img class="right" src="'.plugins_url('/images/move.png', __FILE__).'" title="'.__('Change button order','mr_social_sharing_toolkit').'" alt="'.__('Change button order','mr_social_sharing_toolkit').'"/>';
|
367 |
if (is_array($buttons[$button]['types']) && $buttons[$button]['types'][0] != '') {
|
368 |
+
if (count($buttons[$button]['types']) == 1) {
|
369 |
+
echo '
|
370 |
+
<input type="hidden" name="mr_social_sharing_'.$button_type.'buttons['.$button.'][type]" value="'.$buttons[$button]['types'][0].'"/>';
|
371 |
+
} else {
|
372 |
+
echo '
|
373 |
<select name="mr_social_sharing_'.$button_type.'buttons['.$button.'][type]" id="mr_social_sharing_'.$button_type.$button.'_type">';
|
374 |
+
foreach ($buttons[$button]['types'] as $type) {
|
375 |
+
echo '<option value="'.$type.'"';
|
376 |
+
if ($this->options['mr_social_sharing_'.$button_type.'buttons'][$button]['type'] == $type) { echo ' selected="selected"';}
|
377 |
+
echo '>'.$this->types[$type].'</option>';
|
378 |
+
}
|
379 |
+
echo '</select>';
|
380 |
}
|
381 |
} else {
|
382 |
echo '
|
383 |
<input type="hidden" name="mr_social_sharing_'.$button_type.'buttons['.$button.'][type]" value=""/>';
|
384 |
}
|
385 |
if (array_key_exists('id', $buttons[$button])) {
|
386 |
+
if (is_array($buttons[$button]['id']) && array_key_exists('label', $buttons[$button]['id']) && array_key_exists('options', $buttons[$button]['id']) && is_array($buttons[$button]['id']['options'])) {
|
387 |
+
echo '
|
388 |
+
<select name="mr_social_sharing_'.$button_type.'buttons['.$button.'][id]" id="mr_social_sharing_'.$button_type.$button.'_id">';
|
389 |
+
foreach ($buttons[$button]['id']['options'] as $option) {
|
390 |
+
if (array_key_exists('label', $option) && array_key_exists('value', $option)) {
|
391 |
+
echo '<option value="'.$option['value'].'"';
|
392 |
+
if ($option['value'] == $this->options['mr_social_sharing_'.$button_type.'buttons'][$button]['id']) {
|
393 |
+
echo ' selected="selected"';
|
394 |
+
}
|
395 |
+
echo '>'.$option['label'].'</option>';
|
396 |
+
}
|
397 |
+
}
|
398 |
+
echo '</select>';
|
399 |
+
// <label for="mr_social_sharing_'.$button_type.$button.'_id" class="text">'.$buttons[$button]['id']['label'].'</label>';
|
400 |
+
} else {
|
401 |
+
echo '
|
402 |
<input type="text" class="text" name="mr_social_sharing_'.$button_type.'buttons['.$button.'][id]" id="mr_social_sharing_'.$button_type.$button.'_id" value="'.$this->options['mr_social_sharing_'.$button_type.'buttons'][$button]['id'].'"/>
|
403 |
<label for="mr_social_sharing_'.$button_type.$button.'_id" class="text">'.$buttons[$button]['id'].'</label>';
|
404 |
+
}
|
405 |
}
|
406 |
echo '
|
407 |
<input type="hidden" name="mr_social_sharing_'.$button_type.'button_order[]" value="'.$button.'"/>
|
432 |
</select>';
|
433 |
}
|
434 |
|
435 |
+
/* Affiliates */
|
436 |
+
|
437 |
+
function getBanner() {
|
438 |
+
$banners = array();
|
439 |
+
// ElegantThemes:
|
440 |
+
$banners[] = '<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=14757_0_1_7" target="_blank"><img border="0" src="http://www.elegantthemes.com/affiliates/banners/468x60.gif" width="468" height="60"></a>';
|
441 |
+
$banners[] = '<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=14757_0_1_7" target="_blank"><img border="0" src="http://www.elegantthemes.com/affiliates/banners/468x60.gif" width="468" height="60"></a>';
|
442 |
+
$banners[] = '<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=14757_0_1_7" target="_blank"><img border="0" src="http://www.elegantthemes.com/affiliates/banners/468x60.gif" width="468" height="60"></a>';
|
443 |
+
$banners[] = '<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=14757_0_1_7" target="_blank"><img border="0" src="http://www.elegantthemes.com/affiliates/banners/468x60.gif" width="468" height="60"></a>';
|
444 |
+
// WooThemes:
|
445 |
+
$banners[] = '<a href="http://www.woothemes.com/woomember/go?r=188860&i=l104" target="_blank"><img src="http://www.woothemes.com/ads/wc_468x60_grey.png" /></a>';
|
446 |
+
$banners[] = '<a href="http://www.woothemes.com/woomember/go?r=188860&i=l102" target="_blank"><img src="http://www.woothemes.com/ads/wc_468x60_3_grey.png" /></a>';
|
447 |
+
$banners[] = '<a href="http://www.woothemes.com/woomember/go?r=188860&i=l44" target="_blank"><img src="http://woothemes.com/ads/468x60c.jpg" /></a>';
|
448 |
+
$banners[] = '<a href="http://www.woothemes.com/woomember/go?r=188860&i=l43" target="_blank"><img src="http://woothemes.com/ads/468x60b.jpg" /></a>';
|
449 |
+
// Mojo Themes:
|
450 |
+
$banners[] = '<a href="http://www.mojo-themes.com/categories/wordpress/?r=mrongen" target="_blank"><img src="'.plugins_url('/banners/mojo_1.jpg', __FILE__).'" /></a>';
|
451 |
+
$banners[] = '<a href="http://www.mojo-themes.com/?r=mrongen" target="_blank"><img src="'.plugins_url('/banners/mojo_1.jpg', __FILE__).'" /></a>';
|
452 |
+
$banners[] = '<a href="http://www.mojo-themes.com/categories/wordpress/?r=mrongen" target="_blank"><img src="'.plugins_url('/banners/mojo_2.jpg', __FILE__).'" /></a>';
|
453 |
+
$banners[] = '<a href="http://www.mojo-themes.com/?r=mrongen" target="_blank"><img src="'.plugins_url('/banners/mojo_2.jpg', __FILE__).'" /></a>';
|
454 |
+
// ThemeForest:
|
455 |
+
$banners[] = '<a href="http://themeforest.net/category/wordpress?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/themeforest.gif', __FILE__).'" /></a>';
|
456 |
+
$banners[] = '<a href="http://activeden.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/activeden.gif', __FILE__).'" /></a>';
|
457 |
+
$banners[] = '<a href="http://audiojungle.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/audiojungle.gif', __FILE__).'" /></a>';
|
458 |
+
$banners[] = '<a href="http://videohive.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/videohive.gif', __FILE__).'" /></a>';
|
459 |
+
$banners[] = '<a href="http://graphicriver.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/graphicriver.gif', __FILE__).'" /></a>';
|
460 |
+
$banners[] = '<a href="http://3docean.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/3docean.gif', __FILE__).'" /></a>';
|
461 |
+
$banners[] = '<a href="http://codecanyon.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/codecanyon.gif', __FILE__).'" /></a>';
|
462 |
+
$banners[] = '<a href="http://marketplace.tutsplus.com/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/tutsplus.gif', __FILE__).'" /></a>';
|
463 |
+
$banners[] = '<a href="http://photodune.net/?ref=MRongen" target="_blank"><img src="'.plugins_url('/banners/photodune.gif', __FILE__).'" /></a>';
|
464 |
+
shuffle($banners);
|
465 |
+
return $banners[0];
|
466 |
+
}
|
467 |
+
|
468 |
/* Output functions */
|
469 |
|
470 |
+
function print_opengraph() {
|
471 |
+
echo '<!-- Open Graph tags provided by Social Sharing Toolkit v2.0.5 -->
|
472 |
+
<meta property="og:locale" content="'.str_replace('-', '_', get_bloginfo('language')).'"/>';
|
473 |
+
if (is_single() || is_page()) {
|
474 |
+
$excerpt = get_the_excerpt();
|
475 |
+
echo '
|
476 |
+
<meta property="og:title" content="'.trim(wp_title('', 0)).'"/>';
|
477 |
+
if ($excerpt != '') {
|
478 |
+
echo '
|
479 |
+
<meta property="og:description" content="'.$excerpt.'"/>';
|
480 |
+
} else {
|
481 |
+
echo '
|
482 |
+
<meta property="og:description" content="'.get_bloginfo('description').'"/>';
|
483 |
+
}
|
484 |
+
echo '
|
485 |
+
<meta property="og:url" content="'.get_permalink().'"/>
|
486 |
+
<meta property="og:type" content="article"/>';
|
487 |
+
} else {
|
488 |
+
echo '
|
489 |
+
<meta property="og:title" content="'.get_bloginfo('name').'"/>
|
490 |
+
<meta property="og:description" content="'.get_bloginfo('description').'"/>
|
491 |
+
<meta property="og:url" content="'.get_home_url().'"/>
|
492 |
+
<meta property="og:type" content="website"/>';
|
493 |
+
}
|
494 |
+
echo '
|
495 |
+
<meta property="og:site_name" content="'.get_bloginfo('name').'"/>';
|
496 |
+
if ($this->options['mr_social_sharing_opengraph']['fixed_image']) {
|
497 |
+
if ($this->options['mr_social_sharing_opengraph']['default_image'] != '') {
|
498 |
+
echo '
|
499 |
+
<meta property="og:image" content="'.$this->options['mr_social_sharing_opengraph']['default_image'].'"/>';
|
500 |
+
}
|
501 |
+
} else {
|
502 |
+
$media = '';
|
503 |
+
if (current_theme_supports('post-thumbnails')) {
|
504 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), array(300,300))) {
|
505 |
+
if (is_array($media)) {
|
506 |
+
$media = $media[0];
|
507 |
+
} else {
|
508 |
+
$media = '';
|
509 |
+
}
|
510 |
+
}
|
511 |
+
} else {
|
512 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches);
|
513 |
+
$img = $matches[1][0];
|
514 |
+
if($img != '') {
|
515 |
+
$media = $img;
|
516 |
+
}
|
517 |
+
}
|
518 |
+
if ($media != '') {
|
519 |
+
echo '
|
520 |
+
<meta property="og:image" content="'.$media.'"/>';
|
521 |
+
} elseif ($this->options['mr_social_sharing_opengraph']['default_image'] != '') {
|
522 |
+
echo '
|
523 |
+
<meta property="og:image" content="'.$this->options['mr_social_sharing_opengraph']['default_image'].'"/>';
|
524 |
+
}
|
525 |
+
}
|
526 |
+
}
|
527 |
+
|
528 |
|
529 |
function prepare_styles() {
|
530 |
wp_enqueue_style('mr_social_sharing', plugins_url('/style.css', __FILE__));
|
532 |
|
533 |
function prepare_scripts() {
|
534 |
$lang = __('en_US','mr_social_sharing_toolkit');
|
535 |
+
if ($this->options['mr_social_sharing_no_follow'] == 1) {
|
536 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
537 |
+
wp_enqueue_script('mr_social_sharing', plugins_url('/script_no_follow.js', __FILE__), array('jquery'), false, true);
|
538 |
+
} else {
|
539 |
+
wp_enqueue_script('mr_social_sharing', plugins_url('/script_no_follow.js', __FILE__), array('jquery'));
|
540 |
+
}
|
541 |
} else {
|
542 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
543 |
+
wp_enqueue_script('mr_social_sharing', plugins_url('/script.js', __FILE__), array('jquery'), false, true);
|
544 |
+
} else {
|
545 |
+
wp_enqueue_script('mr_social_sharing', plugins_url('/script.js', __FILE__), array('jquery'));
|
546 |
+
}
|
547 |
+
}
|
548 |
+
// ###
|
549 |
+
if (($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['fb_send']['enable'] == 1) || $this->options['mr_social_sharing_widget_buttons']['fb_send']['enable'] == 1 || ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['fb_send']['enable'] == 1)) {
|
550 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
551 |
+
wp_enqueue_script('FacebookSend', 'http://connect.facebook.net/'.$lang.'/all.js#xfbml=1', array(), false, true);
|
552 |
+
} else {
|
553 |
+
wp_enqueue_script('FacebookSend', 'http://connect.facebook.net/'.$lang.'/all.js#xfbml=1');
|
554 |
+
}
|
555 |
}
|
556 |
+
if (($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['fb_share']['enable'] == 1) || $this->options['mr_social_sharing_widget_buttons']['fb_share']['enable'] == 1 || ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['fb_share']['enable'] == 1)) {
|
557 |
+
if (in_array($this->options['mr_social_sharing_buttons']['fb_share']['type'], array('horizontal','vertical','none')) || in_array($this->options['mr_social_sharing_widget_buttons']['fb_share']['type'], array('horizontal','vertical','none'))) {
|
558 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
559 |
+
wp_enqueue_script('FacebookShare', 'http://static.ak.fbcdn.net/connect.php/js/FB.Share', array(), false, true);
|
560 |
+
} else {
|
561 |
+
wp_enqueue_script('FacebookShare', 'http://static.ak.fbcdn.net/connect.php/js/FB.Share');
|
562 |
+
}
|
563 |
+
}
|
564 |
+
}
|
565 |
+
// ###
|
566 |
+
$google_script = false;
|
567 |
+
$digg_script = false;
|
568 |
+
$linked_script = false;
|
569 |
+
$tweet_script = false;
|
570 |
+
$buffer_script = false;
|
571 |
+
$stumble_script = false;
|
572 |
+
$delicious_script = false;
|
573 |
+
$pinit_script = false;
|
574 |
+
$xing_script = false;
|
575 |
+
|
576 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['gl_plus']['enable'] == 1) {
|
577 |
+
$google_script = true;
|
578 |
+
}
|
579 |
+
if ($this->options['mr_social_sharing_widget_buttons']['gl_plus']['enable'] == 1) {
|
580 |
+
$google_script = true;
|
581 |
+
}
|
582 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['gl_plus']['enable'] == 1) {
|
583 |
+
$google_script = true;
|
584 |
+
}
|
585 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['dg_digg']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['dg_digg']['type'], array('horizontal','vertical'))) {
|
586 |
+
$digg_script = true;
|
587 |
+
}
|
588 |
+
if ($this->options['mr_social_sharing_widget_buttons']['dg_digg']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['dg_digg']['type'], array('horizontal','vertical'))) {
|
589 |
+
$digg_script = true;
|
590 |
+
}
|
591 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['dg_digg']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['dg_digg']['type'], array('horizontal','vertical'))) {
|
592 |
+
$digg_script = true;
|
593 |
+
}
|
594 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['li_share']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['li_share']['type'], array('horizontal','vertical','none'))) {
|
595 |
+
$linked_script = true;
|
596 |
+
}
|
597 |
+
if ($this->options['mr_social_sharing_widget_buttons']['li_share']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['li_share']['type'], array('horizontal','vertical','none'))) {
|
598 |
+
$linked_script = true;
|
599 |
+
}
|
600 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['li_share']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['li_share']['type'], array('horizontal','vertical','none'))) {
|
601 |
+
$linked_script = true;
|
602 |
+
}
|
603 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['tw_tweet']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['tw_tweet']['type'], array('horizontal','vertical'))) {
|
604 |
+
$tweet_script = true;
|
605 |
+
}
|
606 |
+
if ($this->options['mr_social_sharing_widget_buttons']['tw_tweet']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['tw_tweet']['type'], array('horizontal','vertical'))) {
|
607 |
+
$tweet_script = true;
|
608 |
+
}
|
609 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['tw_tweet']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['tw_tweet']['type'], array('horizontal','vertical'))) {
|
610 |
+
$tweet_script = true;
|
611 |
+
}
|
612 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['bf_buffer']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['bf_buffer']['type'], array('none','horizontal','vertical'))) {
|
613 |
+
$buffer_script = true;
|
614 |
+
}
|
615 |
+
if ($this->options['mr_social_sharing_widget_buttons']['bf_buffer']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['bf_buffer']['type'], array('none','horizontal','vertical'))) {
|
616 |
+
$buffer_script = true;
|
617 |
+
}
|
618 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['bf_buffer']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['bf_buffer']['type'], array('none','horizontal','vertical'))) {
|
619 |
+
$buffer_script = true;
|
620 |
+
}
|
621 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['su_stumble']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['su_stumble']['type'], array('horizontal', 'vertical'))) {
|
622 |
+
$stumble_script = true;
|
623 |
+
}
|
624 |
+
if ($this->options['mr_social_sharing_widget_buttons']['su_stumble']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['su_stumble']['type'], array('horizontal', 'vertical'))) {
|
625 |
+
$stumble_script = true;
|
626 |
+
}
|
627 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['su_stumble']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['su_stumble']['type'], array('horizontal', 'vertical'))) {
|
628 |
+
$stumble_script = true;
|
629 |
+
}
|
630 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['dl_delicious']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['dl_delicious']['type'], array('horizontal', 'vertical'))) {
|
631 |
+
$delicious_script = true;
|
632 |
+
}
|
633 |
+
if ($this->options['mr_social_sharing_widget_buttons']['dl_delicious']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['dl_delicious']['type'], array('horizontal', 'vertical'))) {
|
634 |
+
$delicious_script = true;
|
635 |
+
}
|
636 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['dl_delicious']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['dl_delicious']['type'], array('horizontal', 'vertical'))) {
|
637 |
+
$delicious_script = true;
|
638 |
+
}
|
639 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['pn_pinterest']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['pn_pinterest']['type'], array('none', 'horizontal', 'vertical'))) {
|
640 |
+
$pinit_script = true;
|
641 |
+
}
|
642 |
+
if ($this->options['mr_social_sharing_widget_buttons']['pn_pinterest']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['pn_pinterest']['type'], array('none', 'horizontal', 'vertical'))) {
|
643 |
+
$pinit_script = true;
|
644 |
+
}
|
645 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['pn_pinterest']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['pn_pinterest']['type'], array('none', 'horizontal', 'vertical'))) {
|
646 |
+
$pinit_script = true;
|
647 |
+
}
|
648 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_buttons']['xi_xing']['enable'] == 1 && in_array($this->options['mr_social_sharing_buttons']['xi_xing']['type'], array('none','horizontal','vertical'))) {
|
649 |
+
$xing_script = true;
|
650 |
+
}
|
651 |
+
if ($this->options['mr_social_sharing_widget_buttons']['xi_xing']['enable'] == 1 && in_array($this->options['mr_social_sharing_widget_buttons']['xi_xing']['type'], array('none','horizontal','vertical'))) {
|
652 |
+
$xing_script = true;
|
653 |
+
}
|
654 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && $this->options['mr_social_sharing_shortcode_buttons']['xi_xing']['enable'] == 1 && in_array($this->options['mr_social_sharing_shortcode_buttons']['xi_xing']['type'], array('none','horizontal','vertical'))) {
|
655 |
+
$xing_script = true;
|
656 |
+
}
|
657 |
+
/*if ($this->options['mr_social_sharing_follow_buttons']['xi_xing']['enable'] == 1 && in_array($this->options['mr_social_sharing_follow_buttons']['xi_xing']['type'], array('none','horizontal'))) {
|
658 |
+
$xing_script = true;
|
659 |
+
}*/
|
660 |
+
if (is_active_sidebar(is_active_widget( false, false, 'mr-social-sharing-toolkit-follow-widget', true))) {
|
661 |
+
if ($this->options['mr_social_sharing_follow_buttons']['follow_twitter']['enable'] == 1 && in_array($this->options['mr_social_sharing_follow_buttons']['follow_twitter']['type'], array('none','horizontal'))) {
|
662 |
+
$tweet_script = true;
|
663 |
+
}
|
664 |
+
}
|
665 |
+
|
666 |
+
if ($digg_script) {
|
667 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
668 |
+
wp_enqueue_script('Digg', plugins_url('/digg.js', __FILE__), array(), false, true);
|
669 |
+
} else {
|
670 |
+
wp_enqueue_script('Digg', plugins_url('/digg.js', __FILE__));
|
671 |
+
}
|
672 |
+
}
|
673 |
+
if ($linked_script) {
|
674 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
675 |
+
wp_enqueue_script('LinkedIn', 'http://platform.linkedin.com/in.js', array(), false, true);
|
676 |
+
} else {
|
677 |
+
wp_enqueue_script('LinkedIn', 'http://platform.linkedin.com/in.js');
|
678 |
+
}
|
679 |
+
}
|
680 |
+
if ($google_script) {
|
681 |
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
682 |
wp_enqueue_script('GooglePlusLang', plugins_url('/googleplus.js.php?lang='.$lang, __FILE__), array(), false, true);
|
683 |
wp_enqueue_script('GooglePlus', 'http://apis.google.com/js/plusone.js', array(), false, true);
|
684 |
} else {
|
685 |
wp_enqueue_script('GooglePlusLang', plugins_url('/googleplus.js.php?lang='.$lang, __FILE__));
|
686 |
wp_enqueue_script('GooglePlus', 'http://apis.google.com/js/plusone.js');
|
687 |
+
}
|
688 |
+
}
|
689 |
+
if ($tweet_script) {
|
690 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
691 |
+
wp_enqueue_script('Twitter', 'http://platform.twitter.com/widgets.js', array(), false, true);
|
692 |
+
} else {
|
693 |
+
wp_enqueue_script('Twitter', 'http://platform.twitter.com/widgets.js');
|
694 |
}
|
695 |
}
|
696 |
+
if ($buffer_script) {
|
697 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
698 |
+
wp_enqueue_script('Buffer', 'http://static.bufferapp.com/js/button.js', array(), false, true);
|
699 |
+
} else {
|
700 |
+
wp_enqueue_script('Buffer', 'http://static.bufferapp.com/js/button.js');
|
|
|
|
|
701 |
}
|
702 |
+
}
|
703 |
+
if ($stumble_script) {
|
704 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
705 |
+
wp_enqueue_script('StumbleUpon', plugins_url('/stumbleupon.js', __FILE__), array(), false, true);
|
706 |
+
} else {
|
707 |
+
wp_enqueue_script('StumbleUpon', plugins_url('/stumbleupon.js', __FILE__));
|
|
|
|
|
708 |
}
|
709 |
}
|
710 |
+
if ($delicious_script) {
|
711 |
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
712 |
+
wp_enqueue_script('Delicious', plugins_url('/delicious.js', __FILE__), array(), false, true);
|
713 |
} else {
|
714 |
+
wp_enqueue_script('Delicious', plugins_url('/delicious.js', __FILE__));
|
715 |
}
|
716 |
}
|
717 |
+
if ($pinit_script) {
|
718 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
719 |
+
wp_enqueue_script('Pinterest', plugins_url('/pinterest.js', __FILE__), array(), false, true);
|
720 |
+
} else {
|
721 |
+
wp_enqueue_script('Pinterest', plugins_url('/pinterest.js', __FILE__));
|
|
|
|
|
722 |
}
|
723 |
}
|
724 |
+
if ($xing_script) {
|
725 |
+
if ($this->options['mr_social_sharing_js_footer'] == 1) {
|
726 |
+
wp_enqueue_script('Xing', 'https://www.xing-share.com/js/external/share.js', array(), false, true);
|
727 |
+
} else {
|
728 |
+
wp_enqueue_script('Xing', 'https://www.xing-share.com/js/external/share.js');
|
729 |
+
}
|
730 |
+
}
|
731 |
}
|
732 |
|
733 |
+
function create_bookmarks($url = '', $title = '', $type = '', $media = '') {
|
734 |
$url = trim($url);
|
735 |
$title = trim($title);
|
736 |
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
738 |
$url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
739 |
}
|
740 |
$bookmarks = '
|
741 |
+
<!-- Social Sharing Toolkit v2.0.5 | http://www.active-bits.nl/support/social_sharing_toolkit/ -->
|
742 |
<div class="mr_social_sharing_wrapper">';
|
743 |
foreach ($this->options['mr_social_sharing_'.$type.'button_order'] as $button) {
|
744 |
if ($this->options['mr_social_sharing_'.$type.'buttons'][$button]['enable'] == 1) {
|
745 |
$id = array_key_exists('id', $this->options['mr_social_sharing_'.$type.'buttons'][$button]) ? $this->options['mr_social_sharing_'.$type.'buttons'][$button]['id'] : '';
|
746 |
+
$bookmarks .= $this->get_bookmark_button($button, $url, $title, $this->options['mr_social_sharing_'.$type.'buttons'][$button]['type'], $this->options['mr_social_sharing_'.$type.'display'], $this->options['mr_social_sharing_'.$type.'align'], $id, $media);
|
747 |
}
|
748 |
}
|
749 |
$bookmarks .= '</div>';
|
750 |
$bookmarks = str_replace('<div class="mr_social_sharing_wrapper"></div>', '', $bookmarks);
|
751 |
+
$this->count++;
|
752 |
return $bookmarks;
|
753 |
}
|
754 |
|
755 |
function create_followers() {
|
756 |
$followers = '
|
757 |
+
<!-- Social Sharing Toolkit v2.0.5 | http://www.active-bits.nl/support/social_sharing_toolkit/ -->
|
758 |
<div class="mr_social_sharing_wrapper">';
|
759 |
foreach ($this->options['mr_social_sharing_follow_button_order'] as $button) {
|
760 |
if ($this->options['mr_social_sharing_follow_buttons'][$button]['enable'] == 1) {
|
767 |
return $followers;
|
768 |
}
|
769 |
|
770 |
+
function get_bookmark_button($button, $url, $title, $type, $display = 'span', $align = '', $id = '', $media = '') {
|
771 |
if ($button == 'ln_break_1' || $button == 'ln_break_2' || $button == 'ln_break_3') {
|
772 |
$retval = '</div><div class="mr_social_sharing_wrapper">';
|
773 |
} else {
|
774 |
+
if ($button == 'pn_pinterest') {
|
775 |
+
if ($media == '') {
|
776 |
+
return '';
|
777 |
+
} else {
|
778 |
+
$id = $media;
|
779 |
+
}
|
780 |
+
}
|
781 |
$button = 'get_'.$button;
|
782 |
$retval = '<'.$display.' class="mr_social_sharing'.$align.'">'.$this->$button($url, $title, $type, $id).'</'.$display.'>';
|
783 |
}
|
799 |
switch ($type) {
|
800 |
case 'horizontal':
|
801 |
$retval .= 'button_count';
|
802 |
+
if ($id == 'recommend') {
|
803 |
+
$width = __('fb_horizontal_recommend_width','mr_social_sharing_toolkit');
|
804 |
+
$width = ($width == 'fb_horizontal_recommend_width') ? '120' : $width;
|
805 |
+
} else {
|
806 |
+
$width = __('fb_horizontal_width','mr_social_sharing_toolkit');
|
807 |
+
$width = ($width == 'fb_horizontal_width') ? '90' : $width;
|
808 |
+
}
|
809 |
+
$height = '21';
|
810 |
break;
|
811 |
case 'vertical':
|
812 |
$retval .= 'box_count';
|
813 |
+
if ($id == 'recommend') {
|
814 |
+
$width = __('fb_vertical_recommend_width','mr_social_sharing_toolkit');
|
815 |
+
$width = ($width == 'fb_vertical_recommend_width') ? '92' : $width;
|
816 |
+
} else {
|
817 |
+
$width = __('fb_vertical_width','mr_social_sharing_toolkit');
|
818 |
+
$width = ($width == 'fb_vertical_width') ? '55' : $width;
|
819 |
+
}
|
820 |
+
$height = '62';
|
821 |
break;
|
822 |
case 'none_text':
|
823 |
$retval .= 'standard';
|
824 |
+
if ($id == 'recommend') {
|
825 |
+
$width = 'auto';
|
826 |
+
} else {
|
827 |
+
$width = 'auto';
|
828 |
+
}
|
829 |
+
$height = '25';
|
830 |
break;
|
831 |
default:
|
832 |
$retval .= 'standard';
|
833 |
+
if ($id == 'recommend') {
|
834 |
+
$width = __('fb_standard_recommend_width','mr_social_sharing_toolkit');
|
835 |
+
$width = ($width == 'fb_standard_standard_recommend_width') ? '91' : $width;
|
836 |
+
} else {
|
837 |
+
$width = __('fb_standard_width','mr_social_sharing_toolkit');
|
838 |
+
$width = ($width == 'fb_standard_width') ? '51' : $width;
|
839 |
+
}
|
840 |
+
$height = '24';
|
841 |
+
break;
|
842 |
+
}
|
843 |
+
$retval .= '&show_faces=false&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
844 |
+
return $retval;
|
845 |
+
}
|
846 |
+
|
847 |
+
function get_fb_share($url, $title, $type, $id) {
|
848 |
+
switch ($type) {
|
849 |
+
case 'vertical':
|
850 |
+
$retval = '<a name="fb_share" type="box_count" share_url="'.$url.'" href="http://www.facebook.com/sharer.php">Share</a>';
|
851 |
+
break;
|
852 |
+
case 'horizontal':
|
853 |
+
$retval = '<a name="fb_share" type="button_count" share_url="'.$url.'" href="http://www.facebook.com/sharer.php">Share</a>';
|
854 |
+
break;
|
855 |
+
case 'none':
|
856 |
+
$retval = '<a name="fb_share" type="button" share_url="'.$url.'" href="http://www.facebook.com/sharer.php">Share</a>';
|
857 |
+
break;
|
858 |
+
default:
|
859 |
+
$url = 'https://www.facebook.com/sharer/sharer.php?u='.urlencode($url).'&t='.urlencode($title);
|
860 |
+
$title = __('Share on','mr_social_sharing_toolkit').' Facebook';
|
861 |
+
$text = __('Share on','mr_social_sharing_toolkit').' Facebook';
|
862 |
+
$icon = 'facebook';
|
863 |
+
$retval = $this->get_icon($type, $url, $title, $text, $icon, true);
|
864 |
break;
|
865 |
}
|
|
|
866 |
return $retval;
|
867 |
}
|
868 |
|
872 |
}
|
873 |
|
874 |
function get_tw_tweet($url, $title, $type, $id) {
|
875 |
+
$count_url = '';
|
876 |
+
if ($this->options['mr_social_sharing_bitly']['enable'] == 1 && $this->options['mr_social_sharing_bitly']['username'] != '' && $this->options['mr_social_sharing_bitly']['key'] != '') {
|
877 |
+
$ch = curl_init('https://api-ssl.bitly.com/v3/shorten?login='.$this->options['mr_social_sharing_bitly']['username'].'&apiKey='.$this->options['mr_social_sharing_bitly']['key'].'&longUrl='.urlencode($url).'&format=txt');
|
878 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
879 |
+
if ($short_url = curl_exec($ch)) {
|
880 |
+
$count_url = $url;
|
881 |
+
$url = trim($short_url);
|
882 |
+
}
|
883 |
+
}
|
884 |
switch ($type) {
|
885 |
case 'horizontal':
|
886 |
+
$retval = '<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-url="'.$url.'"';
|
887 |
if ($id != '') {
|
888 |
$retval .= ' data-via="'.$id.'"';
|
889 |
}
|
890 |
+
if ($count_url != '') {
|
891 |
+
$retval .= ' data-counturl="'.$count_url.'"';
|
892 |
+
}
|
893 |
$retval .= ' data-text="'.$title.'">Tweet</a>';
|
894 |
break;
|
895 |
case 'vertical':
|
896 |
+
$retval = '<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-url="'.$url.'"';
|
897 |
if ($id != '') {
|
898 |
$retval .= ' data-via="'.$id.'"';
|
899 |
}
|
900 |
+
if ($count_url != '') {
|
901 |
+
$retval .= ' data-counturl="'.$count_url.'"';
|
902 |
+
}
|
903 |
$retval .= ' data-text="'.$title.'">Tweet</a>';
|
904 |
break;
|
905 |
default:
|
906 |
+
$url = 'https://twitter.com/share?url='.urlencode($url).'&text='.urlencode($title);
|
907 |
if ($id != '') {
|
908 |
$url .= '&via='.$id;
|
909 |
}
|
910 |
+
if ($count_url != '') {
|
911 |
+
$url .= '&counturl='.urlencode($count_url);
|
912 |
+
}
|
913 |
$title = __('Share on','mr_social_sharing_toolkit').' Twitter';
|
914 |
$text = __('Share on','mr_social_sharing_toolkit').' Twitter';
|
915 |
$icon = 'twitter';
|
919 |
return $retval;
|
920 |
}
|
921 |
|
922 |
+
function get_bf_buffer($url, $title, $type, $id) {
|
923 |
+
switch ($type) {
|
924 |
+
case 'horizontal':
|
925 |
+
$retval = '<a href="http://bufferapp.com/add" class="buffer-add-button" data-url="'.$url.'" data-count="horizontal"';
|
926 |
+
if ($id != '') {
|
927 |
+
$retval .= ' data-via="'.$id.'"';
|
928 |
+
}
|
929 |
+
$retval .= ' data-text="'.$title.'">Buffer</a>';
|
930 |
+
break;
|
931 |
+
case 'vertical':
|
932 |
+
$retval = '<a href="http://bufferapp.com/add" class="buffer-add-button" data-url="'.$url.'" data-count="vertical"';
|
933 |
+
if ($id != '') {
|
934 |
+
$retval .= ' data-via="'.$id.'"';
|
935 |
+
}
|
936 |
+
$retval .= ' data-text="'.$title.'">Buffer</a>';
|
937 |
+
break;
|
938 |
+
case 'none':
|
939 |
+
$retval = '<a href="http://bufferapp.com/add" class="buffer-add-button" data-url="'.$url.'" data-count="none"';
|
940 |
+
if ($id != '') {
|
941 |
+
$retval .= ' data-via="'.$id.'"';
|
942 |
+
}
|
943 |
+
$retval .= ' data-text="'.$title.'">Buffer</a>';
|
944 |
+
break;
|
945 |
+
default:
|
946 |
+
$url = 'http://bufferapp.com/add?url='.urlencode($url).'&text='.urlencode($title);
|
947 |
+
if ($id != '') {
|
948 |
+
$url .= '&via='.urlencode($id);
|
949 |
+
}
|
950 |
+
$title = __('Add to','mr_social_sharing_toolkit').' Buffer';
|
951 |
+
$text = __('Add to','mr_social_sharing_toolkit').' Buffer';
|
952 |
+
$icon = 'buffer';
|
953 |
+
$retval = $this->get_icon($type, $url, $title, $text, $icon, true);
|
954 |
+
break;
|
955 |
+
}
|
956 |
+
return $retval;
|
957 |
+
}
|
958 |
+
|
959 |
+
function get_pn_pinterest($url, $title, $type, $media) {
|
960 |
+
$pin_url = 'http://pinterest.com/pin/create/button/?url='.urlencode($url).'&media='.urlencode($media).'&description='.urlencode($title);
|
961 |
+
switch ($type) {
|
962 |
+
case 'horizontal':
|
963 |
+
$retval = '<a href="'.$pin_url.'" class="pin-it-button" count-layout="horizontal">Pin It</a>';
|
964 |
+
break;
|
965 |
+
case 'vertical':
|
966 |
+
$retval = '<a href="'.$pin_url.'" class="pin-it-button" count-layout="vertical">Pin It</a>';
|
967 |
+
break;
|
968 |
+
case 'none':
|
969 |
+
$retval = '<a href="'.$pin_url.'" class="pin-it-button" count-layout="none">Pin It</a>';
|
970 |
+
break;
|
971 |
+
default:
|
972 |
+
$title = __('Pin it on','mr_social_sharing_toolkit').' Pinterest';
|
973 |
+
$text = __('Pin it on','mr_social_sharing_toolkit').' Pinterest';
|
974 |
+
$icon = 'pinterest';
|
975 |
+
$retval = $this->get_icon($type, $pin_url, $title, $text, $icon, true);
|
976 |
+
break;
|
977 |
+
}
|
978 |
+
return $retval;
|
979 |
+
}
|
980 |
+
|
981 |
function get_gl_plus($url, $title, $type, $id) {
|
982 |
$retval = '<g:plusone';
|
983 |
switch ($type) {
|
1017 |
return $retval;
|
1018 |
}
|
1019 |
|
1020 |
+
function get_xi_xing($url, $title, $type, $id) {
|
1021 |
+
switch ($type) {
|
1022 |
+
case 'horizontal':
|
1023 |
+
$retval = '<script type="XING/Share" data-counter="right" data-lang="en" data-url="'.$url.'"></script>';
|
1024 |
+
break;
|
1025 |
+
case 'vertical':
|
1026 |
+
$retval = '<script type="XING/Share" data-counter="top" data-lang="en" data-url="'.$url.'"></script>';
|
1027 |
+
break;
|
1028 |
+
case 'none':
|
1029 |
+
$retval = '<script type="XING/Share" data-counter="no_count" data-lang="en" data-url="'.$url.'" data-button-shape="rectangle"></script>';
|
1030 |
+
break;
|
1031 |
+
default:
|
1032 |
+
$url = 'https://www.xing.com/app/startpage?op=home;func_share=1;tab=link;url='.$url;
|
1033 |
+
$title = __('Share on','mr_social_sharing_toolkit').' Xing';
|
1034 |
+
$text = __('Share on','mr_social_sharing_toolkit').' Xing';
|
1035 |
+
$icon = 'xing';
|
1036 |
+
$retval = $this->get_icon($type, $url, $title, $text, $icon, true);
|
1037 |
+
break;
|
1038 |
+
}
|
1039 |
+
return $retval;
|
1040 |
+
}
|
1041 |
+
|
1042 |
function get_tu_tumblr($url, $title, $type, $id) {
|
1043 |
$url = 'http://www.tumblr.com/share/link?url='.urlencode($url).'&name='.urlencode($title);
|
1044 |
$title = __('Share on','mr_social_sharing_toolkit').' Tumblr';
|
1050 |
function get_su_stumble($url, $title, $type, $id) {
|
1051 |
switch ($type) {
|
1052 |
case 'horizontal':
|
1053 |
+
$retval = '<su:badge layout="1" location="'.urlencode($url).'"></su:badge>';
|
1054 |
break;
|
1055 |
+
case 'vertical':
|
1056 |
+
$retval = '<su:badge layout="5" location="'.urlencode($url).'"></su:badge>';
|
1057 |
break;
|
1058 |
default:
|
1059 |
+
$url = 'http://www.stumbleupon.com/submit?url='.urlencode($url);
|
1060 |
$title = __('Submit to','mr_social_sharing_toolkit').' StumbleUpon';
|
1061 |
$text = __('Submit to','mr_social_sharing_toolkit').' StumbleUpon';
|
1062 |
$icon = 'stumbleupon';
|
1164 |
function get_follow_twitter($type, $id) {
|
1165 |
switch ($type) {
|
1166 |
case 'none':
|
1167 |
+
$retval = '<a href="http://twitter.com/'.$id.'" class="twitter-follow-button" data-show-count="false">Follow @'.$id.'</a>';
|
1168 |
break;
|
1169 |
case 'horizontal':
|
1170 |
+
$retval = '<a href="http://twitter.com/'.$id.'" class="twitter-follow-button">Follow @'.$id.'</a>';
|
1171 |
break;
|
1172 |
default:
|
1173 |
$url = 'http://twitter.com/'.$id;
|
1188 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
1189 |
}
|
1190 |
|
1191 |
+
function get_follow_pinterest($type, $id) {
|
1192 |
+
$url = 'http://pinterest.com/'.$id.'/';
|
1193 |
+
$title = __('Follow me on','mr_social_sharing_toolkit').' Pinterest';
|
1194 |
+
$text = 'Pinterest';
|
1195 |
+
$icon = 'pinterest';
|
1196 |
+
return $this->get_icon($type, $url, $title, $text, $icon);
|
1197 |
+
}
|
1198 |
+
|
1199 |
function get_follow_linked($type, $id) {
|
1200 |
$url = 'http://www.linkedin.com/in/'.$id;
|
1201 |
$title = __('Join my network on','mr_social_sharing_toolkit').' LinkedIn';
|
1212 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
1213 |
}
|
1214 |
|
1215 |
+
function get_follow_linked_group($type, $id) {
|
1216 |
+
$url = 'http://www.linkedin.com/groups?gid='.$id;
|
1217 |
+
$title = __('Join my group on','mr_social_sharing_toolkit').' LinkedIn';
|
1218 |
+
$text = 'LinkedIn';
|
1219 |
+
$icon = 'linkedin';
|
1220 |
+
return $this->get_icon($type, $url, $title, $text, $icon);
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
function get_follow_xing($type, $id) {
|
1224 |
+
$url = 'http://www.xing.com/profile/'.$id;
|
1225 |
+
$title = __('Join my network on','mr_social_sharing_toolkit').' Xing';
|
1226 |
+
$text = 'Xing';
|
1227 |
+
$icon = 'xing';
|
1228 |
+
return $this->get_icon($type, $url, $title, $text, $icon);
|
1229 |
+
}
|
1230 |
+
|
1231 |
function get_follow_tumblr($type, $id) {
|
1232 |
$url = 'http://'.$id.'.tumblr.com';
|
1233 |
$title = __('Follow me on','mr_social_sharing_toolkit').' Tumblr';
|
1268 |
return $this->get_icon($type, $url, $title, $text, $icon);
|
1269 |
}
|
1270 |
|
1271 |
+
function get_follow_500px($type, $id) {
|
1272 |
+
$url = 'http://500px.com/'.$id;
|
1273 |
+
$title = __('My portfolio on','mr_social_sharing_toolkit').' 500px';
|
1274 |
+
$text = '500px';
|
1275 |
+
$icon = '500px';
|
1276 |
+
return $this->get_icon($type, $url, $title, $text, $icon);
|
1277 |
+
}
|
1278 |
+
|
1279 |
function get_follow_picasa($type, $id) {
|
1280 |
$url = 'http://picasaweb.google.com/'.$id;
|
1281 |
$title = __('My Picasa Web Albums','mr_social_sharing_toolkit');
|
1349 |
return $retval;
|
1350 |
}
|
1351 |
|
1352 |
+
function should_print_opengraph() {
|
1353 |
+
if ($this->options['mr_social_sharing_opengraph']['enable'] == 1) {
|
1354 |
+
return true;
|
1355 |
+
}
|
1356 |
+
}
|
1357 |
+
|
1358 |
function should_share_content() {
|
1359 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && !is_feed()) {
|
1360 |
+
return true;
|
1361 |
+
}
|
1362 |
+
return false;
|
1363 |
+
}
|
1364 |
+
|
1365 |
+
function should_share_excerpt() {
|
1366 |
+
if ($this->options['mr_social_sharing_position'] != 'none' && $this->options['mr_social_sharing_include_excerpts'] == 1 && !is_feed()) {
|
1367 |
return true;
|
1368 |
}
|
1369 |
return false;
|
1370 |
}
|
1371 |
|
1372 |
function share($content) {
|
1373 |
+
$media = '';
|
1374 |
+
if (current_theme_supports('post-thumbnails')) {
|
1375 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()))) {
|
1376 |
+
if (is_array($media)) {
|
1377 |
+
$media = $media[0];
|
1378 |
+
} else {
|
1379 |
+
$media = '';
|
1380 |
+
}
|
1381 |
+
}
|
1382 |
+
} else {
|
1383 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
|
1384 |
+
$img = $matches[1][0];
|
1385 |
+
if($img != '') {
|
1386 |
+
$media = $img;
|
1387 |
+
}
|
1388 |
+
}
|
1389 |
+
$type = get_post_type();
|
1390 |
+
if (in_array($type, $this->options['mr_social_sharing_types']) && is_single()) {
|
1391 |
+
if ($this->options['mr_social_sharing_position'] == 'top') {
|
1392 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1393 |
+
$content = $bookmarks.$content;
|
1394 |
+
}
|
1395 |
+
if ($this->options['mr_social_sharing_position'] == 'bottom' && is_single()) {
|
1396 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1397 |
+
$content .= $bookmarks;
|
1398 |
+
}
|
1399 |
+
if ($this->options['mr_social_sharing_position'] == 'both' && is_single()) {
|
1400 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1401 |
+
$content = $bookmarks.$content.$bookmarks;
|
1402 |
+
}
|
1403 |
+
}
|
1404 |
+
return $content;
|
1405 |
+
}
|
1406 |
+
|
1407 |
+
function share_more_link($link) {
|
1408 |
+
$media = '';
|
1409 |
+
if (current_theme_supports('post-thumbnails')) {
|
1410 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()))) {
|
1411 |
+
if (is_array($media)) {
|
1412 |
+
$media = $media[0];
|
1413 |
+
} else {
|
1414 |
+
$media = '';
|
1415 |
+
}
|
1416 |
+
}
|
1417 |
+
} else {
|
1418 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches);
|
1419 |
+
$img = $matches[1][0];
|
1420 |
+
if($img != '') {
|
1421 |
+
$media = $img;
|
1422 |
+
}
|
1423 |
+
}
|
1424 |
+
$type = get_post_type();
|
1425 |
+
if (in_array($type, $this->options['mr_social_sharing_types'])) {
|
1426 |
+
if (in_array($this->options['mr_social_sharing_position'], array('bottom','both'))) {
|
1427 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1428 |
+
$link = $bookmarks.$link;
|
1429 |
+
}
|
1430 |
+
}
|
1431 |
+
return $link;
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
function share_excerpt($content) {
|
1435 |
+
$media = '';
|
1436 |
+
if (current_theme_supports('post-thumbnails')) {
|
1437 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()))) {
|
1438 |
+
if (is_array($media)) {
|
1439 |
+
$media = $media[0];
|
1440 |
+
} else {
|
1441 |
+
$media = '';
|
1442 |
+
}
|
1443 |
+
}
|
1444 |
+
} else {
|
1445 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
|
1446 |
+
$img = $matches[1][0];
|
1447 |
+
if($img != '') {
|
1448 |
+
$media = $img;
|
1449 |
+
}
|
1450 |
+
}
|
1451 |
+
$type = get_post_type();
|
1452 |
+
if (in_array($type, $this->options['mr_social_sharing_types'])) {
|
1453 |
if ($this->options['mr_social_sharing_position'] == 'top') {
|
1454 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1455 |
$content = $bookmarks.$content;
|
1456 |
}
|
1457 |
if ($this->options['mr_social_sharing_position'] == 'bottom') {
|
1458 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1459 |
$content .= $bookmarks;
|
1460 |
}
|
1461 |
if ($this->options['mr_social_sharing_position'] == 'both') {
|
1462 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), '', $media);
|
1463 |
$content = $bookmarks.$content.$bookmarks;
|
1464 |
}
|
1465 |
}
|
1467 |
}
|
1468 |
|
1469 |
function should_use_shortcode() {
|
1470 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && !is_feed()) {
|
1471 |
return true;
|
1472 |
}
|
1473 |
return false;
|
1474 |
}
|
1475 |
|
1476 |
function share_shortcode() {
|
1477 |
+
$media = '';
|
1478 |
+
if (current_theme_supports('post-thumbnails')) {
|
1479 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()))) {
|
1480 |
+
if (is_array($media)) {
|
1481 |
+
$media = $media[0];
|
1482 |
+
} else {
|
1483 |
+
$media = '';
|
1484 |
+
}
|
1485 |
+
}
|
1486 |
+
} else {
|
1487 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', the_content(), $matches);
|
1488 |
+
$img = $matches[1][0];
|
1489 |
+
if($img != '') {
|
1490 |
+
$media = $img;
|
1491 |
+
}
|
1492 |
+
}
|
1493 |
$bookmarks = '';
|
1494 |
+
if ($this->options['mr_social_sharing_enable_shortcode'] == 1 && (is_single() || $this->options['mr_social_sharing_include_excerpts'] == 1)) {
|
1495 |
+
$bookmarks = $this->create_bookmarks(get_permalink(), the_title('','',false), 'shortcode_', $media);
|
1496 |
}
|
1497 |
return $bookmarks;
|
1498 |
}
|
1512 |
}
|
1513 |
|
1514 |
function linkify($content) {
|
1515 |
+
if ($this->options['mr_social_sharing_linkify_new'] == 1) {
|
1516 |
+
if ($this->options['mr_social_sharing_twitter_handles'] == 1) {
|
1517 |
+
$content = preg_replace("/(^|\s)+(@([a-zA-Z0-9-_]{1,15}))(\.*[^|\n|\r|\t|\s|\<|\&]*)/i", "$1<a href=\"http://twitter.com/$3\" target=\"_BLANK\">$2</a>$4", $content);
|
1518 |
+
}
|
1519 |
+
if ($this->options['mr_social_sharing_twitter_hashtags'] == 1) {
|
1520 |
+
$content = preg_replace("/(^|\s)+((?:(?<!&))#([a-zA-Z0-9]+^[-|;]))([^|\n|\r|\t|\s|\.|\<|\&]*)/i", "$1<a href=\"http://twitter.com/search/$3\" target=\"_BLANK\">$2</a>$4", $content);
|
1521 |
+
}
|
1522 |
+
} else {
|
1523 |
+
if ($this->options['mr_social_sharing_twitter_handles'] == 1) {
|
1524 |
+
$content = preg_replace("/(^|\s)+(@([a-zA-Z0-9-_]{1,15}))(\.*[^|\n|\r|\t|\s|\<|\&]*)/i", "$1<a href=\"http://twitter.com/$3\">$2</a>$4", $content);
|
1525 |
+
}
|
1526 |
+
if ($this->options['mr_social_sharing_twitter_hashtags'] == 1) {
|
1527 |
+
$content = preg_replace("/(^|\s)+((?:(?<!&))#([a-zA-Z0-9]+^[-|;]))([^|\n|\r|\t|\s|\.|\<|\&]*)/i", "$1<a href=\"http://twitter.com/search/$3\">$2</a>$4", $content);
|
1528 |
+
}
|
1529 |
}
|
1530 |
return $content;
|
1531 |
}
|
1543 |
$widget_title = empty($instance['widget_title']) ? '' : $instance['widget_title'];
|
1544 |
$url = empty($instance['fixed_url']) ? '' : $instance['fixed_url'];
|
1545 |
$title = empty($instance['fixed_title']) ? wp_title('', false) : $instance['fixed_title'];
|
1546 |
+
$media = '';
|
1547 |
+
if (current_theme_supports('post-thumbnails')) {
|
1548 |
+
if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()))) {
|
1549 |
+
if (is_array($media)) {
|
1550 |
+
$media = $media[0];
|
1551 |
+
} else {
|
1552 |
+
$media = '';
|
1553 |
+
}
|
1554 |
+
}
|
1555 |
+
} else {
|
1556 |
+
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
|
1557 |
+
$img = $matches[1][0];
|
1558 |
+
if($img != '') {
|
1559 |
+
$media = $img;
|
1560 |
+
}
|
1561 |
+
}
|
1562 |
+
$bookmarks = $MR_Social_Sharing_Toolkit->create_bookmarks($url, $title, 'widget_', $media);
|
1563 |
echo $before_widget;
|
1564 |
if ($widget_title != '') {
|
1565 |
echo $before_title . $widget_title . $after_title;
|
1637 |
$MR_Social_Sharing_Toolkit = new MR_Social_Sharing_Toolkit();
|
1638 |
add_action('wp_print_styles', array($MR_Social_Sharing_Toolkit, 'prepare_styles'));
|
1639 |
add_action('wp_print_scripts', array($MR_Social_Sharing_Toolkit, 'prepare_scripts'));
|
1640 |
+
if ($MR_Social_Sharing_Toolkit->should_print_opengraph()) {
|
1641 |
+
add_action('wp_head', array($MR_Social_Sharing_Toolkit, 'print_opengraph'), 1);
|
1642 |
+
}
|
1643 |
if ($MR_Social_Sharing_Toolkit->should_linkify_content()) {
|
1644 |
add_filter('the_content', array($MR_Social_Sharing_Toolkit, 'linkify'));
|
1645 |
}
|
1647 |
add_filter('comment_text', array($MR_Social_Sharing_Toolkit, 'linkify'));
|
1648 |
}
|
1649 |
if ($MR_Social_Sharing_Toolkit->should_share_content()) {
|
1650 |
+
add_filter('the_content', array($MR_Social_Sharing_Toolkit, 'share'));
|
1651 |
+
}
|
1652 |
+
if ($MR_Social_Sharing_Toolkit->should_share_excerpt()) {
|
1653 |
+
add_filter('the_content_more_link', array($MR_Social_Sharing_Toolkit, 'share_more_link'));
|
1654 |
+
add_filter('the_excerpt', array($MR_Social_Sharing_Toolkit, 'share_excerpt'));
|
1655 |
}
|
1656 |
if ($MR_Social_Sharing_Toolkit->should_use_shortcode()) {
|
1657 |
add_shortcode('social_share', array($MR_Social_Sharing_Toolkit, 'share_shortcode'));
|
stumbleupon.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function() {
|
2 |
+
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
|
3 |
+
li.src = window.location.protocol + '//platform.stumbleupon.com/1/widgets.js';
|
4 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
|
5 |
+
})();
|
style.css
CHANGED
@@ -1,147 +1,27 @@
|
|
1 |
-
div.mr_social_sharing_wrapper {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
}
|
9 |
-
|
10 |
-
|
11 |
-
display: block;
|
12 |
-
height: auto !important;
|
13 |
-
margin: 2px !important;
|
14 |
-
padding: 0 !important;
|
15 |
-
vertical-align: bottom !important;
|
16 |
-
}
|
17 |
-
|
18 |
-
span.mr_social_sharing, span.mr_social_sharing_top {
|
19 |
-
display: inline-block;
|
20 |
-
}
|
21 |
-
|
22 |
-
div.mr_social_sharing_top, span.mr_social_sharing_top {
|
23 |
-
vertical-align: top !important;
|
24 |
-
}
|
25 |
-
|
26 |
-
a.mr_social_sharing_popup_link, a.mr_social_sharing_popup_link:HOVER {
|
27 |
-
display: inline-block;
|
28 |
-
margin: 0 !important;
|
29 |
-
padding: 0 !important;
|
30 |
-
border: 0 !important;
|
31 |
-
vertical-align: bottom !important;
|
32 |
-
}
|
33 |
-
|
34 |
-
.mr_social_sharing img, .mr_social_sharing_top img {
|
35 |
-
display: inline-block !important;
|
36 |
-
margin: 0 !important;
|
37 |
-
padding: 0 !important;
|
38 |
-
border: 0 !important;
|
39 |
-
vertical-align: bottom !important;
|
40 |
-
max-width: 100%;
|
41 |
-
}
|
42 |
-
|
43 |
-
.mr_social_sharing a.mr_social_sharing_popup_link, .mr_social_sharing div, .mr_social_sharing span, .mr_social_sharing iframe, .mr_social_sharing img {
|
44 |
-
line-height: 0 !important;
|
45 |
-
vertical-align: bottom !important;
|
46 |
-
}
|
47 |
-
|
48 |
-
.mr_social_sharing_top a.mr_social_sharing_popup_link, .mr_social_sharing_top div, .mr_social_sharing_top span, .mr_social_sharing_top iframe, .mr_social_sharing_top img {
|
49 |
-
line-height: 0 !important;
|
50 |
-
vertical-align: top !important;
|
51 |
-
}
|
52 |
-
|
53 |
-
.mr_social_sharing span.mr_small_icon, .mr_social_sharing span.mr_medium_icon, .mr_social_sharing_top span.mr_small_icon, .mr_social_sharing_top span.mr_medium_icon {
|
54 |
-
display: inline-block !important;
|
55 |
-
font-family: 'Droid Sans',arial,sans-serif !important;
|
56 |
-
vertical-align: bottom !important;
|
57 |
-
font-size:10px !important;
|
58 |
-
font-weight: 200 !important;
|
59 |
-
line-height: 10px !important;
|
60 |
-
margin: 0 0 0 4px !important;
|
61 |
-
padding: 0 !important;
|
62 |
-
}
|
63 |
-
|
64 |
-
.mr_social_sharing span.mr_medium_icon, .mr_social_sharing_top span.mr_medium_icon {
|
65 |
-
font-size:12px !important;
|
66 |
-
line-height: 12px !important;
|
67 |
-
}
|
68 |
-
|
69 |
/* Digg fix */
|
70 |
-
|
71 |
-
span.db-count {
|
72 |
-
line-height: 16px !important;
|
73 |
-
vertical-align: baseline !important;
|
74 |
-
}
|
75 |
-
|
76 |
/* LinkedIn fix */
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
}
|
84 |
-
|
85 |
/* Delicious */
|
86 |
-
|
87 |
-
.delicious_vertical {
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
text-align:center;
|
94 |
-
}
|
95 |
-
|
96 |
-
.delicious_vertical a.mr_social_sharing_popup_link, .delicious_vertical a.mr_social_sharing_popup_link:hover {
|
97 |
-
display: block;
|
98 |
-
font-family: 'Droid Sans',arial,sans-serif !important;
|
99 |
-
font-size: 15px !important;
|
100 |
-
font-weight: 200 !important;
|
101 |
-
color: #7e7e7e !important;
|
102 |
-
background: transparent url(images/delicious_counters.png) no-repeat scroll left top !important;
|
103 |
-
padding: 6px 0px 44px 0px !important;
|
104 |
-
margin: 0;
|
105 |
-
width: 50px !important;
|
106 |
-
height: 10px !important;
|
107 |
-
line-height: 15px !important;
|
108 |
-
text-decoration: none;
|
109 |
-
}
|
110 |
-
|
111 |
-
.delicious_vertical a.mr_social_sharing_popup_link:hover {
|
112 |
-
color: #0090ff !important;
|
113 |
-
background: transparent url(images/delicious_counters_hover.png) no-repeat scroll left top !important;
|
114 |
-
}
|
115 |
-
|
116 |
-
.delicious_horizontal {
|
117 |
-
display:inline-block;
|
118 |
-
height:20px !important;
|
119 |
-
width:120px !important;
|
120 |
-
padding: 0px;
|
121 |
-
margin: 0px;
|
122 |
-
}
|
123 |
-
|
124 |
-
.delicious_horizontal a, .delicious_horizontal a:hover {
|
125 |
-
display: block;
|
126 |
-
font-family: 'Droid Sans',arial,sans-serif !important;
|
127 |
-
font-size: 12px !important;
|
128 |
-
font-weight: 300 !important;
|
129 |
-
background: transparent url(images/delicious_counters.png) no-repeat scroll left bottom;
|
130 |
-
height: 10px !important;
|
131 |
-
width: 35px !important;
|
132 |
-
padding: 10px 5px 0 80px !important;
|
133 |
-
vertical-align: bottom !important;
|
134 |
-
color: #7e7e7e !important;
|
135 |
-
text-decoration: none;
|
136 |
-
text-align:center;
|
137 |
-
white-space:nowrap;
|
138 |
-
}
|
139 |
-
|
140 |
-
.delicious_horizontal a:hover {
|
141 |
-
color: #0090ff !important;
|
142 |
-
background: transparent url(images/delicious_counters_hover.png) no-repeat scroll left bottom;
|
143 |
-
}
|
144 |
-
|
145 |
-
.delicious_vertical span.delicious_hash, .delicious_horizontal span.delicious_hash {
|
146 |
-
display: none !important;
|
147 |
-
}
|
1 |
+
div.mr_social_sharing_wrapper {height: auto; width: 100%; margin: 4px 0; padding: 0; border: 0; line-height: 0;}
|
2 |
+
div.mr_social_sharing, span.mr_social_sharing, div.mr_social_sharing_top, span.mr_social_sharing_top {display: block; width: auto; height: auto; margin: 2px; padding: 0; vertical-align: bottom;}
|
3 |
+
span.mr_social_sharing, span.mr_social_sharing_top {display: inline-block;}
|
4 |
+
div.mr_social_sharing_top, span.mr_social_sharing_top {vertical-align: top;}
|
5 |
+
a.mr_social_sharing_popup_link, a.mr_social_sharing_popup_link:HOVER {display: inline-block; margin: 0; padding: 0; border: 0; vertical-align: bottom;}
|
6 |
+
.mr_social_sharing img, .mr_social_sharing_top img {display: inline-block; margin: 0 !important; padding: 0 !important; border: 0 !important; vertical-align: bottom; max-width: 100%;}
|
7 |
+
.mr_social_sharing a.mr_social_sharing_popup_link, .mr_social_sharing div, .mr_social_sharing span, .mr_social_sharing iframe, .mr_social_sharing img {line-height: 0; vertical-align: bottom;}
|
8 |
+
.mr_social_sharing_top a.mr_social_sharing_popup_link, .mr_social_sharing_top div, .mr_social_sharing_top span, .mr_social_sharing_top iframe, .mr_social_sharing_top img {line-height: 0; vertical-align: top;}
|
9 |
+
.mr_social_sharing span.mr_small_icon, .mr_social_sharing span.mr_medium_icon, .mr_social_sharing_top span.mr_small_icon, .mr_social_sharing_top span.mr_medium_icon {display: inline-block; font-family: 'Droid Sans',arial,sans-serif; vertical-align: bottom; font-size:10px; font-weight: 200; line-height: 10px; margin: 0 0 0 4px; padding: 0;}
|
10 |
+
.mr_social_sharing span.mr_medium_icon, .mr_social_sharing_top span.mr_medium_icon {font-size:12px; line-height: 12px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
/* Digg fix */
|
12 |
+
span.db-count {line-height: 16px; vertical-align: baseline;}
|
|
|
|
|
|
|
|
|
|
|
13 |
/* LinkedIn fix */
|
14 |
+
span.IN-widget {margin: 0; padding: 0; border: 0; line-height: 0;}
|
15 |
+
/* Facebook Share fix */
|
16 |
+
span.FBConnectButton_Small {height: 18px;}
|
17 |
+
.FBConnectButton_Small span.FBConnectButton_Text {height: 6px; padding-top: 6px; padding-bottom: 3px;}
|
18 |
+
span.fb_share_count_nub_right, span.fb_share_count_nub_right {vertical-align: top;}
|
19 |
+
span.fb_share_count_top, span.fb_share_count_inner {line-height: 34px;}
|
|
|
|
|
20 |
/* Delicious */
|
21 |
+
.delicious_vertical {display:inline-block; width: 50px; height:60px; padding: 0px; margin: 0px; text-align:center;}
|
22 |
+
.delicious_vertical a.mr_social_sharing_popup_link, .delicious_vertical a.mr_social_sharing_popup_link:hover {display: block; font-family: 'Droid Sans',arial,sans-serif; font-size: 15px; font-weight: 200; color: #7e7e7e; background: transparent url(images/delicious_counters.png) no-repeat scroll left top; padding: 6px 0px 44px 0px; margin: 0; width: 50px; height: 10px; line-height: 15px; text-decoration: none;}
|
23 |
+
.delicious_vertical a.mr_social_sharing_popup_link:hover {color: #0090ff; background: transparent url(images/delicious_counters_hover.png) no-repeat scroll left top;}
|
24 |
+
.delicious_horizontal {display:inline-block; height:20px; width:120px; padding: 0px; margin: 0px;}
|
25 |
+
.delicious_horizontal a, .delicious_horizontal a:hover {display: block; font-family: 'Droid Sans',arial,sans-serif; font-size: 12px; font-weight: 300; background: transparent url(images/delicious_counters.png) no-repeat scroll left bottom; height: 10px; width: 35px; padding: 10px 5px 0 80px; vertical-align: bottom; color: #7e7e7e; text-decoration: none; text-align:center; white-space:nowrap;}
|
26 |
+
.delicious_horizontal a:hover {color: #0090ff; background: transparent url(images/delicious_counters_hover.png) no-repeat scroll left bottom;}
|
27 |
+
.delicious_vertical span.delicious_hash, .delicious_horizontal span.delicious_hash {display: none;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|