single-classic.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. include locate_template( 'templates/post/header.php' );
  3. $meta_author = rd_vamtam_get_optionb( 'post-meta', 'author' );
  4. $meta_date = rd_vamtam_get_optionb( 'post-meta', 'date' );
  5. $meta_comments = rd_vamtam_get_optionb( 'post-meta', 'comments' ) && comments_open();
  6. ?><div class="post-content-outer single-post">
  7. <?php if ( $meta_author || $meta_date || $meta_comments || is_customize_preview() ) : ?>
  8. <div class="meta-top clearfix">
  9. <?php if ( $meta_author || is_customize_preview() ) : ?>
  10. <span class="author vamtam-meta-author" <?php VamtamTemplates::display_none( $meta_author ) ?>><?php the_author_posts_link()?></span>
  11. <?php endif ?>
  12. <?php if ( $meta_date || is_customize_preview() ) : ?>
  13. <span class="post-date vamtam-meta-date" itemprop="datePublished" <?php VamtamTemplates::display_none( $meta_date ) ?>><?php the_time( get_option( 'date_format' ) ); ?> </span>
  14. <?php endif ?>
  15. <?php get_template_part( 'templates/post/meta/comments' ); ?>
  16. </div>
  17. <?php endif ?>
  18. <?php if ( isset( $post_data['media'] ) && ( rd_vamtam_get_optionb( 'show-single-post-image' ) || is_customize_preview() ) ) : ?>
  19. <div class="post-media post-media-image" <?php VamtamTemplates::display_none( rd_vamtam_get_optionb( 'show-single-post-image' ) ) ?>>
  20. <div class='media-inner'>
  21. <?php echo $post_data['media']; // xss ok ?>
  22. </div>
  23. </div>
  24. <?php endif; ?>
  25. <?php include locate_template( 'templates/post/content.php' ); ?>
  26. <?php get_template_part( 'templates/post/meta/categories' ); ?>
  27. <?php get_template_part( 'templates/post/meta/tags' ); ?>
  28. <?php get_template_part( 'templates/share' ); ?>
  29. </div>