|
@@ 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' ); |
|
@@ 1610-1620 (lines=11) @@
|
| 1607 |
|
public $genericon = '\f220'; |
| 1608 |
|
private $share_type = 'default'; |
| 1609 |
|
|
| 1610 |
|
public function __construct( $id, array $settings ) { |
| 1611 |
|
parent::__construct( $id, $settings ); |
| 1612 |
|
|
| 1613 |
|
if ( isset( $settings['share_type'] ) ) { |
| 1614 |
|
$this->share_type = $settings['share_type']; |
| 1615 |
|
} |
| 1616 |
|
|
| 1617 |
|
if ( 'official' == $this->button_style ) { |
| 1618 |
|
$this->smart = true; |
| 1619 |
|
} else { |
| 1620 |
|
$this->smart = false; |
| 1621 |
|
} |
| 1622 |
|
} |
| 1623 |
|
|