|
@@ 1538-1540 (lines=3) @@
|
| 1535 |
|
esc_url( $this->get_external_url( $post ) ), |
| 1536 |
|
esc_attr( $this->get_widget_type() ) |
| 1537 |
|
); |
| 1538 |
|
} else { |
| 1539 |
|
$display = $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pinterest', 'share to', 'jetpack' ), __( 'Click to share on Pinterest', 'jetpack' ), 'share=pinterest', 'sharing-pinterest-' . $post->ID ); |
| 1540 |
|
} |
| 1541 |
|
|
| 1542 |
|
/** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
| 1543 |
|
if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |
|
@@ 830-832 (lines=3) @@
|
| 827 |
|
if ( $this->smart ) { |
| 828 |
|
$share_url = $this->get_share_url( $post->ID ); |
| 829 |
|
$display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) ); |
| 830 |
|
} else { |
| 831 |
|
$display = $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'LinkedIn', 'share to', 'jetpack' ), __( 'Click to share on LinkedIn', 'jetpack' ), 'share=linkedin', 'sharing-linkedin-' . $post->ID ); |
| 832 |
|
} |
| 833 |
|
|
| 834 |
|
/** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
| 835 |
|
if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |
|
@@ 1140-1142 (lines=3) @@
|
| 1137 |
|
if ( $this->smart ) { |
| 1138 |
|
$share_url = $this->get_share_url( $post->ID ); |
| 1139 |
|
return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>'; |
| 1140 |
|
} else { |
| 1141 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Google', 'share to', 'jetpack' ), __( 'Click to share on Google+', 'jetpack' ), 'share=google-plus-1', 'sharing-google-' . $post->ID ); |
| 1142 |
|
} |
| 1143 |
|
} |
| 1144 |
|
|
| 1145 |
|
public function get_state() { |