Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="all-posts clrfix">
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <h1 class="category-title">All Posts In<?php echo single_cat_title(); ?></h1>
- </div>
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <h1 class="category-title">Archive for <?php the_time('F jS Y'); ?></h1>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <h1 class="category-title">Archive for <?php the_time('F Y'); ?></h1>
- <?php /* If this is a tag archive */ } elseif (is_archive('the_tag')) {
- if ($all_the_tags);
- $all_the_tags = get_the_tags();
- foreach($all_the_tags as $this_tag) {
- if ($this_tag->name == "test1" ) {
- echo '<div id="cat-title-logo" ><img alt="test1" src="' . get_bloginfo('template_url') . '/imgs/logo-test1.jpg"/></div><h1 class="category-title">';
- } else if ($this_tag->name == "test2" ) {
- echo '<div id="cat-title-logo" ><img alt="test2" src="' . get_bloginfo('template_url') . '/imgs/logo-test2.jpg"/></div><h1 class="category-title">';
- } else {
- // it's neither, do nothing
- echo '<h1 class="category-title">
- <!-- not tagged as one or the other -->';
- }
- }
- single_tag_title('Tag: ');?>
- </h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement