@@ 849-859 (lines=11) @@ | ||
846 | public $genericon = '\f204'; |
|
847 | private $share_type = 'default'; |
|
848 | ||
849 | public function __construct( $id, array $settings ) { |
|
850 | parent::__construct( $id, $settings ); |
|
851 | ||
852 | if ( isset( $settings['share_type'] ) ) |
|
853 | $this->share_type = $settings['share_type']; |
|
854 | ||
855 | if ( 'official' == $this->button_style ) |
|
856 | $this->smart = true; |
|
857 | else |
|
858 | $this->smart = false; |
|
859 | } |
|
860 | ||
861 | public function get_name() { |
|
862 | return __( 'Facebook', 'jetpack' ); |
|
@@ 1653-1663 (lines=11) @@ | ||
1650 | public $genericon = '\f220'; |
|
1651 | private $share_type = 'default'; |
|
1652 | ||
1653 | public function __construct( $id, array $settings ) { |
|
1654 | parent::__construct( $id, $settings ); |
|
1655 | ||
1656 | if ( isset( $settings['share_type'] ) ) { |
|
1657 | $this->share_type = $settings['share_type']; |
|
1658 | } |
|
1659 | ||
1660 | if ( 'official' == $this->button_style ) { |
|
1661 | $this->smart = true; |
|
1662 | } else { |
|
1663 | $this->smart = false; |
|
1664 | } |
|
1665 | } |
|
1666 |