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