-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
52 lines (41 loc) · 1.78 KB
/
single.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
<?php
// Include the header template
get_header();
// Start the WordPress loop to display content
while (have_posts()) {
// Setup the current post data
the_post(); ?>
<!-- Page Banner Section -->
<div class="page-banner">
<!-- Background Image -->
<div class="page-banner__bg-image" style="background-image: url(<?php echo get_theme_file_uri('/images/ocean.jpg'); ?>);"></div>
<!-- Content Container -->
<div class="page-banner__content container container--narrow">
<!-- Page Title -->
<h1 class="page-banner__title"><?php the_title(); ?></h1>
<!-- Page Banner Introduction (To be replaced later) -->
<div class="page-banner__intro">
<p>DONT FORGET TO REPLACE ME LATER</p>
</div>
</div>
</div>
<!-- Main Content Section -->
<div class="container container--narrow page-section">
<!-- Metabox for Navigation Links -->
<div class="metabox metabox--position-up metabox--with-home-link">
<!-- Link to navigate back to the Blog Home -->
<p><a class="metabox__blog-home-link" href="<?php echo site_url('/blog'); ?>"><i class="fa fa-home" aria-hidden="true"></i> Blog Home</a>
<!-- Metabox Main Content: Post information -->
<span class="metabox__main">Posted by <?php the_author_posts_link(); ?> on <?php the_time('n-j-y'); ?> in <?php echo get_the_category_list(', '); ?></span>
</p>
</div>
<!-- Generic Content Section -->
<div class="generic-content">
<!-- Display the content of the post -->
<?php the_content(); ?>
</div>
</div>
<?php }
// Include the footer template
get_footer();
?>