-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy patharchive.php
59 lines (49 loc) · 1.88 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
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php
echo '<div style="float:right;margin-top: .8em;"><small>';
include(TEMPLATEPATH . '/include/frontend/archive-filters.php');
echo '</small></div>';
if (single_cat_title( '', false )) {
echo '<h2>'; single_cat_title( '', true ); echo '</h2>';
} else {
echo '<h2>Archivio</h2>';
}
?>
<?php if( is_tax( 'tipologie' ) ) { echo '<div class="clear"></div>';
if (function_exists('at_archive_buttons_pasw2015')) {
at_archive_buttons_pasw2015();
} else {
at_archive_buttons();
}}
?>
<?php global $post; if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post-box-archive">
<span class="hdate"><?php the_time('j F y'); ?></span>
<?php if (!is_category()) { ?>
<span class="hdate" style="font-weight:normal;"><?php echo get_post_type_object(get_post_type())->labels->singular_name; ?></span>
<?php } ?>
<a href="<?php the_permalink(); ?>">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(array(100,100));
}
?>
</a>
<h4 class="piccino"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<div class="piccino">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="clear"></div><br/><br/>Spiacenti, ma non ci sono articoli per questa categoria.
<?php endif; ?>
<div class="clear"></div>
<div style="text-align:center;width:100%;">
<?php _sds_numeric_posts_nav( 'nav-below' ); ?>
</div>
</div>
<?php get_sidebar('right'); ?>
<?php get_footer(); ?>