This repository was archived by the owner on Aug 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
45 lines (37 loc) · 1.27 KB
/
single.php
File metadata and controls
45 lines (37 loc) · 1.27 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
<?php
if(empty(get_field('post_template'))) {
$template = 'single';
} else {
$template = get_field('post_template');
}
if(empty(get_field('additional_options'))) {
$options = array();
} else {
$options = get_field('additional_options');
}
?>
<?php if($template !== 'slideshow' && $template !== 'gallery') { ?>
<?php get_header(); ?>
<header id="article-header">
<?php if( $template == 'massive' ) { ?>
<?php get_template_part('php/posts/massive/featured-image'); ?>
<?php } ?>
<?php get_template_part('php/posts/universal/header'); ?>
<?php if( in_array( $template, array('single', 'slider', 'video', 'wider', 'widest') ) ) { ?>
<?php if(!in_array('hide_image', $options)) { ?>
<?php get_template_part('php/posts/' . get_field('post_template') . '/featured-image'); // Get featured image based on theme folder?>
<?php } ?>
<?php } ?>
</header>
<?php get_template_part('php/posts/universal/content'); ?>
<?php get_template_part('php/posts/universal/footer'); ?>
<?php get_template_part('php/posts/universal/comments'); ?>
<?php get_footer(); ?>
<?php } ?>
<?php
if($template == 'slideshow') {
get_template_part('load/head');
get_template_part('php/posts/slideshow/slideshow');
get_template_part('load/footer');
}
?>