Advertisement
designerken

EDD X-Theme integration

May 30th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php
  2.  
  3. // =============================================================================
  4. // SINGLE.PHP
  5. // -----------------------------------------------------------------------------
  6. // Handles output of individual posts.
  7. //
  8. // Content is output based on which Stack has been selected in the Customizer.
  9. // To view and/or edit the markup of your Stack's posts, first go to "views"
  10. // inside the "framework" subdirectory. Once inside, find your Stack's folder
  11. // and look for a file called "wp-single.php," where you'll be able to find the
  12. // appropriate output.
  13. // =============================================================================
  14.  
  15. ?>
  16.  
  17. <?php //x_get_view( x_get_stack(), 'wp', 'single' ); ?>
  18.  
  19. <?php
  20. // =============================================================================
  21. // VIEWS/RENEW/WP-SINGLE.PHP
  22. // -----------------------------------------------------------------------------
  23. // Single post output for Renew.
  24. // =============================================================================
  25.  
  26. $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
  27.  
  28. ?>
  29.  
  30. <?php get_header(); ?>
  31.  
  32.   <div class="x-container max width offset">
  33.     <div class="<?php x_main_content_class(); ?>" role="main">
  34.       <p>This is the EDD file.</p>
  35.       <?php while ( have_posts() ) : the_post(); ?>
  36.         <?php x_get_view( 'renew', 'content', get_post_format() ); ?>
  37.         <?php x_get_view( 'global', '_comments-template' ); ?>
  38.       <?php endwhile; ?>
  39.  
  40.     </div>
  41.  
  42.     <?php if ( $fullwidth != 'on' ) : ?>
  43.       <?php get_sidebar(); ?>
  44.     <?php endif; ?>
  45.  
  46.   </div>
  47.  
  48. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement