File "content.php"

Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/themes/cyarb/template-parts/content.php
File size: 2.67 KB
MIME-type: text/x-php
Charset: utf-8

<?php global $cyarb_opt;
/**
 * @package cyarb
 */

if(isset( $cyarb_opt['cyarb_blog_sidebar'])) {
   if( $cyarb_opt['cyarb_blog_sidebar'] == 'cyarb_without_sidebar' ):
        $thumb_size = 'full';
   else:
        $thumb_size = 'cyarb_standard_card_two';
   endif;
} else {
    $thumb_size = 'cyarb_standard_card_two';
}

$count_tag          = !empty($cyarb_opt['count_tag']) ? $cyarb_opt['count_tag'] : 1;
?>

<div <?php post_class(); ?>>
    <?php if(has_post_thumbnail()) : ?>
        <div class="single-blog-post">
            <?php if(has_post_thumbnail()) { ?>
                <div class="image">
                    <a href="<?php the_permalink() ?>" class="d-block">
                        <img src="<?php the_post_thumbnail_url( $thumb_size ) ?>" alt="<?php the_title_attribute(); ?>">
                    </a>
                </div>
            <?php } ?>

            <div class="content">

                <a href="<?php the_permalink(); ?>" class="link-btn"><i class="lni lni-chevron-right"></i></a>
                <?php 
                    $enable_post_meta 	= isset( $cyarb_opt['is_post_meta']) ? $cyarb_opt['is_post_meta'] : true;
                
                if( $enable_post_meta == '1' ) { ?>
                    <ul class="meta">
                        <li><a href="<?php the_permalink() ?>"><i class="lni lni-calendar"></i><?php echo esc_html(get_the_date('d F, Y')) ?></a></li>
                        <li><i class="lni lni-comments"></i> <?php comments_number(); ?></li>
                    </ul>
                <?php } ?>
                <?php if( get_the_title() != '' ): ?>
                    <h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
                <?php endif; ?>
                <?php the_excerpt(); ?>
            </div>
        </div>
    <?php else: ?>
        <div class="single-blog-post">
            <div class="content post-content-two">
                <?php 
                    $enable_post_meta 	= isset( $cyarb_opt['is_post_meta']) ? $cyarb_opt['is_post_meta'] : true;
                
                if( $enable_post_meta == '1' ) { ?>
                    <ul class="meta">
                        <li><a href="<?php the_permalink() ?>"><i class="lni lni-calendar"></i><?php echo esc_html(get_the_date('d F, Y')) ?></a></li>
                        <li><i class="lni lni-comments"></i> <?php comments_number(); ?></li>
                    </ul>
                <?php } ?>
                <?php if( get_the_title() != '' ): ?>
                    <h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
                <?php endif; ?>
                <?php the_excerpt(); ?>
            </div>
        </div>
    <?php endif; ?>
</div>