-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_1-col_fullwidth.php
58 lines (43 loc) · 1.24 KB
/
page_1-col_fullwidth.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
<?php
/**
* Template Name: 1-Col Full-Width
*
* @package NatOkpe
*/
declare(strict_types = 1);
use NatOkpe\Wp\Theme\Tranquil\Theme;
Theme::add_body_classes('navbar-sticky');
get_header();
while (have_posts()):
the_post();
?>
<div class="frame">
<header class="frame-header">
<?php get_template_part('tpl/parts/navbar'); ?>
</header>
<main class="frame-body mt-4 mb-5 pb-3">
<div class="container">
<div class="row">
<div class="col-lg-9 col-xl-8">
<div class="post-details mb-3">
<h1 class="page-title"><?= get_the_title() ?></h1>
<?php if (has_post_thumbnail()): ?>
<div class="post-details-image">
<img src="<?= get_the_post_thumbnail_url() ?>" alt="<?= get_the_title() ?>" title="<?= get_the_title() ?>" />
</div>
<?php endif; ?>
</div>
</div>
<div class="col-12">
<?php the_content() ?>
</div>
</div>
</div>
</main>
<footer class="frame-footer">
<?php get_template_part('tpl/parts/footer'); ?>
</footer>
</div>
<?php
endwhile;
get_footer();