You are here

public function AddThis::getAddThisAttributesMarkup in AddThis 7.4

File

classes/AddThis.php, line 216
An AddThis-class.

Class

AddThis
@file An AddThis-class.

Code

public function getAddThisAttributesMarkup($options) {
  if (isset($options)) {
    $attributes = array();
    if (isset($options['#entity'])) {
      $attributes += $this
        ->getAttributeTitle($options['#entity']);
    }
    $attributes += $this
      ->getAttributeUrl($options);
    return $attributes;
  }
  return array();
}