| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying archive pages. |
|---|
| 4 | */ |
|---|
| 5 | get_header(); |
|---|
| 6 | get_template_part('/template-parts/site', 'breadcrumb'); |
|---|
| 7 | ?> |
|---|
| 8 | <section id="flixita-blog-section" class="flixita-blog-section st-py-default"> |
|---|
| 9 | <div class="container"> |
|---|
| 10 | <div class="row gy-lg-0 gy-5 wow fadeInUp"> |
|---|
| 11 | <div class="<?php if ( is_active_sidebar('sidebar-primary') ){ esc_attr_e('col-lg-8','flixita'); } else { esc_attr_e('col-lg-12','flixita'); } ?>"> |
|---|
| 12 | <div class="row row-cols-1 row-cols-md-1 gx-5 gy-5"> |
|---|
| 13 | <?php if( have_posts() ): |
|---|
| 14 | while( have_posts() ) : the_post(); ?> |
|---|
| 15 | <div class="col"> |
|---|
| 16 | <?php get_template_part('template-parts/content','page'); ?> |
|---|
| 17 | </div> |
|---|
| 18 | <?php endwhile; |
|---|
| 19 | else: |
|---|
| 20 | get_template_part('template-parts/content','none'); |
|---|
| 21 | endif; ?> |
|---|
| 22 | </div> |
|---|
| 23 | <div class="row"> |
|---|
| 24 | <div class="col-12 text-center mt-5"> |
|---|
| 25 | <div class="fx-post-pagination"> |
|---|
| 26 | <?php |
|---|
| 27 | // Pagination. |
|---|
| 28 | the_posts_pagination( |
|---|
| 29 | array( |
|---|
| 30 | 'prev_text' => '<i class="fa fa-angle-left"></i>', |
|---|
| 31 | 'next_text' => '<i class="fa fa-angle-right"></i>', |
|---|
| 32 | ) |
|---|
| 33 | ); |
|---|
| 34 | ?> |
|---|
| 35 | </div> |
|---|
| 36 | </div> |
|---|
| 37 | </div> |
|---|
| 38 | </div> |
|---|
| 39 | <?php |
|---|
| 40 | // Sidebar |
|---|
| 41 | get_sidebar(); |
|---|
| 42 | ?> |
|---|
| 43 | </div> |
|---|
| 44 | </div> |
|---|
| 45 | </section> |
|---|
| 46 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.