%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/www/boniface/blog/wp-content/themes/cali/template-parts/
Upload File :
Create Path :
Current File : /home/ugotscom/www/boniface/blog/wp-content/themes/cali/template-parts/content-single.php

<?php
/**
 * Template part for displaying posts
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cali
 */

$hide_thumb   = get_theme_mod( 'cali_single_hide_thumb', 0 );
$hide_cats    = get_theme_mod( 'cali_single_hide_cats', 0 );
$hide_meta	  = get_theme_mod( 'cali_single_hide_meta', 0 );
$headerLayout = get_theme_mod( 'cali_single_header_layout', 'feat-img--top' );
$titleAlignment = get_theme_mod( 'cali_single_title_alignment', 'post-title--align-left' );


if ( $hide_thumb ) :
    $headerLayout = 'post-no-feat-img';
endif;

$postClasses = array(
    $headerLayout,
    $titleAlignment,
);
?>

<div class="single-post-layout">
    <article id="post-<?php the_ID(); ?>" <?php post_class($postClasses); ?>>

        <?php
        if ( ($headerLayout == 'feat-img--top') && !$hide_thumb ) :
            cali_post_thumbnail();
        endif; 
        ?>

        <header class="entry-header">

            <?php if ( !$hide_cats ) : ?>
            <div class="cat-links ca-category">
                <?php cali_show_cats(); ?>
            </div>
            <?php endif; ?>

            <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

            <?php if ( !$hide_meta ) : ?>
            <div class="entry-meta">
                <?php cali_posted_on(); ?>
            </div>
            <?php endif; ?>

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

        <?php
        if ( ($headerLayout == 'post-title--top') && !$hide_thumb ) :
            cali_post_thumbnail();
        endif; 
        ?>

        <div class="entry-content">
            <?php
                the_content( sprintf(
                    wp_kses(
                        /* translators: %s: Name of current post. Only visible to screen readers */
                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cali' ),
                        array(
                            'span' => array(
                                'class' => array(),
                            ),
                        )
                    ),
                    get_the_title()
                ) );

                wp_link_pages( array(
                    'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cali' ),
                    'after'  => '</div>',
                ) );
            ?>
        </div><!-- .entry-content -->
        
        <footer class="entry-footer clearfix">
            <?php
            if (has_tag()) : ?>
                <ul class="single-post_tags">
                    <?php the_tags( '<li>', '</li><li>', '</li>' ); ?>
                </ul>
            <?php
            endif;
            ?>
        </footer><!-- .entry-footer -->
    </article>
</div>

Zerion Mini Shell 1.0