This repository has been archived on 2021-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
biofriction-web/biofriction-theme/page-templates/partner.php

36 lines
982 B
PHP
Raw Permalink Normal View History

2021-02-18 15:27:46 +01:00
<?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();