@@ 1092-1102 (lines=11) @@ | ||
1089 | public $icon = '\f204'; |
|
1090 | private $share_type = 'default'; |
|
1091 | ||
1092 | public function __construct( $id, array $settings ) { |
|
1093 | parent::__construct( $id, $settings ); |
|
1094 | ||
1095 | if ( isset( $settings['share_type'] ) ) { |
|
1096 | $this->share_type = $settings['share_type']; |
|
1097 | } |
|
1098 | ||
1099 | if ( 'official' == $this->button_style ) { |
|
1100 | $this->smart = true; |
|
1101 | } else { |
|
1102 | $this->smart = false; |
|
1103 | } |
|
1104 | } |
|
1105 | ||
@@ 1983-1993 (lines=11) @@ | ||
1980 | public $icon = '\f220'; |
|
1981 | private $share_type = 'default'; |
|
1982 | ||
1983 | public function __construct( $id, array $settings ) { |
|
1984 | parent::__construct( $id, $settings ); |
|
1985 | ||
1986 | if ( isset( $settings['share_type'] ) ) { |
|
1987 | $this->share_type = $settings['share_type']; |
|
1988 | } |
|
1989 | ||
1990 | if ( 'official' == $this->button_style ) { |
|
1991 | $this->smart = true; |
|
1992 | } else { |
|
1993 | $this->smart = false; |
|
1994 | } |
|
1995 | ||
1996 | } |