@@ 955-956 (lines=2) @@ | ||
952 | public function get_display( $post ) { |
|
953 | if ( $this->smart ) { |
|
954 | 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>'; |
|
955 | } else { |
|
956 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Reddit', 'share to', 'jetpack' ), __( 'Click to share on Reddit', 'jetpack' ), 'share=reddit' ); |
|
957 | } |
|
958 | } |
|
959 | ||
@@ 1597-1599 (lines=3) @@ | ||
1594 | __( 'Share on Tumblr', 'jetpack' ), |
|
1595 | $posttype |
|
1596 | ); |
|
1597 | } else { |
|
1598 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Tumblr', 'share to', 'jetpack' ), __( 'Click to share on Tumblr', 'jetpack' ), 'share=tumblr' ); |
|
1599 | } |
|
1600 | } |
|
1601 | ||
1602 | public function process_request( $post, array $post_data ) { |
|
@@ 1841-1843 (lines=3) @@ | ||
1838 | $button .= '</div>'; |
|
1839 | ||
1840 | return $button; |
|
1841 | } else { |
|
1842 | return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pocket', 'share to', 'jetpack' ), __( 'Click to share on Pocket', 'jetpack' ), 'share=pocket' ); |
|
1843 | } |
|
1844 | ||
1845 | } |
|
1846 |