-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
78 lines (53 loc) · 1.88 KB
/
Copy pathsingle.php
File metadata and controls
78 lines (53 loc) · 1.88 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
<!-- single.php -->
<?php
/**
* The template for displaying all single posts
* Theme Proposal
* Template Name: Single
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*/
get_header();
get_template_part('parts/top', 'navigation');
?>
<section class="blog-details">
<div class="container">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'parts/content', get_post_type() );
// the_post_navigation(
// array(
// 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'proposal' ) . '</span> <span class="nav-title">%title</span>',
// 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'proposal' ) . '</span> <span class="nav-title">%title</span>',
// )
// );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</div>
</section>
<section class="blog-details">
<div class="container">
<?php get_template_part('parts/content', 'videos-blogs-container') ?>
<?php
$content = get_field('custom_text_block_1');
if($content){
get_template_part('parts/content', 'blog-custom-text', ['content'=>$content]);
}
?>
<?php get_template_part('parts/content', 'blog-packages') ?>
<?php
$content = get_field('custom_text_block_2');
if($content){
get_template_part('parts/content', 'blog-custom-text', ['content'=>$content]);
}
?>
<?php get_template_part('parts/content', 'blogs-portfolio') ?>
<?php get_template_part('parts/content', 'related-blogs') ?>
</div>
</section>
<?php
get_footer();