Advertisement
Guest User

Untitled

a guest
Oct 21st, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="outer">
  3. <div id="container">
  4. <div id="search">
  5. <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
  6. <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="txtField" />
  7. <input type="submit" id="searchsubmit" class="btnSearch" value="Find It &raquo;" />
  8. </form>
  9. </div>
  10. <div id="title">
  11. <h2><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h2>
  12. <?php bloginfo('description'); ?></div>
  13. </div>
  14. <div id="content">
  15. <div class="col01">
  16. <?php
  17. // If showing just 5 gadgets per page
  18. if (is_category('1perpage')) {
  19.  
  20. // Get the query URL used to show posts from a certain category
  21. // based on the URL used by the user.
  22. global $query_string;
  23.  
  24. // Show only 5 posts per page (rather than 10 by default) for anything
  25. // in this category, but respect all pagination and category selection.
  26. query_posts($query_string . '&posts_per_page=1');
  27. }
  28. ?>
  29.  
  30. <?
  31.  
  32. <?php if (have_posts()) : ?>
  33. <?php while (have_posts()) : the_post(); ?>
  34. <div class="post" id="post-<?php the_ID(); ?>">
  35. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  36. <div class="post-inner">
  37. <div class="date-tab"><span class="month"><?php the_time('F') ?></span><span class="day"><?php the_time('j') ?></span></div>
  38. <div class="thumbnail"><?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?></div>
  39. <?php the_content('Read the rest of this entry &raquo;'); ?>
  40. </div>
  41. <div class="meta">posted under <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></div>
  42. </div>
  43. <?php endwhile; ?>
  44. <div class="post-nav"><span class="previous"><?php next_posts_link('&laquo; Older Entries') ?></span><span class="next"><?php previous_posts_link('Newer Entries &raquo;') ?></span></div>
  45. <?php else : ?>
  46. <div class="no-results">
  47. <h3>Not Found</h3>
  48. <p>Sorry, but you are looking for something that isn't here.</p>
  49. </div>
  50. <?php endif; ?>
  51. </div>
  52. <?php include ('columns.php'); ?>
  53. <br clear="all" />
  54. <?php get_sidebar(); ?></div>
  55. <?php get_footer(); ?>
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement