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