Advertisement
alchymyth

bling archive

May 27th, 2011
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. <?php
  2.  
  3. get_header();
  4.  
  5. ?>
  6.  
  7. <div id="show_hide_content_button"></div>
  8.  
  9. <div id="standard_page">
  10.  
  11. <?php if( is_category() ) : ?>
  12.  
  13. <h1 class="title"><?php single_cat_title(); ?></h1>
  14.  
  15. <?php elseif( is_archive() ) : ?>
  16.  
  17. <?php if ( have_posts() ) the_post();
  18. ?>
  19.  
  20. <h1 class="title">
  21.  
  22. <?php if ( is_day() ) : ?>
  23. Daily Archives: <?php echo get_the_date(); ?>
  24. <?php elseif ( is_month() ) : ?>
  25. Monthly Archives: <?php echo get_the_date( 'F Y' ); ?>
  26. <?php elseif ( is_year() ) : ?>
  27. Yearly Archives: <?php echo get_the_date( 'Y' ) ?>
  28. <?php else : ?>
  29. Blog Archives
  30. <?php endif; ?>
  31.  
  32. </h1>
  33.  
  34. <?php rewind_posts(); endif; ?>
  35.  
  36.  
  37. <div id="standard_body">
  38.  
  39. <?php
  40.  
  41. if (have_posts()) : while(have_posts()) : the_post();
  42.  
  43. echo '<div class="blog_post">';
  44.  
  45. echo '<a href="' . get_permalink() . '"><h1>' . the_title('','',false) . '</h1></a>';
  46.  
  47. $image_id = get_post_thumbnail_id();
  48. $image_url = wp_get_attachment_image_src($image_id, 'full');
  49.  
  50. if (has_post_thumbnail()) :
  51.  
  52. ?>
  53.  
  54. <div id="portfolio_page_image"><a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&amp;w=690&amp;h=350&amp;zc=1&amp;q=100" alt="" /></a></div>
  55.  
  56. <?php
  57.  
  58. endif;
  59.  
  60. ?>
  61.  
  62. <div id="portfolio_page_body">
  63.  
  64. <?php
  65.  
  66. if(!empty($post->post_excerpt)) {
  67.  
  68. the_excerpt(get_option_tree('setting_rm','',false));
  69.  
  70. } else {
  71.  
  72. the_content(get_option_tree('setting_rm','',false));
  73.  
  74. }
  75.  
  76. ?>
  77.  
  78. </div>
  79.  
  80. <div id="portfolio_page_info">
  81.  
  82. <h3><?php echo get_option_tree('pp_info_title'); ?></h3>
  83.  
  84. <ul>
  85.  
  86. <li id="portfolio_page_date"><?php the_time('l, F j, Y'); ?></li>
  87. <li id="portfolio_page_author"><?php echo get_option_tree('pp_author')." <strong>"; the_author(); ?></strong></li>
  88. <?php if ($post_type != "gallery") : ?>
  89. <li id="portfolio_page_cat"><?php echo the_category(','); ?></li>
  90. <?php if (has_tag()) : ?>
  91. <li id="portfolio_page_tags"><?php echo the_tags('',', ',''); ?></li>
  92. <?php endif; ?>
  93. <li id="portfolio_page_comments"><?php echo comments_popup_link(get_option_tree('setting_ncm','',false),get_option_tree('setting_ocm','',false), "% ".get_option_tree('setting_ncmmto','',false), 'comment_counter', get_option_tree('setting_ncm','',false)); ?></li>
  94. <?php endif; ?>
  95. <?php locate_template( array( 'sidebar2.php' ), true ) ?>
  96.  
  97.  
  98. </ul>
  99.  
  100. </div>
  101.  
  102. <div class="clear"></div>
  103.  
  104. </div>
  105.  
  106. <?php
  107.  
  108. endwhile; endif;
  109.  
  110. ?>
  111.  
  112. <div id="post_links">
  113.  
  114. <div id="post_links_right">
  115.  
  116. <?php
  117.  
  118. if (get_next_posts_link()) {
  119.  
  120. next_posts_link(get_option_tree('setting_pgnnp','',false));
  121.  
  122. } else {
  123.  
  124. echo '<span class="no_post">' . get_option_tree('setting_pgnnnp','',false). '</span>';
  125.  
  126. }
  127.  
  128. ?>
  129.  
  130. </div>
  131.  
  132. <div id="post_links_left">
  133.  
  134. <?php
  135.  
  136. if (get_previous_posts_link()) {
  137.  
  138. previous_posts_link(get_option_tree('setting_pgnpp','',false));
  139.  
  140. } else {
  141.  
  142. echo '<span class="no_post">' . get_option_tree('setting_pgnnpp','',false) . '</span>';
  143.  
  144. }
  145.  
  146. ?>
  147.  
  148. </div>
  149.  
  150. </div>
  151.  
  152. <div class="clear"></div>
  153.  
  154. </div>
  155.  
  156. </div>
  157.  
  158. <?php
  159.  
  160. get_footer();
  161.  
  162. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement