|
@@ 794-796 (lines=3) @@
|
| 791 |
|
if ( $this->smart ) { |
| 792 |
|
$share_url = $this->get_share_url( $post->ID ); |
| 793 |
|
$display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) ); |
| 794 |
|
} else { |
| 795 |
|
$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 ); |
| 796 |
|
} |
| 797 |
|
|
| 798 |
|
/** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
| 799 |
|
if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |
|
@@ 1087-1089 (lines=3) @@
|
| 1084 |
|
if ( $this->smart ) { |
| 1085 |
|
$share_url = $this->get_share_url( $post->ID ); |
| 1086 |
|
return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>'; |
| 1087 |
|
} else { |
| 1088 |
|
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 ); |
| 1089 |
|
} |
| 1090 |
|
} |
| 1091 |
|
|
| 1092 |
|
public function get_state() { |
|
@@ 1469-1471 (lines=3) @@
|
| 1466 |
|
esc_url( $this->get_external_url( $post ) ), |
| 1467 |
|
esc_attr( $this->get_widget_type() ) |
| 1468 |
|
); |
| 1469 |
|
} else { |
| 1470 |
|
$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 ); |
| 1471 |
|
} |
| 1472 |
|
|
| 1473 |
|
/** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
| 1474 |
|
if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |