| @@ 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 | ||
| @@ 1699-1709 (lines=11) @@ | ||
| 1696 | public $genericon = '\f220'; |
|
| 1697 | private $share_type = 'default'; |
|
| 1698 | ||
| 1699 | public function __construct( $id, array $settings ) { |
|
| 1700 | parent::__construct( $id, $settings ); |
|
| 1701 | ||
| 1702 | if ( isset( $settings['share_type'] ) ) { |
|
| 1703 | $this->share_type = $settings['share_type']; |
|
| 1704 | } |
|
| 1705 | ||
| 1706 | if ( 'official' == $this->button_style ) { |
|
| 1707 | $this->smart = true; |
|
| 1708 | } else { |
|
| 1709 | $this->smart = false; |
|
| 1710 | } |
|
| 1711 | } |
|
| 1712 | ||