|
@@ 774-775 (lines=2) @@
|
| 771 |
|
public function get_display( $post ) { |
| 772 |
|
if ( $this->smart ) { |
| 773 |
|
return '<div class="reddit_button"><iframe src="' . $this->http() . '://www.reddit.com/static/button/button1.html?newwindow=true&width=120&url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ) . '" height="22" width="120" scrolling="no" frameborder="0"></iframe></div>'; |
| 774 |
|
} else { |
| 775 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' ); |
| 776 |
|
} |
| 777 |
|
} |
| 778 |
|
|
|
@@ 1425-1427 (lines=3) @@
|
| 1422 |
|
} |
| 1423 |
|
|
| 1424 |
|
return '<a target="' . $target . '" href="https://www.tumblr.com/share/link/?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&name=' . rawurlencode( $this->get_share_title( $post->ID ) ) . '" title="' . __( 'Share on Tumblr', 'jetpack' ) . '" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:62px; height:20px; background:url(\'https://platform.tumblr.com/v1/share_2.png\') top left no-repeat transparent;">' . __( 'Share on Tumblr', 'jetpack' ) . '</a>'; |
| 1425 |
|
} else { |
| 1426 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Tumblr', 'share to', 'jetpack' ), __( 'Click to share on Tumblr', 'jetpack' ), 'share=tumblr' ); |
| 1427 |
|
} |
| 1428 |
|
} |
| 1429 |
|
|
| 1430 |
|
public function process_request( $post, array $post_data ) { |
|
@@ 1638-1640 (lines=3) @@
|
| 1635 |
|
$button .= '</div>'; |
| 1636 |
|
|
| 1637 |
|
return $button; |
| 1638 |
|
} else { |
| 1639 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pocket', 'share to', 'jetpack' ), __( 'Click to share on Pocket', 'jetpack' ), 'share=pocket' ); |
| 1640 |
|
} |
| 1641 |
|
|
| 1642 |
|
} |
| 1643 |
|
|