@@ 918-935 (lines=18) @@ | ||
915 | return $display; |
|
916 | } |
|
917 | ||
918 | public function process_request( $post, array $post_data ) { |
|
919 | ||
920 | $post_link = $this->get_share_url( $post->ID ); |
|
921 | ||
922 | // Using the same URL as the official button, which is *not* LinkedIn's documented sharing link |
|
923 | // https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false |
|
924 | $linkedin_url = add_query_arg( array( |
|
925 | 'url' => rawurlencode( $post_link ), |
|
926 | ), 'https://www.linkedin.com/cws/share?token=&isFramed=false' ); |
|
927 | ||
928 | // Record stats |
|
929 | parent::process_request( $post, $post_data ); |
|
930 | ||
931 | // Redirect to LinkedIn |
|
932 | wp_redirect( $linkedin_url ); |
|
933 | die(); |
|
934 | } |
|
935 | ||
936 | public function display_footer() { |
|
937 | if ( ! $this->smart ) { |
|
938 | $this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
@@ 1752-1765 (lines=14) @@ | ||
1749 | $this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Click to share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID ); |
|
1750 | } |
|
1751 | ||
1752 | public function process_request( $post, array $post_data ) { |
|
1753 | $skype_url = sprintf( |
|
1754 | 'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack', |
|
1755 | rawurlencode( $this->get_share_url( $post->ID ) ), |
|
1756 | 'en-US' |
|
1757 | ); |
|
1758 | ||
1759 | // Record stats |
|
1760 | parent::process_request( $post, $post_data ); |
|
1761 | ||
1762 | // Redirect to Skype |
|
1763 | wp_redirect( $skype_url ); |
|
1764 | die(); |
|
1765 | } |
|
1766 | ||
1767 | public function display_footer() { |
|
1768 | if ( $this->smart ) : |