-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
85 lines (75 loc) · 2.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
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package fspo_theme
*/
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php if ( have_posts() ) : ?>
<section class="thumbnail-post" style="background-image: url('<?php echo get_template_directory_uri() ?>/img/header.jpg">
<div class="container title">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
?>
</div>
</section>
<div class="container">
<div class="row">
<div class="col-md-8">
<article class="container page-blog">
<div class="row">
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();
?>
<div class="col-md-12 post">
<div class="post-block">
<div class="thumbnails">
<?php echo get_the_post_thumbnail($wp_query->ID, 'thumbnail'); ?>
</div>
<div class="title-post">
<h2 class="post-header"><a href="<?php the_permalink(); ?>" title="Читати далі"><?php trim_title_chars(70, '...'); ?></a></h2>
<p>
<?php //the_excerpt();
the_truncated_post( 200 );
?>
</p>
</div>
<div class="more">
<a href="<?php the_permalink(); ?>" title="Читати більше">Читати більше</a>
</div>
</div>
</div>
<?php
endwhile;
?>
<?php
$arrg = array(
'prev_text' => ('<i class="fas fa-chevron-left"></i>'),
'next_text' => ('<i class="fas fa-chevron-right"></i>')
);
the_posts_pagination($arrg); ?>
<?
else :
// get_template_part( 'template-parts/content', 'none' );
endif;
?>
</div>
</article>
</div>
<div class="col-md-4">
<?php get_sidebar( 'sidebar-1' ) ?>
</div>
</div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();