| @@ 871-881 (lines=11) @@ | ||
| 868 | public $genericon = '\f204'; |
|
| 869 | private $share_type = 'default'; |
|
| 870 | ||
| 871 | public function __construct( $id, array $settings ) { |
|
| 872 | parent::__construct( $id, $settings ); |
|
| 873 | ||
| 874 | if ( isset( $settings['share_type'] ) ) { |
|
| 875 | $this->share_type = $settings['share_type']; |
|
| 876 | } |
|
| 877 | ||
| 878 | if ( 'official' == $this->button_style ) { |
|
| 879 | $this->smart = true; |
|
| 880 | } else { |
|
| 881 | $this->smart = false; |
|
| 882 | } |
|
| 883 | } |
|
| 884 | ||
| @@ 1711-1721 (lines=11) @@ | ||
| 1708 | public $genericon = '\f220'; |
|
| 1709 | private $share_type = 'default'; |
|
| 1710 | ||
| 1711 | public function __construct( $id, array $settings ) { |
|
| 1712 | parent::__construct( $id, $settings ); |
|
| 1713 | ||
| 1714 | if ( isset( $settings['share_type'] ) ) { |
|
| 1715 | $this->share_type = $settings['share_type']; |
|
| 1716 | } |
|
| 1717 | ||
| 1718 | if ( 'official' == $this->button_style ) { |
|
| 1719 | $this->smart = true; |
|
| 1720 | } else { |
|
| 1721 | $this->smart = false; |
|
| 1722 | } |
|
| 1723 | } |
|
| 1724 | ||