-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
50 lines (46 loc) · 2.3 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
<?php get_header(); ?>
<div id="content">
<div id="colCenter">
<?php if (have_posts()) : ?>
<div class="archive-header">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="archive">Archivo para categoria ‘<?php single_cat_title(); ?>’</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="archive">Articulos etiquetados con ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="archive">Archivo para <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="archive">Archivo para <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archivo para <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Archive de autor</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Archivos del blog</h2>
<?php } endif; ?>
</div>
<div class="clearfix"></div>
<div class="postbox-wrap">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="postBox" id="post-<?php the_ID(); ?>">
<div class="postBoxInner">
<div class="postBox-header">
<h2 class="postBoxTitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<?php if ( has_post_thumbnail()) { ?>
<a href="<?php the_permalink() ?>"><img width="150" height="190" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>&h=190&w=150" alt="<?php the_title(); ?>"/></a>
<?php } else {?>
<img src="<?php bloginfo('template_directory'); ?>/images/nothumb.png" alt="No Thumbnail" />
<?php } ?>
</div>
</div>
<?php endwhile; endif; ?>
<div class="clearfix"></div>
</div>
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<div id="colRight"><?php get_sidebar(); ?></div>
</div>
<div class="film-line"></div>
<?php get_footer(); ?>