@@ 930-936 (lines=7) @@ | ||
927 | * |
|
928 | * @param \WP_Post $post The current post being viewed. |
|
929 | */ |
|
930 | public function get_amp_display( $post ) { |
|
931 | $attrs = array( |
|
932 | '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 ) ) ), |
|
933 | ); |
|
934 | ||
935 | return $this->build_amp_markup( $attrs ); |
|
936 | } |
|
937 | ||
938 | public function process_request( $post, array $post_data ) { |
|
939 | $reddit_url = $this->http() . '://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ); |
|
@@ 1760-1766 (lines=7) @@ | ||
1757 | * |
|
1758 | * @param \WP_Post $post The current post being viewed. |
|
1759 | */ |
|
1760 | public function get_amp_display( $post ) { |
|
1761 | $attrs = array( |
|
1762 | '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 ) ) ), |
|
1763 | ); |
|
1764 | ||
1765 | return $this->build_amp_markup( $attrs ); |
|
1766 | } |
|
1767 | ||
1768 | function display_footer() { |
|
1769 | if ( $this->smart ) : |
|
@@ 1815-1821 (lines=7) @@ | ||
1812 | * |
|
1813 | * @param \WP_Post $post The current post being viewed. |
|
1814 | */ |
|
1815 | public function get_amp_display( $post ) { |
|
1816 | $attrs = array( |
|
1817 | '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 ) ) ), |
|
1818 | ); |
|
1819 | ||
1820 | return $this->build_amp_markup( $attrs ); |
|
1821 | } |
|
1822 | ||
1823 | function display_footer() { |
|
1824 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |