<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package bestel
 */
?>
<div class="post-meta posttype-<?php echo get_post_format() ?>">
    <div class="post-meta-date"><span><?php echo get_the_date( 'd' );?></span><?php echo get_the_date( 'F' );?></div>
    <div class="post-meta-author"><i class="icon-user"></i><?php echo esc_html__('by', 'bestel'); ?>  <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) , get_the_author_meta( 'user_nicename' ) ); ?>"><?php printf(esc_html__('%s', 'bestel'), get_the_author())?></a></div>
    <?php
	 if (get_comments_number() == 0) {
        $comment_text='';
     } elseif (get_comments_number() == 1) {
         $comment_text=esc_html__('Comment','bestel');
     } else {
         $comment_text=esc_html__("Comments","bestel");
     }
	 if($comment_text!=''){?>
    <div class="post-meta-reviews"><i class="icon-completed-tasks"></i><a href="<?php esc_attr(comments_link(),'bestel')?>">
	<?php printf(esc_html__('%s %s', 'bestel'), get_comments_number(),$comment_text)?>
	</a></div>
    <?php } ?>
    <div class="post-meta-social ml-auto">
    <?php if(bestel_get_option('bestel-show-social-inblog')!='off' && bestel_get_option('bestel-show-social-inblog')!=0){ ?>
        <?php if(bestel_get_option('bestel-show-social-inblog-facebook-icons')!='off' && bestel_get_option('bestel-show-social-inblog-facebook-icons')!='0'){ ?>
            <a onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" href="//www.facebook.com/sharer/sharer.php?u=<?php echo esc_url( get_permalink()) ?>"><i class="icon-facebook-logo"></i></a>
        <?php } ?>
        <?php if(bestel_get_option('bestel-show-social-inblog-twitter-icons')!='off' && bestel_get_option('bestel-show-social-inblog-twitter-icons')!='0'){ ?>
            <a onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" href="//twitter.com/home?status=<?php echo esc_html( get_the_title() ) ?> - <?php echo esc_url( get_permalink()) ?>"><i class="icon-twitter-logo1"></i></a>
        <?php } ?>
        <?php if(bestel_get_option('bestel-show-social-inblog-google-icons')!='off' && bestel_get_option('bestel-show-social-inblog-google-icons')!='0'){ ?>
            <a onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" href="//plus.google.com/share?url=<?php echo esc_url( get_permalink()) ?>"><i class="icon-google-logo"></i></a>
        <?php } ?>
    <?php } ?>
    </div>
</div>


<h2 class="post-title"><a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a></h2>

						