@@ -40,6 +40,9 @@ discard block |
||
| 40 | 40 | return $this->id; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @return string |
|
| 45 | + */ |
|
| 43 | 46 | public function get_share_url( $post_id ) { |
| 44 | 47 | /** |
| 45 | 48 | * Filter the sharing permalink. |
@@ -77,6 +80,9 @@ discard block |
||
| 77 | 80 | return false; |
| 78 | 81 | } |
| 79 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $url |
|
| 85 | + */ |
|
| 80 | 86 | public function get_link( $url, $text, $title, $query = '', $id = false ) { |
| 81 | 87 | $args = func_get_args(); |
| 82 | 88 | $klasses = array( 'share-'.$this->get_class(), 'sd-button' ); |
@@ -311,6 +317,9 @@ discard block |
||
| 311 | 317 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
| 312 | 318 | } |
| 313 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $name |
|
| 322 | + */ |
|
| 314 | 323 | public function js_dialog( $name, $params = array() ) { |
| 315 | 324 | if ( true !== $this->open_link_in_new ) |
| 316 | 325 | return; |
@@ -1393,6 +1402,9 @@ discard block |
||
| 1393 | 1402 | return __( 'Pinterest', 'jetpack' ); |
| 1394 | 1403 | } |
| 1395 | 1404 | |
| 1405 | + /** |
|
| 1406 | + * @return string |
|
| 1407 | + */ |
|
| 1396 | 1408 | public function get_image( $post ) { |
| 1397 | 1409 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
| 1398 | 1410 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |