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