adding fresh FoundationPress theme from scratch
This commit is contained in:
parent
e5766ffeca
commit
3785add5fa
127 changed files with 29293 additions and 0 deletions
7
FoundationPress/template-parts/featured-image.php
Normal file
7
FoundationPress/template-parts/featured-image.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
// If a featured image is set, insert into layout and use Interchange
|
||||
// to select the optimal image size per named media query.
|
||||
if ( has_post_thumbnail( $post->ID ) ) : ?>
|
||||
<header class="featured-hero" role="banner" data-interchange="[<?php the_post_thumbnail_url( 'featured-small' ); ?>, small], [<?php the_post_thumbnail_url( 'featured-medium' ); ?>, medium], [<?php the_post_thumbnail_url( 'featured-large' ); ?>, large], [<?php the_post_thumbnail_url( 'featured-xlarge' ); ?>, xlarge]">
|
||||
</header>
|
||||
<?php endif;
|
Loading…
Add table
Add a link
Reference in a new issue