1/*
2 * jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz
3 *
4 * http://www.heise.de/extras/socialshareprivacy/
5 * http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html
6 *
7 * Copyright (c) 2011 Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt,
8 * Heise Zeitschriften Verlag GmbH & Co. KG, http://www.heise.de
9 *
10 * Copyright (c) 2012 Mathias Panzenböck
11 *
12 * is released under the MIT License http://www.opensource.org/licenses/mit-license.php
13 *
14 * Spread the word, link to us if you can.
15 */
16(function ($, undefined) {
17	"use strict";
18
19	$.fn.socialSharePrivacy.settings.services.xing = {
20		'status'            : true,
21		'dummy_line_img'    : 'images/dummy_xing.png',
22		'dummy_box_img'     : 'images/dummy_box_xing.png',
23		'dummy_alt'         : '"XING"-Dummy',
24		'txt_info'          : 'Two clicks for more privacy: The XING button will be enabled once you click here. Activating the button already sends data to XING &ndash; see <em>i</em>.',
25		'txt_off'           : 'not connected to XING',
26		'txt_on'            : 'connected to XING',
27		'perma_option'      : true,
28		'display_name'      : 'XING',
29		'referrer_track'    : '',
30		'button'            : function (options, uri, settings) {
31			var $code = $('<script type="XING/Share"></script>').attr({
32				'data-counter' : settings.layout === 'line' ? 'right' : 'top',
33				'data-url'     : uri + options.referrer_track,
34				'data-lang'    : options.language
35			});
36
37			return $code.add("<script type='text/javascript'>(function(d, s) { var x = d.createElement(s); s = d.getElementsByTagName(s)[0]; x.src = 'https://www.xing-share.com/js/external/share.js'; s.parentNode.insertBefore(x, s); })(document, 'script');</script>");
38		}
39	};
40})(jQuery);
41