archive-jetpack-portfolio.php 855 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * The template for displaying the Portfolio archive page.
  4. *
  5. * @package Lodestar
  6. */
  7. get_header();
  8. $jetpack_portfolio_content = get_option( 'jetpack_portfolio_content' ); ?>
  9. <div class="wrap">
  10. <div id="primary" class="content-area">
  11. <main class="site-main" role="main">
  12. <?php
  13. if ( have_posts() ) {
  14. get_template_part( 'components/features/portfolio/content', 'portfolio-archive' );
  15. } else {
  16. get_template_part( 'template-parts/content', 'none' );
  17. }
  18. ?>
  19. <?php
  20. the_posts_navigation( array(
  21. 'prev_text' => esc_html__( 'Older projects', 'lodestar' ),
  22. 'next_text' => esc_html__( 'Newer projects', 'lodestar' ),
  23. 'screen_reader_text' => esc_html__( 'Portfolio navigation', 'lodestar' ),
  24. ) );
  25. ?>
  26. </main><!-- #main -->
  27. </div><!-- #primary -->
  28. </div><!-- .wrap -->
  29. <?php
  30. get_footer();