You are here

public function AddThisWidgetJsUrl::getFullUrl in AddThis 7.4

Get the full url for the widgetjs.

File

classes/Util/AddThisWidgetJsUrl.php, line 38
Class to manage a WidgetJs url.

Class

AddThisWidgetJsUrl
@file Class to manage a WidgetJs url.

Code

public function getFullUrl() {
  $querystring_elements = array();
  foreach ($this->attributes as $key => $value) {
    if (!empty($value)) {
      $querystring_elements[] = $key . '=' . $value;
    }
  }
  $querystring = implode('&', $querystring_elements);
  return $this->url . '#' . $querystring;
}