SHOW:
|
|
- or go back to the newest paste.
1 | <div class="all-posts clrfix"> | |
2 | <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
3 | <?php /* If this is a category archive */ if (is_category()) { ?> | |
4 | <h1 class="category-title">All Posts In<?php echo single_cat_title(); ?></h1> | |
5 | </div> | |
6 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?> | |
7 | <h1 class="category-title">Archive for <?php the_time('F jS Y'); ?></h1> | |
8 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | |
9 | <h1 class="category-title">Archive for <?php the_time('F Y'); ?></h1> | |
10 | <?php /* If this is a tag archive */ } elseif (is_archive('the_tag')) { | |
11 | ||
12 | if ($all_the_tags); | |
13 | $all_the_tags = get_the_tags(); | |
14 | foreach($all_the_tags as $this_tag) { | |
15 | if ($this_tag->name == "test1" ) { | |
16 | echo '<div id="cat-title-logo" ><img alt="test1" src="' . get_bloginfo('template_url') . '/imgs/logo-test1.jpg"/></div><h1 class="category-title">'; | |
17 | } else if ($this_tag->name == "test2" ) { | |
18 | echo '<div id="cat-title-logo" ><img alt="test2" src="' . get_bloginfo('template_url') . '/imgs/logo-test2.jpg"/></div><h1 class="category-title">'; | |
19 | } else { | |
20 | // it's neither, do nothing | |
21 | echo '<h1 class="category-title"> | |
22 | <!-- not tagged as one or the other -->'; | |
23 | } | |
24 | } | |
25 | single_tag_title('Tag: ');?> | |
26 | ||
27 | </h1> |