| @@ 765-778 (lines=14) @@ | ||
| 762 | * |
|
| 763 | * @return html |
|
| 764 | */ |
|
| 765 | static function get_portfolio_thumbnail_link( $post_id ) { |
|
| 766 | if ( has_post_thumbnail( $post_id ) ) { |
|
| 767 | /** |
|
| 768 | * Change the Portfolio thumbnail size. |
|
| 769 | * |
|
| 770 | * @module custom-content-types |
|
| 771 | * |
|
| 772 | * @since 3.4.0 |
|
| 773 | * |
|
| 774 | * @param string|array $var Either a registered size keyword or size array. |
|
| 775 | */ |
|
| 776 | return '<a class="portfolio-featured-image" href="' . esc_url( get_permalink( $post_id ) ) . '">' . get_the_post_thumbnail( $post_id, apply_filters( 'jetpack_portfolio_thumbnail_size', 'large' ) ) . '</a>'; |
|
| 777 | } |
|
| 778 | } |
|
| 779 | } |
|
| 780 | ||
| 781 | add_action( 'init', array( 'Jetpack_Portfolio', 'init' ) ); |
|
| @@ 711-724 (lines=14) @@ | ||
| 708 | * |
|
| 709 | * @return html |
|
| 710 | */ |
|
| 711 | static function get_testimonial_thumbnail_link( $post_id ) { |
|
| 712 | if ( has_post_thumbnail( $post_id ) ) { |
|
| 713 | /** |
|
| 714 | * Change the thumbnail size for the Testimonial CPT. |
|
| 715 | * |
|
| 716 | * @module custom-content-types |
|
| 717 | * |
|
| 718 | * @since 3.4.0 |
|
| 719 | * |
|
| 720 | * @param string|array $var Either a registered size keyword or size array. |
|
| 721 | */ |
|
| 722 | return '<a class="testimonial-featured-image" href="' . esc_url( get_permalink( $post_id ) ) . '">' . get_the_post_thumbnail( $post_id, apply_filters( 'jetpack_testimonial_thumbnail_size', 'thumbnail' ) ) . '</a>'; |
|
| 723 | } |
|
| 724 | } |
|
| 725 | } |
|
| 726 | ||
| 727 | function jetpack_testimonial_custom_control_classes() { |
|