forked from italia/design-scuole-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·67 lines (58 loc) · 1.91 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Design_Scuole_Italia
*/
get_header();
?>
<main id="main-container" class="main-container petrol">
<?php get_template_part("template-parts/common/breadcrumb"); ?>
<section class="section bg-white py-3 py-lg-3 py-xl-4 pb-xl-5">
<div class="container ">
<div class="row variable-gutters">
<div class="col-lg-5 col-md-8 offset-lg-2">
<div class="section-title">
<?php the_archive_title( '<h2 class="mb-0">', '</h2>' ); ?>
</div><!-- /title-section -->
</div><!-- /col-lg-5 col-md-8 offset-lg-2 -->
<div class="col-lg-3 col-md-4 offset-lg-1">
<?php get_template_part("template-parts/single/actions"); ?>
</div><!-- /col-lg-3 col-md-4 offset-lg-1 -->
</div><!-- /row -->
</div><!-- /container -->
</section><!-- /section -->
<section class="section bg-gray-light">
<div class="container">
<div class="row variable-gutters d-flex justify-content-center">
<div class="col-lg-8 pt84">
<?php
if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) :
the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part( 'template-parts/list/article', get_post_type() );
endwhile;
?>
<nav class="pagination-wrapper justify-content-center col-12" aria-label="Navigazione centrata">
<?php echo dsi_bootstrap_pagination(); ?>
</nav>
<?php
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</div>
</div>
</div>
</section>
</main>
<?php
get_footer();