|
@@ 830-847 (lines=18) @@
|
| 827 |
|
return $display; |
| 828 |
|
} |
| 829 |
|
|
| 830 |
|
public function process_request( $post, array $post_data ) { |
| 831 |
|
|
| 832 |
|
$post_link = $this->get_share_url( $post->ID ); |
| 833 |
|
|
| 834 |
|
// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link |
| 835 |
|
// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false |
| 836 |
|
$linkedin_url = add_query_arg( array( |
| 837 |
|
'url' => rawurlencode( $post_link ), |
| 838 |
|
), 'https://www.linkedin.com/cws/share?token=&isFramed=false' ); |
| 839 |
|
|
| 840 |
|
// Record stats |
| 841 |
|
parent::process_request( $post, $post_data ); |
| 842 |
|
|
| 843 |
|
// Redirect to LinkedIn |
| 844 |
|
wp_redirect( $linkedin_url ); |
| 845 |
|
die(); |
| 846 |
|
} |
| 847 |
|
|
| 848 |
|
public function display_footer() { |
| 849 |
|
if ( ! $this->smart ) { |
| 850 |
|
$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
@@ 1748-1761 (lines=14) @@
|
| 1745 |
|
$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID ); |
| 1746 |
|
} |
| 1747 |
|
|
| 1748 |
|
public function process_request( $post, array $post_data ) { |
| 1749 |
|
$skype_url = sprintf( |
| 1750 |
|
'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack', |
| 1751 |
|
rawurlencode( $this->get_share_url( $post->ID ) ), |
| 1752 |
|
'en-US' |
| 1753 |
|
); |
| 1754 |
|
|
| 1755 |
|
// Record stats |
| 1756 |
|
parent::process_request( $post, $post_data ); |
| 1757 |
|
|
| 1758 |
|
// Redirect to Skype |
| 1759 |
|
wp_redirect( $skype_url ); |
| 1760 |
|
die(); |
| 1761 |
|
} |
| 1762 |
|
|
| 1763 |
|
public function display_footer() { |
| 1764 |
|
if ( $this->smart ) : |