protected function ShareMessage::getNamespaceAttributes in Share Message 7
Getter for additional button attributes.
Parameters
string $icon_style: The used icon style of the sharemessage.
Return value
array Array of namespace attributes keyed by service name.
File
- includes/
sharemessage.entity.inc, line 414 - Definition of ShareMessage entity class.
Class
Code
protected function getNamespaceAttributes($icon_style) {
// Floating counter style attributes.
if ($icon_style == 'addthis_counter_style') {
return array(
'facebook_like' => 'fb:like:layout="box_count"',
'tweet' => 'tw:count="vertical"',
'google_plusone' => 'g:plusone:size="tall"',
);
}
// Default attributes.
return array(
'facebook_like' => 'fb:like:layout="button_count"',
'pinterest_pinit' => 'pi:pinit:layout="horizontal"',
);
}