forked from COPIM/copim_pub_wordpress_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-all-posts.php
More file actions
executable file
·86 lines (43 loc) · 1.56 KB
/
page-all-posts.php
File metadata and controls
executable file
·86 lines (43 loc) · 1.56 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/*
* Template Name: All Posts
*/
?>
<?php
get_header();
?>
<main id="main-content" class="site-main all-posts "role="main">
<!-- HEADER -->
<section class="container-wrapper bg-color-warm-gray-800 header-bg" >
<div class="container article-header no-hero-image">
<div class="row justify-center" >
<div class="section-header col col-12">
<div class="section-header-title">
<?php // TITLE
the_title('<h1 class="entry-title">', '</h1>');
?>
<?php // Subtitle
if (get_field('header_subtitle')) { ?>
<?php echo '<div class="header-subtitle">' . wp_kses_post(get_field('header_subtitle')) . '</div>'; ?>
<?php } ?>
</div><!-- / section-header-title -->
</div><!-- / section-header -->
</div><!-- / row -->
</div><!-- / container -->
</section><!-- / container-wrapper -->
<!-- ARTICLE -->
<div class="container-wrapper container-padding-top container-padding-bottom bg-color-warm-gray-100" >
<div class="container ">
<div class="row justify-center">
<div class="col col-10 cms-content" >
<!-- AJAX LOAD MORE: SHORTCODE -->
<?php $shortcode = '[ajax_load_more container_type="div" post_type="post" posts_per_page="8" button_label="More Articles" scroll="true" pause="false" loading_style="infinite fading-squares" scroll_distance="50"]';
echo do_shortcode($shortcode);
?>
</div><!-- / col -->
</div><!-- / row -->
</div><!-- / container -->
</div><!-- / container wrapper -->
</main><!-- / main -->
<?php
get_footer();