Guest User

single.php site Angela Antoneli

a guest
Nov 2nd, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. <?php get_header();?>
  2. <!-- wrapper div start here -->
  3. <div class="wrapper">
  4. <!-- main div start here -->
  5. <div id="page-content">
  6. <?php
  7. $socialOptions = get_option("bpanel_generalSettings");
  8. if(have_posts()):
  9. while(have_posts()):
  10. the_post();
  11. $post_img = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blogImage', false);?>
  12. <div id="post-<?php the_ID();?>" <?php post_class('blog-post');?>>
  13. <div class="post-date">
  14. <span><?php echo get_the_date('d');?></span><h4><?php echo get_the_date('M');?></h4><span><?php echo get_the_date('Y');?></span>
  15. </div>
  16. <!-- bloginfo-right div start here -->
  17. <div class="post-content">
  18. <!-- post-content-1 div start here -->
  19. <h1><?php the_title();?></h1>
  20. <p class="post-meta"><?php _e('by','vm');?> <span><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a>, </span> <?php _e('in','vm');?> <span><?php the_category(', ');?> </span><?php comments_popup_link(__('(No Comments)','vm'), __('(1 Comment)','vm'), __('(% Comments)','vm'));?></p>
  21. <?php if($post_img != "" and $post_img[1] == '560' and $post_img[2] == '220'):?>
  22. <img src="<?php echo $post_img[0];?>" alt="<?php the_title();?>" title="<?php the_title();?>" />
  23. <?php else:
  24. if(has_post_thumbnail()):
  25. $attr = array('class' => 'alignleft', 'title' => get_the_title());
  26. the_post_thumbnail('thumbnail', $attr);
  27. endif;
  28. endif;
  29. the_content();
  30. wp_link_pages(array('before' => '<div class="page-link"><strong>'.__('Pages:','vm').'</strong> ', 'after' => '</div>', 'next_or_number' => 'number'));
  31. edit_post_link(__('Edit This','vm'), '<p>', '</p>');?>
  32.  
  33. <?php if($socialOptions['bpanel_share_button']=='Yes'):?>
  34. <ul id="social-buttons">
  35. <li><g:plusone size="medium" href="<?php the_permalink();?>"></g:plusone></li>
  36. <li><a href="<?php echo "https://twitter.com/share";?>" class="twitter-share-button" data-url="<?php the_permalink();?>" data-text="<?php the_title();?>">Tweet</a></li>
  37. <li><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink();?>&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:87px; height:21px;" allowTransparency="true"></iframe></li>
  38. </ul>
  39. <?php endif;?>
  40.  
  41. <?php if(get_the_author_meta('description')):?>
  42. <!-- post-author div End here -->
  43. <div class="post-author">
  44. <h2><span class="title"><?php _e('About the Author','vm');?></span><span class="hr-line1"></span></h2>
  45. <div class="post-author-details">
  46. <?php echo get_avatar(get_the_author_meta('user_email'),$size='65');?>
  47. <span><?php echo get_the_author();?></span>
  48. <p><?php the_author_meta('description');?></p>
  49. <div id="author-link">
  50. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author">
  51. <?php printf(__('View all posts by %s &rarr;','vm'), get_the_author());?>
  52. </a>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- post-author div End here -->
  57. <?php endif;?>
  58.  
  59. <?php comments_template();?>
  60. </div>
  61. </div>
  62. <!-- post-content div ends here -->
  63. <?php endwhile;
  64. endif;?>
  65. </div>
  66. <!-- main div End here -->
  67. <?php get_sidebar();?>
  68. </div>
  69. <!-- wrapper div End here -->
  70. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment