|
@@ 843-860 (lines=18) @@
|
| 840 |
|
return $display; |
| 841 |
|
} |
| 842 |
|
|
| 843 |
|
public function process_request( $post, array $post_data ) { |
| 844 |
|
|
| 845 |
|
$post_link = $this->get_share_url( $post->ID ); |
| 846 |
|
|
| 847 |
|
// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link |
| 848 |
|
// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false |
| 849 |
|
$linkedin_url = add_query_arg( array( |
| 850 |
|
'url' => rawurlencode( $post_link ), |
| 851 |
|
), 'https://www.linkedin.com/cws/share?token=&isFramed=false' ); |
| 852 |
|
|
| 853 |
|
// Record stats |
| 854 |
|
parent::process_request( $post, $post_data ); |
| 855 |
|
|
| 856 |
|
// Redirect to LinkedIn |
| 857 |
|
wp_redirect( $linkedin_url ); |
| 858 |
|
die(); |
| 859 |
|
} |
| 860 |
|
|
| 861 |
|
public function display_footer() { |
| 862 |
|
if ( ! $this->smart ) { |
| 863 |
|
$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
@@ 1761-1774 (lines=14) @@
|
| 1758 |
|
$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID ); |
| 1759 |
|
} |
| 1760 |
|
|
| 1761 |
|
public function process_request( $post, array $post_data ) { |
| 1762 |
|
$skype_url = sprintf( |
| 1763 |
|
'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack', |
| 1764 |
|
rawurlencode( $this->get_share_url( $post->ID ) ), |
| 1765 |
|
'en-US' |
| 1766 |
|
); |
| 1767 |
|
|
| 1768 |
|
// Record stats |
| 1769 |
|
parent::process_request( $post, $post_data ); |
| 1770 |
|
|
| 1771 |
|
// Redirect to Skype |
| 1772 |
|
wp_redirect( $skype_url ); |
| 1773 |
|
die(); |
| 1774 |
|
} |
| 1775 |
|
|
| 1776 |
|
public function display_footer() { |
| 1777 |
|
if ( $this->smart ) : |