archive-jetpack-portfolio.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The template for displaying the Portfolio archive page.
  4. *
  5. * @package Rebalance
  6. */
  7. get_header(); ?>
  8. <div id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10. <?php if ( have_posts() ) : ?>
  11. <?php rebalance_portfolio_thumbnail( '<div class="entry-image">', '</div>' ) ?>
  12. <header class="page-header">
  13. <?php
  14. rebalance_portfolio_title( '<h1 class="page-title">', '</h1>' );
  15. rebalance_portfolio_content( '<div class="taxonomy-description">', '</div>' );
  16. ?>
  17. </header><!-- .page-header -->
  18. <div id="infinite-wrap">
  19. <?php /* Start the Loop */ ?>
  20. <?php while ( have_posts() ) : the_post(); ?>
  21. <?php
  22. /*
  23. * Include the Post-Format-specific template for the content.
  24. * If you want to override this in a child theme, then include a file
  25. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  26. */
  27. get_template_part( 'template-parts/content', 'card' );
  28. ?>
  29. <?php endwhile; ?>
  30. <?php
  31. the_posts_navigation( array(
  32. 'prev_text' => esc_html__( 'Older projects', 'rebalance' ),
  33. 'next_text' => esc_html__( 'Newer projects', 'rebalance' ),
  34. 'screen_reader_text' => esc_html__( 'Portfolio navigation', 'rebalance' ),
  35. ) );
  36. ?>
  37. </div>
  38. <?php else : ?>
  39. <?php get_template_part( 'template-parts/content', 'none' ); ?>
  40. <?php endif; ?>
  41. </main><!-- #main -->
  42. </div><!-- #primary -->
  43. <?php get_sidebar(); ?>
  44. <?php get_footer(); ?>