Guest User

Untitled

a guest
Jun 13th, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. ZeroBin is a minimalist, opensource online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES. More information on the project page.
  2. ▶ Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.
  3. ZeroBin
  4. Because ignorance is bliss
  5. Alpha 0.15
  6.  
  7. NewClone This document will expire in 12 months.
  8. <div id="archive" class="posts box">
  9.  
  10. <?php wp_reset_query(); ?>
  11.  
  12. <?php /* If this is a category archive */ if (is_category()) { ?>
  13. <h1 class="title archiveTitle"><?php single_cat_title(); ?></h1>
  14. <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  15. <h1 class="title archiveTitle"><?php _e('Archive for','wpzoom');?>: <?php single_tag_title(); ?></h1>
  16. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  17. <h1 class="title archiveTitle"><?php _e('Archive for','wpzoom');?> <?php the_time('F jS, Y'); ?></h1>
  18. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  19. <h1 class="title archiveTitle"><?php _e('Archive for','wpzoom');?> <?php the_time('F, Y'); ?></h1>
  20. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  21. <h1 class="title archiveTitle"><?php _e('Archive for','wpzoom');?> <?php the_time('Y'); ?></h1>
  22. <?php /* If this is an author archive */ } elseif (is_search()) { ?>
  23. <h1 class="title archiveTitle"><?php _e('Search Results for','wpzoom');?>: <?php the_search_query(); ?></h1>
  24. <?php /* If this is an author archive */ }
  25. elseif (is_author()) {
  26.  
  27. if(get_query_var('author_name')) :
  28. $curauth = get_userdatabylogin(get_query_var('author_name'));
  29. else :
  30. $curauth = get_userdata(get_query_var('author'));
  31. endif;
  32. ?>
  33. <h1 class="title archiveTitle"><?php _e('Author Archive','wpzoom');?>: <a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?></a></h1>
  34. <?php /* If this is a paged archive */ } ?>
  35. <?php if ( is_home() ) { query_posts($query_string . '&cat=-208'); } ?>
  36. <?php if ( have_posts() ) : while ( have_posts() ) : the_post();
  37. $i++;
  38. ?>
  39.  
  40. <div class="post">
  41.  
  42. <div class="postmetadata">
  43.  
  44. <?php unset($img);
  45. if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
  46. $thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
  47. $img = $thumbURL[0];
  48. }
  49.  
  50. else {
  51. unset($img);
  52. if ($wpzoom_cf_use == 'Yes')
  53. {
  54. $img = get_post_meta($post->ID, $wpzoom_cf_photo, true);
  55. }
  56. else
  57. {
  58. if (!$img)
  59. {
  60. $img = catch_that_image($post->ID);
  61. }
  62. }
  63. }
  64.  
  65. if ($img){
  66. $img = wpzoom_wpmu($img);
  67. ?>
  68. <div class="cover"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;h=100&amp;w=160&amp;zc=1" alt="<?php the_title(); ?>" /></a></div><?php } ?>
  69.  
  70. <ul>
  71. <li class="calendar"><?php the_time("$dateformat"); ?></li>
  72. </ul>
  73.  
  74. </div>
  75.  
  76. <div class="postcontent">
  77.  
  78. <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  79. <?php the_excerpt(); ?>
  80. <p class="more"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="readmore" rel="nofollow"><?php _e('continue reading &raquo;','wpzoom');?></a> <?php edit_post_link( __('Edit this post','wpzoom'), ' | ', ''); ?></p>
  81.  
  82. </div>
  83.  
  84. <div class="cleaner">&nbsp;</div>
  85. <div class="sep">&nbsp;</div>
  86.  
  87. </div>
  88.  
  89. <?php endwhile; // ?>
  90.  
  91. <div class="navigation"><p class="more"><?php next_posts_link(__('&laquo; Older Entries','wpzoom')); ?><?php previous_posts_link(__('Newer Entries &raquo;','wpzoom')); ?></p></div>
  92.  
  93. <?php else : ?>
  94.  
  95. <div class="post">
  96. <p class="title"><?php _e('There are no posts in this category','wpzoom');?></p>
  97. </div>
  98.  
  99. <?php endif; ?>
  100.  
  101. </div><!-- end #archive -->
  102.  
  103. <div class="cleaner">&nbsp;</div>
Advertisement
Add Comment
Please, Sign In to add comment