Difference between revisions of "Widget:AddThis"

From MansunWiki
Jump to: navigation, search
m (Updated AddThis Widget with updated js code)
m
Line 10: Line 10:
 
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
 
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
 
</noinclude><includeonly><!-- AddThis Button BEGIN -->
 
</noinclude><includeonly><!-- AddThis Button BEGIN -->
<div style="cursor: pointer; float: right; margin-top: -30px" onClick="return addthis_open(this, '', '<!--{$page_url|escape:'quotes'}-->', '<!--{$page_name|escape:'quotes'}-->')" onmouseout="addthis_close()"><img src="http://s9.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="" /></div>
+
<div style="cursor: pointer; float: right; margin-top: -30px" onClick="return addthis_open(this, '', '<!--{$page_url|escape:'quotes'}-->', '<!--{$page_name|escape:'quotes'}-->')" onmouseout="addthis_close()"><img src="http://s9.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="Share" /></div>
 
<!-- AddThis Button END -->
 
<!-- AddThis Button END -->
  
Line 23: Line 23:
 
addthis_offset_top = '<!--{$offset_top|escape:'quotes'}-->';
 
addthis_offset_top = '<!--{$offset_top|escape:'quotes'}-->';
 
addthis_offset_left = '<!--{$offset_left|escape:'quotes'}-->';
 
addthis_offset_left = '<!--{$offset_left|escape:'quotes'}-->';
</script><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56a556696f5e2723" async="async"></script>
+
</script><script src="http://s7.addthis.com/js/250/addthis_widget.js" type="text/javascript"></script>
 
+
 
<!-- AddThis Rollover END -->
 
<!-- AddThis Rollover END -->
 
</includeonly>
 
</includeonly>

Revision as of 00:27, 25 January 2016

This widget allows you to add the AddThis social-bookmarking button to your wiki page.

It was created by Yaron Koren.

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:AddThis article.