@@ 816-818 (lines=3) @@ | ||
813 | if ( $this->smart ) { |
|
814 | $share_url = $this->get_share_url( $post->ID ); |
|
815 | $display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) ); |
|
816 | } else { |
|
817 | $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 ); |
|
818 | } |
|
819 | ||
820 | /** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
|
821 | if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |
|
@@ 1524-1526 (lines=3) @@ | ||
1521 | esc_url( $this->get_external_url( $post ) ), |
|
1522 | esc_attr( $this->get_widget_type() ) |
|
1523 | ); |
|
1524 | } else { |
|
1525 | $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 ); |
|
1526 | } |
|
1527 | ||
1528 | /** This filter is already documented in modules/sharedaddy/sharing-sources.php */ |
|
1529 | if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) { |
|
@@ 1126-1128 (lines=3) @@ | ||
1123 | if ( $this->smart ) { |
|
1124 | $share_url = $this->get_share_url( $post->ID ); |
|
1125 | return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>'; |
|
1126 | } else { |
|
1127 | 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 ); |
|
1128 | } |
|
1129 | } |
|
1130 | ||
1131 | public function get_state() { |