plugins/social_share_privacy/public/socialshareprivacy/javascripts/modules/fbshare.js
/*
* Facebook share module for jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz
*
* http://www.heise.de/extras/socialshareprivacy/
* http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html
*
* Copyright (c) 2011 Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt,
* Heise Zeitschriften Verlag GmbH & Co. KG, http://www.heise.de
*
* Copyright (c) 2012 Mathias Panzenböck
*
* Fbshare module:
* copyright (c) 2013 zzzen.com
*
* is released under the MIT License http://www.opensource.org/licenses/mit-license.php
*
* Spread the word, link to us if you can.
*/
(function ($, undefined) {
"use strict";
$.fn.socialSharePrivacy.settings.services.fbshare = {
'status' : true,
'privacy' : 'safe',
'button_class' : 'fbshare',
'line_img' : 'images/fbshare.png',
'box_img' : 'images/box_fbshare.png',
'txt_info' : 'Share via facebook.',
'txt_button' : 'Facebook Share',
'display_name' : 'Facebook Share',
'referrer_track' : '',
'button' : function (options, uri, settings) {
return $('<a/>', {target: '_blank', href: 'https://www.facebook.com/sharer/sharer.php?'+$.param({u:uri + options.referrer_track})}).append(
$('<img>', {alt: options.txt_button,
src: options.path_prefix + (settings.layout === 'line' ? options.line_img : options.box_img)}));
}
};
})(jQuery);