File "post-list1.php"

Full Path: /home/elegucvf/public_html/video/wp-content/wp-includes/wp-includes/wp-content/themes/atlas/template-parts/posts/post-list1.php
File size: 4.35 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * This template used for post list layouts
 *
 * @package Atlas
 */

$sufix = $class_sufix = '';
if ( isset( $args['sufix'] ) ) {
    $sufix = $args['sufix'];
    $class_sufix = 'post' . $args['sufix'];
}
/* Avoid not set block args */
$args['block'] = th90_post_block_atts_default( $args['block'], $sufix );

$post_class = array(
    'post-item',
    'cat-' . th90_get_primary_category_id(),
    $class_sufix,
);
if ( isset( $args['add_class'] ) ) {
    $post_class[] = $args['add_class'];
}
?>
<div class="<?php echo esc_attr( implode( ' ', array_filter( $post_class ) ) ); ?>">

    <article <?php th90_post_class( $args['block']['article_class'] . ' post-list' ); ?>>
        <?php
		/* Post Thumbnail */
		if ( 'yes' != $args['block']['thumbnail_disable' . $sufix] ) {
			th90_post_thumbnail( $args['block']['image_ratio' . $sufix], array(
				'before'			=> '<div class="post-list-thumbnail"><div class="entry-thumbnail">',
				'after'				=> '</div></div>',
				'first_cat' 		=> ( 'thumbnail' == $args['block']['first_cat_loc' . $sufix] ) ? $args['block']['first_cat' . $sufix] : false,
				'thumbnail_type'    => $args['block']['thumbnail_type' . $sufix],
                'review'            => $args['block']['review' . $sufix],
                'image_size'        => $args['block']['image_size' . $sufix],
                'fetchpriority'   => 'yes' == $args['block']['fetchpriority' . $sufix] ? true : false,
			) );
		}
		?>

		<div class="post-list-desc<?php echo ( 'yes' == $args['block']['post_center' . $sufix] ) ? ' text-center': ' text-left'; ?>">
			<div class="post-desc-inner">
				<div class="entry-header">
					<?php
                    if ( ( 'title' == $args['block']['first_cat_loc' . $sufix] && $args['block']['first_cat' . $sufix] && th90_get_category( $args['block']['cat_style' . $sufix], true ) ) || th90_is_sticky_post() ) {
            			echo '<div class="entry-cats">';
                            if ( th90_is_sticky_post() ) {
                                echo '<div class="meta-item meta-sticky"> <div class="sticky-sign">' . th90_get_svg_icon( 'star' ) . '</div></div>';
                            }
                            if ( 'title' == $args['block']['first_cat_loc' . $sufix] && $args['block']['first_cat' . $sufix] && th90_get_category( $args['block']['cat_style' . $sufix], true ) ) {
                                echo th90_get_category( $args['block']['cat_style' . $sufix], true );
                            }
                		echo '</div>';
					}

					$info_array = array(
                        'modern'        => $args['block']['meta_modern' . $sufix],
						'author' 		=> $args['block']['author' . $sufix],
						'date' 		 	=> $args['block']['date' . $sufix],
						'time_format'	=> $args['block']['time_format' . $sufix],
						'avatar'		=> $args['block']['author_avatar' . $sufix],
						'comments'		=> $args['block']['comments' . $sufix],
                        'views'			=> $args['block']['views' . $sufix],
                        'readmore'      => $args['block']['readmore' . $sufix],
                        'readmore_side' => $args['block']['readmore_side' . $sufix],
						'first_cat' 	=> 'default' == $args['block']['first_cat_loc' . $sufix] ? $args['block']['first_cat' . $sufix] : false,
                        'icon'          => $args['block']['info_icon' . $sufix],
                    );

					if ( 'top' == $args['block']['info_position' . $sufix] ) {
						th90_the_post_info( $info_array );
					}
					?>

					<<?php echo esc_attr( $args['block']['tag_title'] ); ?> class="entry-title <?php echo esc_attr( $args['block']['title_tag' . $sufix] ? th90_convert_tag( $args['block']['title_tag' . $sufix] ) : 'head3' ); ?>">
						<a class="title-text" href="<?php the_permalink(); ?>"><?php th90_the_title(); ?></a>
					</<?php echo esc_attr( $args['block']['tag_title'] ); ?>>

					<?php
					if ( 'under' == $args['block']['info_position' . $sufix] ) {
						th90_the_post_info( $info_array );
					}
					?>
				</div>
    			<?php
                if ( 'yes' == $args['block']['excerpt' . $sufix] && th90_get_excerpt() ) {
                    ?>
                    <div class="entry-excerpt">
						<?php th90_the_excerpt(); ?>
					</div>
                    <?php
                }
				if ( 'bottom' == $args['block']['info_position' . $sufix] ) {
					th90_the_post_info( $info_array );
				}
				?>
            </div>
		</div>
	</article>
</div>