@@ 872-882 (lines=11) @@ | ||
869 | public $genericon = '\f204'; |
|
870 | private $share_type = 'default'; |
|
871 | ||
872 | public function __construct( $id, array $settings ) { |
|
873 | parent::__construct( $id, $settings ); |
|
874 | ||
875 | if ( isset( $settings['share_type'] ) ) { |
|
876 | $this->share_type = $settings['share_type']; |
|
877 | } |
|
878 | ||
879 | if ( 'official' == $this->button_style ) { |
|
880 | $this->smart = true; |
|
881 | } else { |
|
882 | $this->smart = false; |
|
883 | } |
|
884 | } |
|
885 | ||
@@ 1712-1722 (lines=11) @@ | ||
1709 | public $genericon = '\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 |