Advertisement
Guest User

GP single

a guest
Jun 4th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage MagUp_Theme
  5. */
  6.  
  7. get_header();
  8. ?>
  9. <div id="content_frame">
  10. <div id="content" class="narrowcolumn" role="main">
  11.  
  12. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13.  
  14. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  15. <h2><?php the_title(); ?></h2>
  16. <div class="postinfo">
  17. <?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.','magup'), get_the_time(__('l, F jS, Y','magup')), get_the_time(), get_the_category_list(', ')); ?>
  18. </div>
  19. <div class="entry">
  20.  
  21. <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;','magup') . '</p>'); ?>
  22. <?php wp_link_pages( 'after= &next_or_number=next
  23. &previouspagelink=Previous
  24. &nextpagelink= Next'); ?>
  25.  
  26. <div class="clear"></div>
  27.  
  28. <div class="clear"></div>
  29. <div id="addInfo">
  30. <?php the_tags( '<div class="addInfo tags"><h2>' . __('Tags:','magup') . '</h2> ', ' ', '</div>'); ?>
  31.  
  32.  
  33.  
  34.  
  35. <div class="addInfo author">
  36. <h2>About the author</h2>
  37. <?php
  38. if (function_exists('get_cimyFieldValue')) $image_url = get_cimyFieldValue(get_the_author_ID(), 'AVATAR');
  39. if (isset($image_url) && $image_url != NULL){
  40. $thumb_url = cimy_get_thumb_path($image_url);
  41. echo '<img src=" '. $thumb_url .' " class="author-thumb" alt="'.get_the_author().'" />';
  42. }
  43. echo '<p><strong>'.get_the_author().'</strong></p>';
  44. echo '<p>'.the_author_meta( 'description' ).'</p>';
  45. ?>
  46. </div>
  47. <br clear="both" />
  48. </div>
  49.  
  50.  
  51. </div>
  52. </div>
  53.  
  54. <?php comments_template(); ?>
  55.  
  56. <?php endwhile; else: ?>
  57.  
  58. <p><?php _e('Sorry, no posts matched your criteria.','magup'); ?></p>
  59.  
  60. <?php endif; ?>
  61. </div>
  62. <?php get_sidebar(); ?>
  63. <div class="clear"></div>
  64. </div>
  65. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement