<?php
$dateformat = mom_option('date_format');
$DPS = get_post_meta(get_the_ID(), 'mom_blog_ps', true);
?>
<div class="entry-post-meta">
	<?php if(mom_option('post_head_author') != 0) { ?>
    <div class="author-link"><?php _e('Posted by ', 'framework'); ?>
    <?php
    $author_link = get_author_posts_url( get_the_author_meta( 'ID' ) );
    if (class_exists('userpro_api')) {
    global $userpro;
    $author_link = $userpro->permalink(get_the_author_meta( 'ID' ));
    }
    ?>
    <a itemprop="author" href="<?php echo $author_link; ?>" rel="author"><?php echo get_the_author() ?></a>
    </div>
    <?php } ?>
    <?php if(mom_option('post_head_date') != 0) { ?>
    <div><?php _e('Date: ', 'framework'); ?><time itemprop="datePublished" class="entry-date updated" datetime="<?php the_time('c'); ?>"><?php the_time($dateformat); ?></time></div>
    <?php } ?>
    <?php if(mom_option('post_head_cat') != 0) { ?>
    <div class="entry-cat"><?php _e('in: ', 'framework') ?><?php the_category(', ') ?></div>
    <?php } ?>
    <?php if(mom_option('post_head_commetns') != 0) { ?>
    <div class="comments-link"><a href="#comments"><?php comments_number(__( 'Leave a comment', 'framework' ), __( '(1) Comment', 'framework' ),__( '(%) Comments', 'framework' )); ?></a></div>
    <?php } ?>
    <?php if(mom_option('post_head_views') != 0) { ?>
    <div class="post-views"><?php echo getPostViews(get_the_ID()); ?></div>
    <?php } ?>
    <?php //edit_post_link( __( 'Edit', 'framework' ), '<div class="edit-link">', '</div>' ); ?>
</div>
<div class="top-share-icons">
<?php 
if(mom_option('share_position') == 'top' || mom_option('share_position') == 'both') {
if(mom_option('post_sharee')) {
if ($DPS != 1) { mom_posts_share(get_the_ID(),get_permalink()); }
} }
?>
</div>