|
@@ 862-863 (lines=2) @@
|
| 859 |
|
public function get_display( $post ) { |
| 860 |
|
if ( $this->smart ) { |
| 861 |
|
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>'; |
| 862 |
|
} else { |
| 863 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' ); |
| 864 |
|
} |
| 865 |
|
} |
| 866 |
|
|
|
@@ 1420-1422 (lines=3) @@
|
| 1417 |
|
__( 'Share on Tumblr', 'jetpack' ), |
| 1418 |
|
$posttype |
| 1419 |
|
); |
| 1420 |
|
} else { |
| 1421 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Tumblr', 'share to', 'jetpack' ), __( 'Click to share on Tumblr', 'jetpack' ), 'share=tumblr' ); |
| 1422 |
|
} |
| 1423 |
|
} |
| 1424 |
|
|
| 1425 |
|
public function process_request( $post, array $post_data ) { |
|
@@ 1633-1635 (lines=3) @@
|
| 1630 |
|
$button .= '</div>'; |
| 1631 |
|
|
| 1632 |
|
return $button; |
| 1633 |
|
} else { |
| 1634 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pocket', 'share to', 'jetpack' ), __( 'Click to share on Pocket', 'jetpack' ), 'share=pocket' ); |
| 1635 |
|
} |
| 1636 |
|
|
| 1637 |
|
} |
| 1638 |
|
|