Changeset 40904
- Timestamp:
- 06/15/2017 10:19:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php
r38868 r40904 15 15 $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' ); 16 16 17 $post_thumbnail_id = get_post_thumbnail_id( $post->ID );18 19 $thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );20 21 17 // Calculate aspect ratio: h / w * 100%. 22 $ratio = $thumbnail _attributes[2] / $thumbnail_attributes[1] * 100;18 $ratio = $thumbnail[2] / $thumbnail[1] * 100; 23 19 ?> 24 20
Note: See TracChangeset
for help on using the changeset viewer.