| @@ 1717-1727 (lines=11) @@ | ||
| 1714 | public $icon = '\f220'; |
|
| 1715 | private $share_type = 'default'; |
|
| 1716 | ||
| 1717 | public function __construct( $id, array $settings ) { |
|
| 1718 | parent::__construct( $id, $settings ); |
|
| 1719 | ||
| 1720 | if ( isset( $settings['share_type'] ) ) { |
|
| 1721 | $this->share_type = $settings['share_type']; |
|
| 1722 | } |
|
| 1723 | ||
| 1724 | if ( 'official' == $this->button_style ) { |
|
| 1725 | $this->smart = true; |
|
| 1726 | } else { |
|
| 1727 | $this->smart = false; |
|
| 1728 | } |
|
| 1729 | ||
| 1730 | } |
|
| @@ 956-966 (lines=11) @@ | ||
| 953 | public $icon = '\f204'; |
|
| 954 | private $share_type = 'default'; |
|
| 955 | ||
| 956 | public function __construct( $id, array $settings ) { |
|
| 957 | parent::__construct( $id, $settings ); |
|
| 958 | ||
| 959 | if ( isset( $settings['share_type'] ) ) { |
|
| 960 | $this->share_type = $settings['share_type']; |
|
| 961 | } |
|
| 962 | ||
| 963 | if ( 'official' == $this->button_style ) { |
|
| 964 | $this->smart = true; |
|
| 965 | } else { |
|
| 966 | $this->smart = false; |
|
| 967 | } |
|
| 968 | } |
|
| 969 | ||