* @license GNU General Public License, version 2 * @link http://addthis.com AddThis website */ class AddThisFollowButtonsVerticalTool extends AddThisFollowButtonsToolParent { public $layersClass = 'addthis_vertical_follow_toolbox'; public $prettyName = 'Vertical Follow Buttons'; public $edition = 'basic'; public $anonymousSupport = true; public $inline = true; public $settingsSubVariableName = 'flwv'; public $layersApiProductName = 'followtoolbox'; public $widgetClassName = 'AddThisFollowButtonsVerticalWidget'; public $widgetBaseId = 'addthis_vertical_follow_toolbox_widget'; public $widgetName = 'Follow Buttons - Vertical'; public $widgetDescription = 'Vertical social follow buttons from AddThis to increase your followers.'; public $defaultWidgetTitle = 'Follow Me'; public $shortCode = 'addthis_vertical_follow_buttons'; public $availableSizes = array( 'large' => array( 'displayName' => 'Large', 'class' => 'addthis_toolbox addthis_vertical_style addthis_32x32_style' ), 'medium' => array( 'displayName' => 'Medium', 'class' => 'addthis_toolbox addthis_vertical_style addthis_20x20_style' ), 'small' => array( 'displayName' => 'Small', 'class' => 'addthis_toolbox addthis_vertical_style addthis_16x16_style' ), ); protected $defaultConfigs = array( 'enabled' => false, 'size' => 'large', 'title' => 'title', 'thankyou' => true, ); /** * 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' => 'vertical', 'size' => $configs['size'], 'thankyou' => $configs['thankyou'], 'title' => $configs['title'], 'elements' => '.'.$this->layersClass, ); $layers['services'] = $this->formatServicesForAddThisLayers($configs['services']); $result = array($this->layersApiProductName => $layers); return $result; } } }