| Server IP : 34.67.85.211 / Your IP : 216.73.217.52 Web Server : Apache System : Linux wordpress-1-vm 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 User : root ( 0) PHP Version : 7.4.9 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/html/wp-content/themes/airi/template-parts/ |
Upload File : |
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Airi
*/
$layout = airi_blog_layout();
$hide_thumb = get_theme_mod( 'index_hide_thumb' );
$hide_date = get_theme_mod( 'index_hide_date' );
$hide_cats = get_theme_mod( 'index_hide_cats' );
$hide_author = get_theme_mod( 'index_hide_author' );
$hide_comments = get_theme_mod( 'index_hide_comments' );
$post_class[] = 'col-md-6';
$post_class[] = $layout['type'];
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( implode( ' ', $post_class ) ); ?>>
<div class="inner">
<header class="entry-header">
<?php
if ( $hide_thumb == '' ) :
if ( has_post_thumbnail() )
{
?>
<div class="thumbnail<?php echo esc_attr( $layout['item_inner_cols'] ); ?>">
<?php airi_post_thumbnail(); ?>
<?php
if ( $hide_cats == '' ) {
echo '<span>';
airi_first_category();
echo '</span>';
}
?>
</div>
<?php
}
endif;
?>
</header><!-- .entry-header -->
<div class="entry-meta">
<i class="fa fa-user" aria-hidden="true"></i>
<?php
if ( $layout['type'] != 'layout-grid' && $layout['type'] != 'layout-masonry' && $hide_author == '' ) {
airi_posted_by();
}
?>
<span class="separator">-</span>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<?php
if ( $hide_date == '' ) {
airi_posted_on();
}
?>
</div><!-- .entry-meta -->
<?php if ( $layout['type'] != 'layout-grid' && $layout['type'] != 'layout-masonry' ) : ?>
<?php
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
?>
<?php endif; ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->