Viewing File: /home/maglabs/racinepara/wp-content/themes/medilazar/template-parts/post/content.php

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

        <?php medilazar_post_thumbnail(); ?>

        <?php if (!is_single()) {
            echo '<div class="post-content">';
        } ?>

        <header class="entry-header">
            <?php
            if ('post' === get_post_type()) : ?>
                <div class="entry-meta">
                    <?php
                    medilazar_entry_meta(); ?>
                </div><!-- .entry-meta -->
            <?php endif;

            if (is_single()) {
                the_title('<h1 class="entry-title">', '</h1>');
            } elseif (is_front_page() && is_home()) {
                the_title('<h3 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h3>');
            } else {
                the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
            } ?>

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

        <div class="entry-content">
            <?php
            the_content(
                sprintf(
                /* translators: %s: Post title. */
                    __('<i class="opal-icon-plus" aria-hidden="true"></i><span>Read more</span><span class="screen-reader-text"> "%s"</span>', 'medilazar'),
                    get_the_title()
                )
            );

            wp_link_pages(array(
                'before'      => '<div class="page-links">' . esc_html__('Pages:', 'medilazar'),
                'after'       => '</div>',
                'link_before' => '<span class="page-number">',
                'link_after'  => '</span>',
            ));

            ?>
        </div><!-- .entry-content -->

        <?php if (is_single()) {
            medilazar_entry_footer();
        } else {
            echo '</div><!-- #Post-content -## -->';
        } ?>

    </div> <!-- #Post-inner -## -->
</article><!-- #post-<?php the_ID(); ?> -->
Back to Directory File Manager