|
@@ 989-1006 (lines=18) @@
|
| 986 |
|
return $display; |
| 987 |
|
} |
| 988 |
|
|
| 989 |
|
public function process_request( $post, array $post_data ) { |
| 990 |
|
|
| 991 |
|
$post_link = $this->get_share_url( $post->ID ); |
| 992 |
|
|
| 993 |
|
// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link |
| 994 |
|
// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false |
| 995 |
|
$linkedin_url = add_query_arg( array( |
| 996 |
|
'url' => rawurlencode( $post_link ), |
| 997 |
|
), 'https://www.linkedin.com/cws/share?token=&isFramed=false' ); |
| 998 |
|
|
| 999 |
|
// Record stats |
| 1000 |
|
parent::process_request( $post, $post_data ); |
| 1001 |
|
|
| 1002 |
|
// Redirect to LinkedIn |
| 1003 |
|
wp_redirect( $linkedin_url ); |
| 1004 |
|
die(); |
| 1005 |
|
} |
| 1006 |
|
|
| 1007 |
|
public function display_footer() { |
| 1008 |
|
if ( ! $this->smart ) { |
| 1009 |
|
$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
@@ 1932-1945 (lines=14) @@
|
| 1929 |
|
return $this->build_amp_markup( $attrs ); |
| 1930 |
|
} |
| 1931 |
|
|
| 1932 |
|
public function process_request( $post, array $post_data ) { |
| 1933 |
|
$skype_url = sprintf( |
| 1934 |
|
'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack', |
| 1935 |
|
rawurlencode( $this->get_share_url( $post->ID ) ), |
| 1936 |
|
'en-US' |
| 1937 |
|
); |
| 1938 |
|
|
| 1939 |
|
// Record stats |
| 1940 |
|
parent::process_request( $post, $post_data ); |
| 1941 |
|
|
| 1942 |
|
// Redirect to Skype |
| 1943 |
|
wp_redirect( $skype_url ); |
| 1944 |
|
die(); |
| 1945 |
|
} |
| 1946 |
|
|
| 1947 |
|
public function display_footer() { |
| 1948 |
|
if ( $this->smart ) : |