archive.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * Archive Template
  4. *
  5. * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
  6. * should be made in a child theme.
  7. *
  8. * @category CyberChimps Framework
  9. * @package Framework
  10. * @since 1.0
  11. * @author CyberChimps
  12. * @license http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
  13. * @link http://www.cyberchimps.com/
  14. */
  15. get_header(); ?>
  16. <div id="archive_page" class="container-full-width">
  17. <div class="container">
  18. <div class="container-fluid">
  19. <?php do_action( 'cyberchimps_before_container' ); ?>
  20. <div id="container" <?php cyberchimps_filter_container_class(); ?>>
  21. <div class="container">
  22. <?php do_action( 'cyberchimps_before_content_container' ); ?>
  23. <div id="content" <?php cyberchimps_filter_content_class(); ?>>
  24. <?php do_action( 'cyberchimps_before_content' ); ?>
  25. <?php if( have_posts() ) : ?>
  26. <?php /* Start the Loop */ ?>
  27. <?php while( have_posts() ) : the_post(); ?>
  28. <?php
  29. /* Include the Post-Format-specific template for the content.
  30. * If you want to overload this in a child theme then include a file
  31. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  32. */
  33. get_template_part( 'content', get_post_format() );
  34. ?>
  35. <?php endwhile; ?>
  36. <?php else : ?>
  37. <?php get_template_part( 'no-results', 'archive' ); ?>
  38. <?php endif; ?>
  39. <?php do_action( 'cyberchimps_after_content' ); ?>
  40. </div>
  41. <!-- #content -->
  42. <?php do_action( 'cyberchimps_after_content_container' ); ?>
  43. </div>
  44. <!-- .container -->
  45. </div>
  46. <!-- #container .row-fluid-->
  47. <?php do_action( 'cyberchimps_after_container' ); ?>
  48. </div>
  49. <!--container fluid -->
  50. </div>
  51. <!-- container -->
  52. </div><!-- container full width -->
  53. <?php get_footer(); ?>