biofriction-wp-theme/biofriction-theme/page-templates/partner.php

36 lines
982 B
PHP

<?php
/*
*/
/**
* Template Name: Partner
* The template for displaying partners
*
* @package Biofriction
* @since Biofriction 1.0.0
*/
get_header(); ?>
<div class="main-container">
<div class="main-grid">
<?php //get_template_part( 'template-parts/featured-image' ); ?>
<?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( '' ); ?>, small]">
</header>
<?php else :?>
<header class="featured-hero" role="banner" style="background-image: url('<?php echo catch_post_first_image();?> ');">
</header>
<?php endif; ?>
<main class="main-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'page' ); ?>
<?php endwhile; ?>
</main>
</div>
</div>
<?php get_footer();