Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include ('header-posts.php'); ?>
- <div id="post">
- <div id="sidebar">
- Browse by Category
- <div id="catlist">
- <ul><li><?php wp_list_categories('title_li='); ?></li></ul>
- </div>
- Browse by Client
- <br><br>
- <select name="tag-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
- <option value="#">Select</option>
- <?php dropdown_tag_cloud('number=0&order=asc'); ?>
- </select>
- <br><br><br><br>
- <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/gotaproject.jpg" class="ro" /></a>
- </div>
- <div id="content">
- <?php if (have_posts()) : ?>
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <h3><?php single_cat_title(); ?></h3>
- <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
- <h3>Posts tagged <?php single_tag_title(); ?></h3>
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <h3>Archive: <?php the_time('F jS, Y'); ?></h3>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <h3>Archive: <?php the_time('F, Y'); ?></h3>
- <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
- <h3>Archive: <?php the_time('Y'); ?></h3>
- <?php /* If this is an author archive */ } elseif (is_author()) { ?>
- <h3>Author Archive</h3>
- <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
- <h3>Blog Archives</h3>
- <?php } ?>
- <?php echo category_description(); ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="result">
- <div class="thumbnail">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <div class="thumbtitle"><?php the_tags(); ?></div>
- <?php //get thumnbnail (custom field) ?>
- <?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
- <img src="<?php echo $image; ?>" title="<?php the_title(); ?>" />
- <?php the_post_thumbnail(); ?>
- </a>
- </div>
- </div>
- <?php endwhile; ?>
- <?php else :
- if ( is_category() ) { // If this is a category archive
- printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</ 2>", single_cat_title('',false));
- } else if ( is_date() ) { // If this is a date archive
- echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
- } else if ( is_author() ) { // If this is a category archive
- $userdata = get_userdatabylogin(get_query_var('author_name'));
- printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
- } else {
- echo("<h2 class='center'>No posts found.</h2>");
- }
- get_search_form();
- endif;
- ?>
- </div>
- <div id="nav">
- <div id="older"><?php previous_posts_link('←') ?></div>
- <div id="newer"><?php next_posts_link('→') ?></div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement