Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();?>
- <!-- wrapper div start here -->
- <div class="wrapper">
- <!-- main div start here -->
- <div id="page-content">
- <?php
- $socialOptions = get_option("bpanel_generalSettings");
- if(have_posts()):
- while(have_posts()):
- the_post();
- $post_img = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blogImage', false);?>
- <div id="post-<?php the_ID();?>" <?php post_class('blog-post');?>>
- <div class="post-date">
- <span><?php echo get_the_date('d');?></span><h4><?php echo get_the_date('M');?></h4><span><?php echo get_the_date('Y');?></span>
- </div>
- <!-- bloginfo-right div start here -->
- <div class="post-content">
- <!-- post-content-1 div start here -->
- <h1><?php the_title();?></h1>
- <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>
- <?php if($post_img != "" and $post_img[1] == '560' and $post_img[2] == '220'):?>
- <img src="<?php echo $post_img[0];?>" alt="<?php the_title();?>" title="<?php the_title();?>" />
- <?php else:
- if(has_post_thumbnail()):
- $attr = array('class' => 'alignleft', 'title' => get_the_title());
- the_post_thumbnail('thumbnail', $attr);
- endif;
- endif;
- the_content();
- wp_link_pages(array('before' => '<div class="page-link"><strong>'.__('Pages:','vm').'</strong> ', 'after' => '</div>', 'next_or_number' => 'number'));
- edit_post_link(__('Edit This','vm'), '<p>', '</p>');?>
- <?php if($socialOptions['bpanel_share_button']=='Yes'):?>
- <ul id="social-buttons">
- <li><g:plusone size="medium" href="<?php the_permalink();?>"></g:plusone></li>
- <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>
- <li><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink();?>&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:87px; height:21px;" allowTransparency="true"></iframe></li>
- </ul>
- <?php endif;?>
- <?php if(get_the_author_meta('description')):?>
- <!-- post-author div End here -->
- <div class="post-author">
- <h2><span class="title"><?php _e('About the Author','vm');?></span><span class="hr-line1"></span></h2>
- <div class="post-author-details">
- <?php echo get_avatar(get_the_author_meta('user_email'),$size='65');?>
- <span><?php echo get_the_author();?></span>
- <p><?php the_author_meta('description');?></p>
- <div id="author-link">
- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author">
- <?php printf(__('View all posts by %s →','vm'), get_the_author());?>
- </a>
- </div>
- </div>
- </div>
- <!-- post-author div End here -->
- <?php endif;?>
- <?php comments_template();?>
- </div>
- </div>
- <!-- post-content div ends here -->
- <?php endwhile;
- endif;?>
- </div>
- <!-- main div End here -->
- <?php get_sidebar();?>
- </div>
- <!-- wrapper div End here -->
- <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment