-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
66 lines (61 loc) · 1.98 KB
/
archive.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
59
60
61
62
63
64
65
66
<?php
/*
Template Name: archive Template
*/
get_header();
?>
<main>
<section class="journal-hero" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/journal/journal-image.jpg);">
<div class="journal-overlay">
<h2 class="journal-heading">
<?php
if('malika_event' == get_post_type()) {
echo "Events";
} else {
echo "Journal";
}
?>
</h2>
</div>
</section>
<section class="journal-content">
<div class="journal-content_primary">
<div class="journal-content_title">
<p class="journal-content_header"><?php the_archive_title() ?></p>
</div>
<?php
if( have_posts() ) {
while( have_posts() ) {
the_post( );
get_template_part( 'template-parts/content', 'archive' );
}
$next = next_posts_link('Newer posts');
$previous = previous_posts_link( 'Older posts' );
}
?>
<div
class="journal-page d-flex justify-content-center align-items-center mt-5 border-top"
>
<a href="<?=$previous ?>"><i class="bi bi-chevron-left"></i></a>
<p class="p-2 m-3 border border-dark-subtle rounded">1</p>
<a href="<?=$next ?>"><i class="bi bi-chevron-right"></i></a>
</div>
</div>
<div class="aside d-none d-lg-block">
<div
class="aside-img"
style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/home/event-banner.jpg)"
></div>
<div class="aside-text_container">
<p class="aside-text">WANT TO ATTEND OUR EVENTS?</p>
<a href="
<?php
get_post_type_archive_link('malika_event');
?>" class="aside-link"> Know More > </a>
</div>
</div>
</section>
</main>
<?php
get_footer();
?>