Last active
August 29, 2015 14:06
-
-
Save SeanChDavis/61553657a2c07261bdad to your computer and use it in GitHub Desktop.
Volatyl for EDD Override Single Download Template
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 | |
| /** | |
| * override single download template | |
| */ | |
| global $options; | |
| // Custom filter | |
| $single_tags_text = apply_filters('single_tags_text', __('Tags: ', 'volatyl')); | |
| get_header(); | |
| vol_html_before_content(); ?> | |
| <div id="main-content" class="full clearfix"> | |
| <div class="main clearfix"> | |
| <div id="content" class="site-content border-box clearfix"> | |
| <?php | |
| while (have_posts()) { the_post(); ?> | |
| <article id="post-<?php echo the_ID(); ?>" <?php post_class(); ?>> | |
| <header class="entry-header"> | |
| <?php the_title('<h1 class="entry-title">', '</h1>'); ?> | |
| </header> | |
| <?php | |
| // Download item Featured Image | |
| the_post_thumbnail('full', array( | |
| 'class' => 'featured-img download-img', | |
| 'alt' => the_title_attribute('echo=0') | |
| )); | |
| ?> | |
| <section class="entry-content"> | |
| <?php | |
| // display download content | |
| the_content(); | |
| // Show feed tags | |
| if (vol_single_tags_on()) { | |
| the_tags('<div class="entry-meta tags post-meta-footer">' . $single_tags_text, ', ', '<br /></div>'); | |
| } | |
| // Only show comments if option is turned on | |
| if (vol_download_comments_on()) { | |
| if (comments_open() || '0' != get_comments_number()) { | |
| comments_template('', true); | |
| } | |
| } | |
| ?> | |
| </section> | |
| </article> | |
| <?php | |
| } | |
| ?> | |
| </div> | |
| <?php get_sidebar('one'); ?> | |
| </div> | |
| </div> | |
| <?php | |
| vol_html_after_content(); | |
| get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment