@@ 936-937 (lines=2) @@ | ||
933 | public function get_display( $post ) { |
|
934 | if ( $this->smart ) { |
|
935 | 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>'; |
|
936 | } else { |
|
937 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' ); |
|
938 | } |
|
939 | } |
|
940 | ||
@@ 1578-1580 (lines=3) @@ | ||
1575 | __( 'Share on Tumblr', 'jetpack' ), |
|
1576 | $posttype |
|
1577 | ); |
|
1578 | } else { |
|
1579 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Tumblr', 'share to', 'jetpack' ), __( 'Click to share on Tumblr', 'jetpack' ), 'share=tumblr' ); |
|
1580 | } |
|
1581 | } |
|
1582 | ||
1583 | public function process_request( $post, array $post_data ) { |
|
@@ 1822-1824 (lines=3) @@ | ||
1819 | $button .= '</div>'; |
|
1820 | ||
1821 | return $button; |
|
1822 | } else { |
|
1823 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pocket', 'share to', 'jetpack' ), __( 'Click to share on Pocket', 'jetpack' ), 'share=pocket' ); |
|
1824 | } |
|
1825 | ||
1826 | } |
|
1827 |