<?php global $shapebootstrap_options; ?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    <header class="entry-header">
        <span class="post-format">
            <i class="fa fa-quote-left"></i>
        </span>

        <h2 class="entry-title">
            <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
            <?php if ( is_sticky() && is_home() && ! is_paged() ) { ?>
            <sup class="featured-post"><?php _e( 'Sticky', 'shapebootstrap' ) ?></sup>
            <?php } ?>
        </h2> <!-- //.entry-title -->

        <?php get_template_part( 'post-format/entry-meta' ); ?> 

    </header> <!--/.entry-header -->


    <?php if ( rwmb_meta('thm_qoute') ) { ?>
    <div class="entry-qoute">
        <blockquote>
            <p><?php echo rwmb_meta( 'thm_qoute' ); ?></p>
            <small><?php echo rwmb_meta( 'thm_qoute_author' ); ?></small>
        </blockquote>
    </div>
    <?php } ?>

    <div class="entry-summary">
        <?php if ( is_single() ) {
            the_content();
        } else {
            the_excerpt();  
        } 
        wp_link_pages( array(
            'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'shapebootstrap' ) . '</span>',
            'after'       => '</div>',
            'link_before' => '<span>',
            'link_after'  => '</span>',
        ) );

        ?>
    </div> <!-- //.entry-summary -->
    
    <?php
     if (isset($shapebootstrap_options['blog-social']) && $shapebootstrap_options['blog-social'] ){
        if(is_single()) {
            get_template_part( 'post-format/social-buttons' );
        } else {
            get_template_part( 'post-format/social-buttons' ); 
        } 
    }
    ?>

</article> <!--/#post -->