-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-fullwidth.php
More file actions
34 lines (34 loc) · 1.2 KB
/
page-fullwidth.php
File metadata and controls
34 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
Template Name: Full Width
*/
get_header();
?>
<div class="row">
<div class="span1"></div>
<div class="span10">
<?php
if ( get_post_format() == 'video' ){
echo '<div class="video">' . wp_oembed_get( get_post_meta( get_the_ID(), 'cpt_post_video', true ) ) . '</div>';
} elseif ( get_post_format() == 'audio' ){
echo '<div class="soundcloud">' . wp_oembed_get( get_post_meta( get_the_ID(), 'cpt_post_soundcloud', true ) ) . '</div>';
} elseif ( get_post_format() == 'quote' ){
echo '<blockquote class="quote">'.get_post_meta( get_the_ID(), 'cpt_post_quote', true ) .'</blockquote>';
} elseif ( get_post_format() == false ){ ?>
<?php if (has_post_thumbnail()) { ?>
<div class="featured-img-full"><?php the_post_thumbnail('full'); ?></div>
<?php } ?>
<?php } ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" class="page-content post-content-shadow <?php post_class(); ?>">
<h1 class="title"><?php the_title(); ?></h1>
<div class="page-body">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</div>
<div class="span1"></div>
</div>
<div style="fix-alignment"></div>
<?php get_footer(); ?>