-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
34 lines (31 loc) · 1.12 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
<?php get_header(); ?>
<header class="post-header">
<h1 class="page-title">
<span class="page-main-title"><?php _e('Archive','softbox'); ?></span>
<?php if (is_category()) : ?>
<span class="page-sub-title"><?php single_cat_title(); ?></span>
<?php elseif (is_tag()) : ?>
<span class="page-sub-title"><?php single_tag_title(); ?></span>
<?php endif; ?>
</h1>
</header>
<section id="index" class="horizontal">
<div class="swiper-container">
<div class="swiper-wrapper">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="swiper-slide">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<figure class="post-image" style="background-image: url(<?php the_post_thumbnail_url('preview'); ?>);">
<a class="post-link" href="<?php the_permalink(); ?>"></a>
</figure>
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
</div>
</div>
<?php endwhile; endif; ?>
</div>
<div class="swiper-pagination"></div>
</div>
</section>
<?php get_footer(); ?>