Advertisement
baliniz

archive.php

Apr 30th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. <?php
  2. get_header();
  3. $archive = new \JNews\Archive\SingleArchive();
  4. ?>
  5.  
  6. <div class="jeg_main <?php $archive->main_class(); ?>">
  7. <div class="jeg_container">
  8. <div class="jeg_content">
  9. <div class="jeg_section">
  10. <div class="container">
  11.  
  12. <?php do_action( 'jnews_archive_above_content' ); ?>
  13.  
  14. <div class="jeg_archive_header">
  15. <?php if ( is_tag() && jnews_can_render_breadcrumb() ): ?>
  16. <div class="jeg_breadcrumbs jeg_breadcrumb_container">
  17. <?php echo jnews_sanitize_output( $archive->render_breadcrumb() ); ?>
  18. </div>
  19. <?php endif; ?>
  20.  
  21. <?php
  22. the_archive_title( '<h1 class="jeg_archive_title">', '</h1>' );
  23. the_archive_description( '<div class="jeg_archive_description">', '</div>' );
  24. ?>
  25.  
  26. </div>
  27.  
  28. <div class="jeg_cat_content row">
  29. <div class="jeg_main_content col-sm-<?php echo esc_attr($archive->get_content_width()); ?>">
  30. <div class="jnews_archive_content_wrapper">
  31. <?php echo jnews_sanitize_output( $archive->render_content() ); ?>
  32. </div>
  33.  
  34. <?php echo jnews_sanitize_output( $archive->render_navigation() ); ?>
  35. </div>
  36. <?php $archive->render_sidebar(); ?>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <?php do_action('jnews_after_main'); ?>
  42. </div>
  43. </div>
  44.  
  45.  
  46. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement