/**
  * Creates tool specific settings for the JavaScript variable
  * addthis_layers, used to bootstrap layers
  *
  * @param array $configs optional array of settings (used with widgets)
  *
  * @return array an associative array
  */
 public function getAddThisLayers($configs = array())
 {
     if (empty($configs)) {
         $configs = $this->getToolConfigs();
     }
     $layers = array('follow' => $configs['follow'], 'buttonBarTheme' => $configs['buttonBarTheme'], 'buttonBarPosition' => $configs['buttonBarPosition']);
     $layers['followServices'] = AddThisFollowButtonsToolParent::formatServicesForAddThisLayers($configs['followServices']);
     $result = array($this->layersApiProductName => $layers);
     return $result;
 }
 /**
  * Creates tool specific settings for the JavaScript variable
  * addthis_layers, used to bootstrap layers
  *
  * @param array $configs optional array of settings (used with widgets)
  *
  * @return array an associative array
  */
 public function getAddThisLayers($configs = array())
 {
     if (empty($configs)) {
         $configs = $this->getToolConfigs();
     }
     if (!$this->isEnabled()) {
         return array();
     }
     $layers = array('services' => array(), 'orientation' => 'horizontal', 'size' => $configs['size'], 'thankyou' => $configs['thankyou'], 'title' => $configs['title'], 'elements' => '.' . $this->layersClass);
     $layers['services'] = AddThisFollowButtonsToolParent::formatServicesForAddThisLayers($configs['services']);
     $result = array($this->layersApiProductName => $layers);
     return $result;
 }
 /**
  * Creates tool specific settings for the JavaScript variable
  * addthis_layers, used to bootstrap layers
  *
  * @param array $configs optional array of settings (used with widgets)
  *
  * @return array an associative array
  */
 public function getAddThisLayers($configs = array())
 {
     if (empty($configs)) {
         $configs = $this->getToolConfigs();
     }
     if (!$this->isEnabled()) {
         return array();
     }
     $layers = array('services' => array(), 'title' => $configs['title'], 'theme' => $configs['theme'], 'thankyou' => $configs['thankyou'], 'responsive' => (int) $configs['responsive'] . 'px');
     $layers['services'] = AddThisFollowButtonsToolParent::formatServicesForAddThisLayers($configs['services']);
     if (!empty($configs['offset']['location'])) {
         $location = $configs['offset']['location'];
         $amount = $configs['offset']['amount'];
         $unit = $configs['offset']['unit'];
         $layers['offset'][$location] = (int) $amount . $unit;
     }
     $result = array($this->layersApiProductName => $layers);
     return $result;
 }