-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
120 lines (80 loc) · 3.22 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package seed
*/
get_header(); ?>
<div class="s-container main-body <?php echo '-'.$GLOBALS['s_blog_layout']; ?>">
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="page-header archive-header">
<?php if (is_category('podcast')) : ?>
<span class="site-logo">SPACETH.CO</span>
<span class="x-sign"> x <span>
<span class="partner-logo gettalks"> </span>
<?php elseif (is_category('futurism')) : ?>
<span class="site-logo">SPACETH.CO</span>
<span class="x-sign"> x <span>
<span class="partner-logo ftl"> </span>
<?php else: ?>
<h3><span class="site-logo">SPACETH.CO</span> COLUMN</h3>
<?php endif; ?>
<div class="info">
<h1><?php echo the_archive_title(); ?></h1>
<h2><?php echo get_the_archive_description() ?></h2>
</div>
</header>
<?php if (is_category('podcast')) : ?>
<?php
echo '<div class="s-grid -m2 -d4">';
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-headline', $GLOBALS['s_blog_template']);
endwhile;
echo '</div>';
seed_posts_navigation();
?>
<?php else: ?>
<?php
echo '<div class="s-grid -m1 -d3 first-child-full-4">';
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-card', $GLOBALS['s_blog_template']);
endwhile;
echo '</div>';
seed_posts_navigation();
?>
<?php endif; ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
<div style="padding:20px 0;" class="section-separator">
<a href="https://spaceth.co/category/futurism">
<h1>Discover</h1>
</a>
</div>
<?php dynamic_sidebar( 'cloudtag' ); ?>
<div class="section-separator">
<h1>In Coversation</h1>
<h4>เรื่องราวน่าสนใจที่กำลังเป็นบทสนทนา</h4>
</div>
<div class="home-widget-banner s-grid -m2 -d4">
<div class="widget-grid">
<?php dynamic_sidebar( 'inconversation1' ); ?>
</div>
<div class="widget-grid">
<?php dynamic_sidebar( 'inconversation2' ); ?>
</div>
<div class="widget-grid">
<?php dynamic_sidebar( 'inconversation3' ); ?>
</div>
<div class="widget-grid">
<?php dynamic_sidebar( 'inconversation4' ); ?>
</div>
</div>
</main>
</div>
</div>
<?php get_footer(); ?>