@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | return $this->id; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 45 | 48 | public function get_share_url( $post_id ) { |
| 46 | 49 | /** |
| 47 | 50 | * Filter the sharing permalink. |
@@ -79,6 +82,9 @@ discard block |
||
| 79 | 82 | return false; |
| 80 | 83 | } |
| 81 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $url |
|
| 87 | + */ |
|
| 82 | 88 | public function get_link( $url, $text, $title, $query = '', $id = false ) { |
| 83 | 89 | $args = func_get_args(); |
| 84 | 90 | $klasses = array( 'share-' . $this->get_class(), 'sd-button' ); |
@@ -324,6 +330,9 @@ discard block |
||
| 324 | 330 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
| 325 | 331 | } |
| 326 | 332 | |
| 333 | + /** |
|
| 334 | + * @param string $name |
|
| 335 | + */ |
|
| 327 | 336 | public function js_dialog( $name, $params = array() ) { |
| 328 | 337 | if ( true !== $this->open_link_in_new ) { |
| 329 | 338 | return; |
@@ -1450,6 +1459,9 @@ discard block |
||
| 1450 | 1459 | return __( 'Pinterest', 'jetpack' ); |
| 1451 | 1460 | } |
| 1452 | 1461 | |
| 1462 | + /** |
|
| 1463 | + * @return string |
|
| 1464 | + */ |
|
| 1453 | 1465 | public function get_image( $post ) { |
| 1454 | 1466 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
| 1455 | 1467 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |