@@ 965-971 (lines=7) @@ | ||
962 | * |
|
963 | * @param \WP_Post $post The current post being viewed. |
|
964 | */ |
|
965 | public function get_amp_display( $post ) { |
|
966 | $attrs = array( |
|
967 | 'data-share-endpoint' => esc_url_raw( 'https://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ) ), |
|
968 | ); |
|
969 | ||
970 | return $this->build_amp_markup( $attrs ); |
|
971 | } |
|
972 | ||
973 | public function process_request( $post, array $post_data ) { |
|
974 | $reddit_url = $this->http() . '://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ); |
|
@@ 1852-1858 (lines=7) @@ | ||
1849 | * |
|
1850 | * @param \WP_Post $post The current post being viewed. |
|
1851 | */ |
|
1852 | public function get_amp_display( $post ) { |
|
1853 | $attrs = array( |
|
1854 | 'data-share-endpoint' => esc_url_raw( 'https://getpocket.com/save/?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ) ), |
|
1855 | ); |
|
1856 | ||
1857 | return $this->build_amp_markup( $attrs ); |
|
1858 | } |
|
1859 | ||
1860 | function display_footer() { |
|
1861 | if ( $this->smart ) : |
|
@@ 1920-1926 (lines=7) @@ | ||
1917 | * |
|
1918 | * @param \WP_Post $post The current post being viewed. |
|
1919 | */ |
|
1920 | public function get_amp_display( $post ) { |
|
1921 | $attrs = array( |
|
1922 | 'data-share-endpoint' => esc_url_raw( 'https://telegram.me/share/url?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&text=' . rawurlencode( $this->get_share_title( $post->ID ) ) ), |
|
1923 | ); |
|
1924 | ||
1925 | return $this->build_amp_markup( $attrs ); |
|
1926 | } |
|
1927 | ||
1928 | function display_footer() { |
|
1929 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |