@@ 1031-1041 (lines=11) @@ | ||
1028 | public $icon = '\f204'; |
|
1029 | private $share_type = 'default'; |
|
1030 | ||
1031 | public function __construct( $id, array $settings ) { |
|
1032 | parent::__construct( $id, $settings ); |
|
1033 | ||
1034 | if ( isset( $settings['share_type'] ) ) { |
|
1035 | $this->share_type = $settings['share_type']; |
|
1036 | } |
|
1037 | ||
1038 | if ( 'official' == $this->button_style ) { |
|
1039 | $this->smart = true; |
|
1040 | } else { |
|
1041 | $this->smart = false; |
|
1042 | } |
|
1043 | } |
|
1044 | ||
@@ 1878-1888 (lines=11) @@ | ||
1875 | public $icon = '\f220'; |
|
1876 | private $share_type = 'default'; |
|
1877 | ||
1878 | public function __construct( $id, array $settings ) { |
|
1879 | parent::__construct( $id, $settings ); |
|
1880 | ||
1881 | if ( isset( $settings['share_type'] ) ) { |
|
1882 | $this->share_type = $settings['share_type']; |
|
1883 | } |
|
1884 | ||
1885 | if ( 'official' == $this->button_style ) { |
|
1886 | $this->smart = true; |
|
1887 | } else { |
|
1888 | $this->smart = false; |
|
1889 | } |
|
1890 | ||
1891 | } |