archive.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * The template for displaying archive pages
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package spice-software
  8. */
  9. get_header();?>
  10. <section class="section-space blog">
  11. <div class="container<?php echo esc_html(spice_software_blog_post_container());?>">
  12. <div class="row">
  13. <?php
  14. if ( is_active_sidebar( 'sidebar-1' ) ):
  15. echo '<div class="col-lg-8 col-md-7 col-sm-12 standard-view">';
  16. else:
  17. echo '<div class="col-lg-12 col-md-12 col-sm-12 standard-view">';
  18. endif;
  19. if (have_posts()):
  20. while (have_posts()): the_post();
  21. if(! function_exists( 'spice_software_plus_activate' ) ){
  22. get_template_part( 'template-parts/content');
  23. }
  24. else{
  25. include(SPICE_SOFTWAREP_PLUGIN_DIR.'/inc/template-parts/content.php' );
  26. }
  27. endwhile;
  28. else:
  29. get_template_part('template-parts/content', 'none');
  30. endif;
  31. // pagination
  32. do_action('spice_software_post_navigation');
  33. // pagination
  34. ?>
  35. </div>
  36. <?php get_sidebar();?>
  37. </div>
  38. </div>
  39. </section>
  40. <?php get_footer(); ?>