PHP Classes

File: parts/banner.php

Recommend this page to a friend!
  Classes of Victor Andeloci   Project P Wordpress Podcast Theme   parts/banner.php   Download  
File: parts/banner.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Project P Wordpress Podcast Theme
Publish pages for a podcast in a WordPress site
Author: By
Last change:
Date: 11 months ago
Size: 499 bytes
 

Contents

Class file image Download
<?php
  $banner
= get_page_by_path('banner', OBJECT, 'home');
  if (
$banner) :
?>

    <section class="banner-container">
      <div class="cover" style="background-image: url(<?= get_the_post_thumbnail_url($banner->ID) ?>);">
          <h1 class="flick"><?= $banner->post_title ?></h1>
          <p class="flick"><?= get_post_meta($banner->ID, 'label', true) ?></p>
      </div>
      <?php get_template_part('elements/links'); ?>
<?= $banner->post_content ?>
</section>

<?php endif; ?>