<xen:if is="{$xenOptions.addThis.enabled}">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_preferred_5"></a>
<a class="addthis_button_preferred_6"></a>
<a class="addthis_button_preferred_7"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">
var addthis_share = {
url: "{xen:jsescape $url}",
templates: {
twitter: "{{title}} {{url}}{xen:if {$xenOptions.tweet.via}, ' via @{$xenOptions.tweet.via}'}"
}
};
var addthis_config = {
services_exclude: 'print'
};
// handle AddThis on AJAX-loaded page
if (!window.addthis)
{
XenForo.loadJs("//s7.addthis.com/js/250/addthis_widget.js#domready=1{xen:if {$xenOptions.addThis.pubId}, '&pubid={xen:jsescape $xenOptions.addThis.pubId}'}");
}
else
{
addthis.toolbox($('.addthis_toolbox').get());
}
</script>
<!-- AddThis Button END -->
</xen:if>