$links = array();
if ($type === 'node' && user_access('view addthis')) {
- if (! $teaser || variable_get('addthis_display_in_teasers', '0')) {
- $links['addthis'] = array(
- 'title' => _addthis_create_button($node, $teaser),
- 'html' => TRUE,
- );
- }
+ if (! $teaser || variable_get('addthis_display_in_teasers', '0')) {
+ $links['addthis'] = array(
+ 'title' => _addthis_create_button($node, $teaser),
+ 'html' => TRUE,
+ );
+ }
}
return $links;
variable_get('addthis_image_height', '16'),
variable_get('addthis_image_attributes', 'alt=""')
));
- } else {
+ }
+ else {
return ( sprintf('
<div class="addthis"><a href="http://www.addthis.com/bookmark.php"
onmouseover="return addthis_open(this, \'\', \'%s\', \'%s\')"
onclick="return addthis_sendto()"><img src="%s" width="%d" height="%d" %s /></a></div>
<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
',
- $teaser ? url('node/'.$node->nid, array('absolute' => 1) ) : '[URL]',
+ $teaser ? url('node/'. $node->nid, array('absolute' => 1) ) : '[URL]',
$teaser ? addslashes($node->title) : '[TITLE]',
variable_get('addthis_image', 'http://s9.addthis.com/button1-share.gif'),
variable_get('addthis_image_width', '125'),