| @@ 843-856 (lines=14) @@ | ||
| 840 | * |
|
| 841 | * @return html |
|
| 842 | */ |
|
| 843 | static function get_portfolio_thumbnail_link( $post_id ) { |
|
| 844 | if ( has_post_thumbnail( $post_id ) ) { |
|
| 845 | /** |
|
| 846 | * Change the Portfolio thumbnail size. |
|
| 847 | * |
|
| 848 | * @module custom-content-types |
|
| 849 | * |
|
| 850 | * @since 3.4.0 |
|
| 851 | * |
|
| 852 | * @param string|array $var Either a registered size keyword or size array. |
|
| 853 | */ |
|
| 854 | 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>'; |
|
| 855 | } |
|
| 856 | } |
|
| 857 | } |
|
| 858 | ||
| 859 | add_action( 'init', array( 'Jetpack_Portfolio', 'init' ) ); |
|
| @@ 714-727 (lines=14) @@ | ||
| 711 | * |
|
| 712 | * @return html |
|
| 713 | */ |
|
| 714 | static function get_testimonial_thumbnail_link( $post_id ) { |
|
| 715 | if ( has_post_thumbnail( $post_id ) ) { |
|
| 716 | /** |
|
| 717 | * Change the thumbnail size for the Testimonial CPT. |
|
| 718 | * |
|
| 719 | * @module custom-content-types |
|
| 720 | * |
|
| 721 | * @since 3.4.0 |
|
| 722 | * |
|
| 723 | * @param string|array $var Either a registered size keyword or size array. |
|
| 724 | */ |
|
| 725 | 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>'; |
|
| 726 | } |
|
| 727 | } |
|
| 728 | } |
|
| 729 | ||
| 730 | function jetpack_testimonial_custom_control_classes() { |
|