| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/template-parts/ |
Upload File : |
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package omexo
*/
$omexo_option = get_option('omexo_opt');
$post_date = omexo_array_get($omexo_option, 'post-date') ? $omexo_option['post-date'] : '';
$post_author = omexo_array_get($omexo_option, 'post-author') ? $omexo_option['post-author'] : '';
$post_cat = omexo_array_get($omexo_option, 'post-cat') ? $omexo_option['post-cat'] : '';
$post_tag = omexo_array_get($omexo_option, 'post-tag') ? $omexo_option['post-tag'] : '';
$post_comnt = omexo_array_get($omexo_option, 'post-comnt') ? $omexo_option['post-comnt'] : '';
$blog_style = omexo_array_get($omexo_option, 'blog-style') ? $omexo_option['blog-style'] : '';
$grid_column = omexo_array_get($omexo_option, 'column-number') ? $omexo_option['column-number'] : ''
?>
<?php if ($blog_style == 'grid') : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class($grid_column); ?>>
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php endif; ?>
<div class="blog-posts">
<?php if (has_post_thumbnail()) : ?>
<div class="blog-post-thumb">
<?php the_post_thumbnail('omexo-blog-thumb'); ?>
</div>
<?php endif; ?>
<header class="entry-header">
<?php
if ('post' === get_post_type()) : ?>
<div class="blog-posts-meta">
<?php if (class_exists('Redux_Framework_Plugin')) : ?>
<ul class="no-list-style">
<?php if ($post_author == true) : ?>
<li><?php omexo_posted_by(); ?></li>
<?php endif; ?>
<?php if ($post_date == true) : ?>
<li><?php omexo_posted_on(); ?></li>
<?php endif; ?>
<?php if (get_comments_number() != 0) :
if ($post_comnt == true) : ?>
<li><?php omexo_comment_count(); ?></li>
<?php
endif;
endif;
?>
<?php if ($post_cat == true) { ?><li><?php omexo_post_categories(); ?></li><?php } ?>
</ul>
<?php else : ?>
<ul class="no-list-style">
<li><?php omexo_posted_by(); ?></li>
<li><?php omexo_posted_on(); ?></li>
<?php if (get_comments_number() != 0) : ?>
<li><?php omexo_comment_count(); ?></li>
<?php endif; ?>
<li><?php omexo_post_categories(); ?></li>
</ul>
<?php endif; ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php
if (!is_singular()) :
the_title('<h3 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h3>');
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if (is_single()) {
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>', 'omexo'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
));
wp_link_pages(array(
'before' => '<div class="page-links">' . esc_html__('Pages:', 'omexo'),
'after' => '</div>',
));
} else {
the_excerpt();
echo '<div class="omexo-post-read-more"><a href="' . esc_url(get_permalink()) . '" class="omexo-btn fill-btn">' . esc_html__('Read more', 'omexo') . '</a></div>';
}
?>
</div><!-- .entry-content -->
<?php if (is_single() && 'post' === get_post_type()) : ?>
<?php if ($post_tag == true) : ?>
<div class="entry-footer">
<div class="post-tags">
<?php omexo_post_tags(); ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->