-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patharchive.php
135 lines (102 loc) · 3.05 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* The template for displaying archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
*/
?>
<?php get_header(); ?>
<!-- Wrapper start -->
<div class="main">
<!-- Header section start -->
<?php
$shop_isle_header_image = get_header_image();
if( !empty($shop_isle_header_image) ):
echo '<section class="page-header-module module bg-dark" data-background="'.$shop_isle_header_image.'">';
else:
echo '<section class="page-module-header module bg-dark">';
endif;
?>
<div class="container">
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<h1 class="module-title font-alt"><?php the_archive_title(); ?></h1>
<?php the_archive_description(); ?>
</div><!-- .col-sm-6 col-sm-offset-3 -->
</div><!-- .row -->
</div><!-- .container -->
<?php
echo '</section><!-- .module -->';
?>
<!-- Header section end -->
<?php
if ( have_posts() ) {
?>
<section class="page-module-content module">
<div class="container">
<div class="row">
<!-- Content column start -->
<div class="col-sm-8">
<?php
while ( have_posts() ) {
the_post();
?>
<div id="post-<?php the_ID(); ?>" <?php post_class("post"); ?> itemscope="" itemtype="http://schema.org/BlogPosting">
<?php
if ( has_post_thumbnail() ) {
echo '<div class="post-thumbnail">';
echo '<a href="'.get_permalink().'">';
echo get_the_post_thumbnail($post->ID, 'shop_isle_blog_image_size');
echo '</a>';
echo '</div>';
}
?>
<div class="post-header font-alt">
<h2 class="post-title"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="post-meta">
<?php
shop_isle_posted_on();
?>
</div>
</div>
<div class="post-entry">
<?php
$shop_isleismore = @strpos( $post->post_content, '<!--more-->');
if($shop_isleismore) :
the_content();
else :
the_excerpt();
endif;
?>
</div>
<div class="post-more">
<a href="<?php echo get_permalink(); ?>" class="more-link"><?php _e('Read more','shop-isle'); ?></a>
</div>
</div>
<?php
}
?>
<!-- Pagination start-->
<div class="pagination font-alt">
<?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'shop-isle')); ?>
<?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'shop-isle')); ?>
</div>
<!-- Pagination end -->
</div>
<!-- Content column end -->
<!-- Sidebar column start -->
<div class="col-sm-4 col-md-3 col-md-offset-1 sidebar">
<?php do_action( 'shop_isle_sidebar' ); ?>
</div>
<!-- Sidebar column end -->
</div><!-- .row -->
</div>
</section>
<!-- Blog standar end -->
<?php
/* Restore original Post Data */
wp_reset_postdata();
}
?>
<?php get_footer(); ?>