|
@@ 1042-1052 (lines=11) @@
|
| 1039 |
|
public $icon = '\f204'; |
| 1040 |
|
private $share_type = 'default'; |
| 1041 |
|
|
| 1042 |
|
public function __construct( $id, array $settings ) { |
| 1043 |
|
parent::__construct( $id, $settings ); |
| 1044 |
|
|
| 1045 |
|
if ( isset( $settings['share_type'] ) ) { |
| 1046 |
|
$this->share_type = $settings['share_type']; |
| 1047 |
|
} |
| 1048 |
|
|
| 1049 |
|
if ( 'official' == $this->button_style ) { |
| 1050 |
|
$this->smart = true; |
| 1051 |
|
} else { |
| 1052 |
|
$this->smart = false; |
| 1053 |
|
} |
| 1054 |
|
} |
| 1055 |
|
|
|
@@ 1889-1899 (lines=11) @@
|
| 1886 |
|
public $icon = '\f220'; |
| 1887 |
|
private $share_type = 'default'; |
| 1888 |
|
|
| 1889 |
|
public function __construct( $id, array $settings ) { |
| 1890 |
|
parent::__construct( $id, $settings ); |
| 1891 |
|
|
| 1892 |
|
if ( isset( $settings['share_type'] ) ) { |
| 1893 |
|
$this->share_type = $settings['share_type']; |
| 1894 |
|
} |
| 1895 |
|
|
| 1896 |
|
if ( 'official' == $this->button_style ) { |
| 1897 |
|
$this->smart = true; |
| 1898 |
|
} else { |
| 1899 |
|
$this->smart = false; |
| 1900 |
|
} |
| 1901 |
|
|
| 1902 |
|
} |