Created
August 27, 2016 10:58
-
-
Save DustinHartzler/904a38b66a13c57bde422a757c9accf9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div role="main" class="main"> | |
<section class="page-top"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<ul class="breadcrumb"> | |
<li><a href="#">Home</a></li> | |
<li class="active"><?php the_title();?></li> | |
</ul> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-12"> | |
<h2><i class='fa fa-graduation-cap'></i> Webinar Replay</h2> | |
</div> | |
</div> | |
</div> | |
</section> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<?php if (have_posts()) : | |
while (have_posts()) : the_post(); ?> | |
<div class="blog-posts"> | |
<article class="post post-large"> | |
<div class="post-date"> | |
<span class="day"><?php echo get_the_time('d')?></span> | |
<span class="month"><?php echo get_the_time('M')?></span> | |
</div> | |
<div class="post-content"> | |
<h1><?php the_title(); ?></h1> | |
<div class="post-meta"> | |
<span><i class="fa fa-user"></i> By <a href="#"><?php the_author();?></a> </span> | |
<span><i class="fa fa-tag"></i> <?php the_category(', '); ?> </span> | |
<span><i class="fa fa-comments"></i> <?php comments_number( 'no responses', 'one response', '% responses' ); ?><span> | |
</div> | |
<p><?php the_content();?></p> | |
<?php $webinar_video = get_post_meta($post->ID, 'webinar_video', true); | |
$webinar_audio = get_post_meta($post->ID, 'webinar_audio', true); | |
$webinar_pdf = get_post_meta($post->ID, 'webinar_pdf', true); | |
if( !empty( $webinar_video ) ) { | |
echo '<div class="webinar-assets"><h2 class="dashicons dashicons-download"></h2><h2>Download Webinar Assets</h2>'; | |
echo '<span class="dashicons dashicons-media-video"></span><a href=" ' . $webinar_video .'"> Download Video File</a>'; | |
} | |
if( !empty( $webinar_audio ) ) { | |
echo '<span class="dashicons dashicons-media-audio"></span><a href=" ' . $webinar_audio .'"> Download Video File</a>'; | |
} | |
if( !empty( $webinar_pdf ) ) { | |
echo '<span class="dashicons dashicons-media-interactive"></span><a href=" ' . $webinar_pdf .'"> Download Video File</a>'; | |
} | |
echo '</div>' | |
?> | |
<nav class="nav-single"> | |
<span class="nav-previous"> | |
<?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link' ) . '</span> %title' ); ?> | |
</span> | |
<span class="nav-next" style="float: right"> | |
<?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link' ) . '</span>' ); ?> | |
</span> | |
</nav><!-- .nav-single --> | |
<?php comments_template('', true); ?> | |
<div class="clear"></div> | |
<div class="post-block post-leave-comment"> | |
<?php comment_form();?> | |
</div> | |
</div> | |
</article> | |
</div> | |
<?php endwhile; | |
else : | |
echo '<p>'.__('There is nothing to display.',THEMENAME).'</p>'; | |
endif; | |
?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment