|
@@ 871-881 (lines=11) @@
|
| 868 |
|
public $icon = '\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 |
|
|
|
@@ 1712-1722 (lines=11) @@
|
| 1709 |
|
public $icon = '\f220'; |
| 1710 |
|
private $share_type = 'default'; |
| 1711 |
|
|
| 1712 |
|
public function __construct( $id, array $settings ) { |
| 1713 |
|
parent::__construct( $id, $settings ); |
| 1714 |
|
|
| 1715 |
|
if ( isset( $settings['share_type'] ) ) { |
| 1716 |
|
$this->share_type = $settings['share_type']; |
| 1717 |
|
} |
| 1718 |
|
|
| 1719 |
|
if ( 'official' == $this->button_style ) { |
| 1720 |
|
$this->smart = true; |
| 1721 |
|
} else { |
| 1722 |
|
$this->smart = false; |
| 1723 |
|
} |
| 1724 |
|
|
| 1725 |
|
} |