lightspeeddevelopment/lsx

View on GitHub
partials/content-post.php

Summary

Maintainability
A
2 hrs
Test Coverage
<?php
/**
 * Template used to display post content on single pages.
 *
 * @package lsx
 */

?>

<?php lsx_entry_before(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <?php lsx_entry_top(); ?>

    <div class="entry-content">
        <?php
            the_content();

            wp_link_pages( array(
                'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
                'after'       => '</div></div>',
                'link_before' => '<span>',
                'link_after'  => '</span>',
            ) );
        ?>
    </div><!-- .entry-content -->

    <footer class="footer-meta clearfix">
        <?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
            <div class="post-tags-wrapper">
                <?php lsx_content_post_tags(); ?>

                <?php
                if ( class_exists( 'LSX_Sharing' ) ) {
                    lsx_content_sharing();
                } else {
                    if ( function_exists( 'sharing_display' ) ) {
                        sharing_display( '', true );
                    }

                    if ( class_exists( 'Jetpack_Likes' ) ) {
                        $custom_likes = new Jetpack_Likes();
                        echo wp_kses_post( $custom_likes->post_likes( '' ) );
                    }
                }
                ?>
        <?php endif ?>
    </footer><!-- .footer-meta -->

    <?php lsx_entry_bottom(); ?>

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

<?php
lsx_entry_after();