/** * Share_Push7 constructor. * * @param $id * @param array $settings * @since 0.0.1-dev */ public function __construct($id, array $settings) { parent::__construct($id, $settings); if ('official' == $this->button_style) { $this->smart = true; } else { $this->smart = false; } }
public function __construct($id, array $settings) { parent::__construct($id, $settings); if (isset($settings['share_type'])) { $this->share_type = $settings['share_type']; } if ('official' == $this->button_style) { $this->smart = true; } else { $this->smart = false; } }