-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
80 lines (60 loc) · 2.27 KB
/
Copy pathsingle.php
File metadata and controls
80 lines (60 loc) · 2.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
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
<?php
/**
* The template for displaying a single post.
* THIS POST TYPE IS NOT USED IN THIS THEME!
*
* (C) BYMARC
*
*/
?>
<?php get_header(); ?>
<!-- HTML content starts! -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="stage">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-12">
<div class="image">
<?php if (is_home()) { ?>
<?php
$page_for_posts = get_option('page_for_posts');
echo get_the_post_thumbnail($page_for_posts, 'large');
?>
<?php }
// Get the recipes inside the current post.
$recipes = WPRM_Recipe_Manager::get_recipe_ids_from_post();
// Access the first recipe, if there is one.
if (isset($recipes[0])) {
$recipe_id = $recipes[0];
$recipe = WPRM_Recipe_Manager::get_recipe($recipe_id);
// Output the recipe name.
echo ("<h1>" . $recipe->name() . "</h1>");
echo ("<div class=\"img_overlay\"></div>");
echo $recipe->image(1920, 1080);
}
?>
<!-- </a> -->
</div>
</div>
</div>
</div>
</div>
</section>
<?php get_template_part('template-parts/content/breadcrumb') ?>
<section>
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
<div class="content">
<?php the_content();
?>
</div>
</div>
</div>
</div>
</section>
<?php endwhile;
endif; ?>
<!-- HTML content ends! -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>