|
@@ 752-753 (lines=2) @@
|
| 749 |
|
public function get_display( $post ) { |
| 750 |
|
if ( $this->smart ) |
| 751 |
|
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>'; |
| 752 |
|
else |
| 753 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' ); |
| 754 |
|
} |
| 755 |
|
|
| 756 |
|
public function process_request( $post, array $post_data ) { |
|
@@ 1370-1372 (lines=3) @@
|
| 1367 |
|
$target = '_blank'; |
| 1368 |
|
|
| 1369 |
|
return '<a target="' . $target . '" href="http://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(\'//platform.tumblr.com/v1/share_2.png\') top left no-repeat transparent;">' . __( 'Share on Tumblr', 'jetpack' ) . '</a>'; |
| 1370 |
|
} else { |
| 1371 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Tumblr', 'share to', 'jetpack' ), __( 'Click to share on Tumblr', 'jetpack' ), 'share=tumblr' ); |
| 1372 |
|
} |
| 1373 |
|
} |
| 1374 |
|
|
| 1375 |
|
public function process_request( $post, array $post_data ) { |
|
@@ 1579-1581 (lines=3) @@
|
| 1576 |
|
$button .= '</div>'; |
| 1577 |
|
|
| 1578 |
|
return $button; |
| 1579 |
|
} else { |
| 1580 |
|
return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pocket', 'share to', 'jetpack' ), __( 'Click to share on Pocket', 'jetpack' ), 'share=pocket' ); |
| 1581 |
|
} |
| 1582 |
|
|
| 1583 |
|
} |
| 1584 |
|
|