diff --git a/jquery.addthis.js b/jquery.addthis.js
index d258319..d795682 100644
--- a/jquery.addthis.js
+++ b/jquery.addthis.js
@@ -3,6 +3,7 @@
* (c)2009 Brent Wong
*
* Modified by Nick Shepherd
+ * Modified by Massimiliano Arione
*
* Usage:
* $.addthis();
@@ -15,6 +16,7 @@
* btn_size: the size of the button to be displayed (large, small)
* url: the url to be shared (default: '[URL]')
* url_title: title of the url to be shared (default: '[TITLE]')
+ * lang: the language of button (default: 'en' for english)
*/
(function($){
$.addthis = function(code, options){
@@ -26,7 +28,8 @@
elem: 'a.addthis',
btn_size: 'large',
url: '[URL]',
- url_title: '[TITLE]'
+ url_title: '[TITLE]',
+ lang: 'en'
}
var opts = $.extend(defaults, options);
@@ -36,13 +39,13 @@
var btn_image = '';
if(opts.btn_size == 'large')
- btn_image = '
';
+ btn_image = '
';
else
- btn_image = '
';
+ btn_image = '
';
// include the script
$.getScript(addthisurl, function(){
- $(options.elem).append(btn_image).attr('href', 'http://www.addthis.com/bookmark.php?v=250').mouseover(
+ $(opts.elem).append(btn_image).attr('href', 'http://www.addthis.com/bookmark.php?v=250').mouseover(
function(){
return addthis_open(this, '', opts.url, opts.url_title);
}).mouseout(
@@ -61,4 +64,4 @@
init();
}
-})(jQuery);
\ No newline at end of file
+})(jQuery);