@@ 685-698 (lines=14) @@ | ||
682 | * |
|
683 | * @return html |
|
684 | */ |
|
685 | static function get_testimonial_thumbnail_link( $post_id ) { |
|
686 | if ( has_post_thumbnail( $post_id ) ) { |
|
687 | /** |
|
688 | * Change the thumbnail size for the Testimonial CPT. |
|
689 | * |
|
690 | * @module custom-content-types |
|
691 | * |
|
692 | * @since 3.4.0 |
|
693 | * |
|
694 | * @param string|array $var Either a registered size keyword or size array. |
|
695 | */ |
|
696 | 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>'; |
|
697 | } |
|
698 | } |
|
699 | } |
|
700 | ||
701 | function jetpack_testimonial_custom_control_classes() { |
@@ 747-760 (lines=14) @@ | ||
744 | * |
|
745 | * @return html |
|
746 | */ |
|
747 | static function get_portfolio_thumbnail_link( $post_id ) { |
|
748 | if ( has_post_thumbnail( $post_id ) ) { |
|
749 | /** |
|
750 | * Change the Portfolio thumbnail size. |
|
751 | * |
|
752 | * @module custom-content-types |
|
753 | * |
|
754 | * @since 3.4.0 |
|
755 | * |
|
756 | * @param string|array $var Either a registered size keyword or size array. |
|
757 | */ |
|
758 | 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>'; |
|
759 | } |
|
760 | } |
|
761 | } |
|
762 | ||
763 | add_action( 'init', array( 'Jetpack_Portfolio', 'init' ) ); |