forked from Gnuside/wp-green-golem-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
42 lines (35 loc) · 1.03 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
<?php get_header(); ?>
<section id='article-list'>
<header class='heading yellow'>
<?php $category = get_category(get_query_var('cat'),false); ?>
<h2><?php echo $category->name; ?></h2>
<a class='feed' href='<?php echo get_category_feed_link(
$category->cat_ID ); ?>'>
<img src='<?php echo get_template_directory_uri(); ?>/images/rss-black.png' />
</a>
</header>
<!-- liste des pages -->
<?php revenudebase_pagination(); ?>
<?php if (!empty($category->description)) {
echo "<div class='description'>"
. category_description( $category->cat_ID )
. "</div>";
echo "<hr/>";
} ?>
<?php
if(have_posts()) {
while(have_posts()) {
the_post();
$format = get_post_format( $post->ID );
if ( "" == $format ) {
$format = "archive";
}
get_template_part( 'content', $format );
}
} else { ?>
Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.
<?php } ?>
<!-- liste des pages -->
<?php revenudebase_pagination(); ?>
</section> <!-- #article-list -->
<?php get_footer(); ?>