Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/themes/puca/post-formats/themes/fashion2/ |
Upload File : |
<?php /** * * The default template for displaying content * @since 1.0 * @version 1.2.0 * */ wp_enqueue_script( 'slick' ); wp_enqueue_script( 'puca-custom-slick' ); $galleries = puca_tbay_get_post_galleries(); ?> <!-- /post-standard --> <?php if ( ! is_single() ) : ?> <div class="post-list clearfix"> <?php endif; ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_single() ) : ?> <div class="entry-single"> <?php echo puca_tbay_post_media( get_the_excerpt() ); ?> <?php endif; ?> <?php if ( is_single() ) : ?> <span class="entry-date"><?php echo puca_time_link(); ?></span> <div class="entry-header"> <div class="entry-meta"> <?php if (get_the_title()) { ?> <h1 class="entry-title"> <?php the_title(); ?> </h1> <?php } ?> </div> <div class="meta-info"> <span class="author"><?php echo get_avatar(puca_tbay_get_id_author_post(), 'puca_avatar_post_carousel'); ?> <?php the_author_posts_link(); ?></span> <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> <span class="comments-link"><i class="icons icon-bubbles"></i> <?php comments_popup_link( esc_html__('0 comment', 'puca'), esc_html__('1 comment', 'puca'), esc_html__( '% comments', 'puca' ) ); ?></span> <?php endif; ?> <?php puca_custom_post_category(); ?> </div> </div> <?php if( $galleries ): ?> <div id="post-slide-<?php the_ID(); ?>" class="owl-carousel-play" data-ride="carousel"> <div class="owl-carousel slider-blog" data-carousel="owl" data-items="1" data-nav="true" data-pagination="false"> <?php foreach ($galleries as $key => $_img) { echo '<img class="skip-lazy" src="'. esc_url($_img) .'">'; } ?> </div> <a class="left carousel-control carousel-xs radius-x" data-slide="prev" href="#post-slide-<?php the_ID(); ?>"> <span class="fa fa-angle-left"></span> </a> <a class="right carousel-control carousel-xs radius-x" data-slide="next" href="#post-slide-<?php the_ID(); ?>"> <span class="fa fa-angle-right"></span> </a> </div> <?php elseif( has_post_thumbnail() ) : ?> <?php puca_tbay_post_thumbnail(); ?> <?php endif; ?> </div> <div class="post-excerpt entry-content"><?php the_content( esc_html__( 'Read More', 'puca' ) ); ?></div><!-- /entry-content --> <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'puca' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'puca' ) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>', ) ); ?> <div class="entry-bottom"> <?php puca_tbay_post_tags(); ?> <?php puca_tbay_post_share_box(); ?> </div> <?php endif; ?> <?php if ( ! is_single() ) : ?> <?php if( puca_tbay_blog_image_sizes_full() ) : ?> <div class="entry-content"> <div class="entry"> <div class="meta-info"> <span class="entry-date"><?php echo puca_time_link(); ?></span> </div> <div class="entry-meta"> <?php if (get_the_title()) { ?> <h4 class="entry-title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h4> <?php } ?> </div> <?php puca_custom_post_category(); ?> </div> </div> <?php if( $galleries ): ?> <div id="post-slide-<?php the_ID(); ?>" class="owl-carousel-play" data-ride="carousel"> <div class="owl-carousel slider-blog" data-carousel="owl" data-items="1" data-nav="true" data-pagination="false"> <?php foreach ($galleries as $key => $_img) { echo '<img class="skip-lazy" src="'. esc_url($_img) .'">'; } ?> </div> </div> <?php elseif( has_post_thumbnail() ) : ?> <?php puca_tbay_post_thumbnail(); ?> <?php endif; ?> <?php if ( has_excerpt()) { the_excerpt(); } else { ?> <div class="entry-description"><?php echo puca_tbay_substring(get_the_content(), 25, '...' ); ?></div> <?php } ?> <div class="readmore"><a href="<?php the_permalink(); ?>" title="<?php esc_attr_e( 'Read More', 'puca' ); ?>"><?php esc_html_e( 'Read More', 'puca' ); ?></a></div> <?php else : ?> <div id="post-slide-<?php the_ID(); ?>" class="owl-carousel-play" data-ride="carousel"> <div class="owl-carousel slider-blog" data-carousel="owl" data-items="1" data-nav="true" data-pagination="false"> <?php foreach ($galleries as $key => $_img) { echo '<img class="skip-lazy" src="'. esc_url($_img) .'">'; } ?> </div> </div> <div class="entry-content"> <div class="entry"> <div class="meta-info"> <span class="entry-date"><?php echo puca_time_link(); ?></span> </div> <div class="entry-meta"> <?php if (get_the_title()) { ?> <h4 class="entry-title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h4> <?php } ?> </div> <?php puca_custom_post_category(); ?> <div class="readmore"><a href="<?php the_permalink(); ?>" title="<?php esc_attr_e( 'Read More', 'puca' ); ?>"><?php esc_html_e( 'Read More', 'puca' ); ?></a></div> </div> </div> <?php endif; ?> <?php endif; ?> <?php if ( is_single() ) : ?> </div> <?php endif; ?> </article> <?php if ( ! is_single() ) : ?> </div> <?php endif; ?>