| @@ 885-895 (lines=11) @@ | ||
| 882 | public $genericon = '\f204'; |
|
| 883 | private $share_type = 'default'; |
|
| 884 | ||
| 885 | public function __construct( $id, array $settings ) { |
|
| 886 | parent::__construct( $id, $settings ); |
|
| 887 | ||
| 888 | if ( isset( $settings['share_type'] ) ) { |
|
| 889 | $this->share_type = $settings['share_type']; |
|
| 890 | } |
|
| 891 | ||
| 892 | if ( 'official' == $this->button_style ) { |
|
| 893 | $this->smart = true; |
|
| 894 | } else { |
|
| 895 | $this->smart = false; |
|
| 896 | } |
|
| 897 | } |
|
| 898 | ||
| @@ 1725-1735 (lines=11) @@ | ||
| 1722 | public $genericon = '\f220'; |
|
| 1723 | private $share_type = 'default'; |
|
| 1724 | ||
| 1725 | public function __construct( $id, array $settings ) { |
|
| 1726 | parent::__construct( $id, $settings ); |
|
| 1727 | ||
| 1728 | if ( isset( $settings['share_type'] ) ) { |
|
| 1729 | $this->share_type = $settings['share_type']; |
|
| 1730 | } |
|
| 1731 | ||
| 1732 | if ( 'official' == $this->button_style ) { |
|
| 1733 | $this->smart = true; |
|
| 1734 | } else { |
|
| 1735 | $this->smart = false; |
|
| 1736 | } |
|
| 1737 | } |
|
| 1738 | ||