-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
132 lines (72 loc) · 2.94 KB
/
page.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage schoolsUOL
* @author Jez Thompson <[email protected]>
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<main id="main" class="site-main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="module-inner-wrap">
<?php
$post_format = get_post_format();
if ( $post_format == 'gallery' ) : ?>
<div class="post-entry">
<?php schoolsUOL_slickslider('post_gallery_items','post-hero-banner-inner'); ?>
</div> <!--post-entry-->
<?php elseif ( $post_format == 'video' ) :
//Vars
$post_video = get_field('post_video');
?>
<?php if( $post_video ): ?>
<div class="post-entry post-entry-video">
<?php echo $post_video; ?>
</div><!-- .featured-media -->
<?php endif; ?>
<?php elseif ( has_post_thumbnail() ) : ?>
<div class="post-entry">
<?php the_post_thumbnail( 'post-hero-banner-inner' ); ?>
</div> <!--post-entry-->
<?php endif; ?>
<div class="post-body narrow">
<div class="post-head">
<div class="post-entry-meta post-spacing">
<?php //schoolsUOL_post_meta(); ?>
</div><!-- .entry-meta -->
<?php the_title( '<h1 class="post-title">', '</h1>' ); ?>
</div> <!--post-head-->
<div class="post-content">
<?php
the_content();
$args = array(
'before' => '<div class="clear"></div><p class="page-links"><span class="title">' . __( 'Pages:','schoolsUOL' ) . '</span>',
'after' => '</p>',
'link_before' => '<span>',
'link_after' => '</span>',
'separator' => '',
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $args );
?>
</div> <!--post-content-->
<?php comments_template( '', true ); ?>
</div> <!--post-body-->
</div> <!--module-inner-wrap-->
</div><!-- .post -->
<?php endwhile; else: ?>
<?php endif; ?>
</main><!-- #main -->
<?php get_footer(); ?>