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