Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package WordPress
  6. */
  7. ?>
  8. <?php get_header();?>
  9. <!-- Page content
  10. ================================================== -->
  11. <!-- Wrap the rest of the page in another container to center all the content. -->
  12. <?php
  13. $template = '';
  14. $options = arcane_get_theme_options();
  15. if(isset($options['posts_template']))
  16. $template = $options['posts_template'];
  17. ?>
  18. <div class=" blog blog-ind">
  19. <div class="container ">
  20. <div class="row">
  21. <div class="col-lg-12 col-md-12">
  22. <?php if($template == 'left'){ ?>
  23. <div class="col-lg-4 col-md-4 ">
  24. <?php require_once (get_theme_file_path('sidebar.php')); ?>
  25. </div><!-- /.span4 -->
  26. <?php } ?>
  27. <?php if($template != 'full'){ ?>
  28. <div class="col-lg-8 col-md-8 ">
  29. <?php } ?>
  30. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  31. <?php require_once (get_theme_file_path('blog-single.php')); ?>
  32. <?php endwhile; endif;wp_reset_postdata(); ?>
  33. <div class="clear"></div>
  34. <div class="pagination">
  35. <?php
  36. $args = array(
  37. 'before' => '<ul class="wp_pag">',
  38. 'after' => '</ul>',
  39. 'link_before' => '<li>',
  40. 'link_after' => '</li>',
  41. 'next_or_number' => 'next_and_number',
  42. 'separator' => '',
  43. 'nextpagelink' => '&raquo;',
  44. 'previouspagelink' => '&laquo;',
  45. 'pagelink' => '%',
  46. 'echo' => 1
  47. );
  48. wp_link_pages($args); ?>
  49. </div>
  50. <?php if(comments_open()){ ?>
  51. <div id="comments" class="block-divider"></div>
  52. <?php comments_template('/short-comments-blog.php'); ?>
  53. <?php } ?>
  54. <?php if($template != 'full'){ ?>
  55. </div><!-- /.span8 -->
  56. <?php } ?>
  57. <?php if($template == 'right'){ ?>
  58. <div class="col-lg-4 col-md-4 ">
  59. <?php require_once (get_theme_file_path('sidebar.php')); ?>
  60. </div><!-- /.span4 -->
  61. <?php } ?>
  62. </div><!-- /.span12 -->
  63. </div><!-- /row -->
  64. </div><!-- /container -->
  65. </div><!-- /blog -->
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement