| @@ 872-882 (lines=11) @@ | ||
| 869 | public $genericon = '\f204'; |
|
| 870 | private $share_type = 'default'; |
|
| 871 | ||
| 872 | public function __construct( $id, array $settings ) { |
|
| 873 | parent::__construct( $id, $settings ); |
|
| 874 | ||
| 875 | if ( isset( $settings['share_type'] ) ) { |
|
| 876 | $this->share_type = $settings['share_type']; |
|
| 877 | } |
|
| 878 | ||
| 879 | if ( 'official' == $this->button_style ) { |
|
| 880 | $this->smart = true; |
|
| 881 | } else { |
|
| 882 | $this->smart = false; |
|
| 883 | } |
|
| 884 | } |
|
| 885 | ||
| @@ 1700-1710 (lines=11) @@ | ||
| 1697 | public $genericon = '\f220'; |
|
| 1698 | private $share_type = 'default'; |
|
| 1699 | ||
| 1700 | public function __construct( $id, array $settings ) { |
|
| 1701 | parent::__construct( $id, $settings ); |
|
| 1702 | ||
| 1703 | if ( isset( $settings['share_type'] ) ) { |
|
| 1704 | $this->share_type = $settings['share_type']; |
|
| 1705 | } |
|
| 1706 | ||
| 1707 | if ( 'official' == $this->button_style ) { |
|
| 1708 | $this->smart = true; |
|
| 1709 | } else { |
|
| 1710 | $this->smart = false; |
|
| 1711 | } |
|
| 1712 | } |
|
| 1713 | ||