| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The main template file. |
|---|
| 4 | * |
|---|
| 5 | * This is the most generic template file in a WordPress theme |
|---|
| 6 | * and one of the two required files for a theme (the other being style.css). |
|---|
| 7 | * It is used to display a page when nothing more specific matches a query. |
|---|
| 8 | * E.g., it puts together the home page when no home.php file exists. |
|---|
| 9 | * |
|---|
| 10 | * @link https://codex.wordpress.org/Template_Hierarchy |
|---|
| 11 | * |
|---|
| 12 | * @package softme |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | get_header(); |
|---|
| 16 | ?> |
|---|
| 17 | <section class="dt_posts dt-py-default"> |
|---|
| 18 | <div class="dt-container"> |
|---|
| 19 | <div class="dt-row dt-g-5"> |
|---|
| 20 | <?php if ( !is_active_sidebar( 'softme-sidebar-primary' ) ): ?> |
|---|
| 21 | <div class="dt-col-lg-12 dt-col-md-12 dt-col-12 wow fadeInUp"> |
|---|
| 22 | <?php else: ?> |
|---|
| 23 | <div id="dt-main" class="dt-col-lg-8 dt-col-md-12 dt-col-12 wow fadeInUp"> |
|---|
| 24 | <?php endif; ?> |
|---|
| 25 | <?php if( have_posts() ): ?> |
|---|
| 26 | <?php |
|---|
| 27 | // Start the loop. |
|---|
| 28 | while( have_posts() ) : the_post(); ?> |
|---|
| 29 | <div class="dt_post_block wow fadeInUp animated" data-wow-delay="100ms" data-wow-duration="1500ms"> |
|---|
| 30 | <?php get_template_part('template-parts/content','page'); ?> |
|---|
| 31 | </div> |
|---|
| 32 | <?php endwhile; |
|---|
| 33 | // End the loop. |
|---|
| 34 | |
|---|
| 35 | // Pagination. |
|---|
| 36 | the_posts_pagination( array( |
|---|
| 37 | 'prev_text' => '<i class="fa fa-angle-double-left"></i>', |
|---|
| 38 | 'next_text' => '<i class="fa fa-angle-double-right"></i>' |
|---|
| 39 | ) ); |
|---|
| 40 | |
|---|
| 41 | // If no content, include the "No posts found" template. |
|---|
| 42 | else: |
|---|
| 43 | get_template_part('template-parts/content','none'); |
|---|
| 44 | endif; ?> |
|---|
| 45 | </div> |
|---|
| 46 | <?php get_sidebar(); ?> |
|---|
| 47 | </div> |
|---|
| 48 | </div> |
|---|
| 49 | </section> |
|---|
| 50 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.