| @@ 1723-1733 (lines=11) @@ | ||
| 1720 | public $icon = '\f220'; |
|
| 1721 | private $share_type = 'default'; |
|
| 1722 | ||
| 1723 | public function __construct( $id, array $settings ) { |
|
| 1724 | parent::__construct( $id, $settings ); |
|
| 1725 | ||
| 1726 | if ( isset( $settings['share_type'] ) ) { |
|
| 1727 | $this->share_type = $settings['share_type']; |
|
| 1728 | } |
|
| 1729 | ||
| 1730 | if ( 'official' == $this->button_style ) { |
|
| 1731 | $this->smart = true; |
|
| 1732 | } else { |
|
| 1733 | $this->smart = false; |
|
| 1734 | } |
|
| 1735 | ||
| 1736 | } |
|
| @@ 960-970 (lines=11) @@ | ||
| 957 | public $icon = '\f204'; |
|
| 958 | private $share_type = 'default'; |
|
| 959 | ||
| 960 | public function __construct( $id, array $settings ) { |
|
| 961 | parent::__construct( $id, $settings ); |
|
| 962 | ||
| 963 | if ( isset( $settings['share_type'] ) ) { |
|
| 964 | $this->share_type = $settings['share_type']; |
|
| 965 | } |
|
| 966 | ||
| 967 | if ( 'official' == $this->button_style ) { |
|
| 968 | $this->smart = true; |
|
| 969 | } else { |
|
| 970 | $this->smart = false; |
|
| 971 | } |
|
| 972 | } |
|
| 973 | ||