Your IP : 216.73.216.0


Current Path : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/elementor-templates/
Upload File :
Current File : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/elementor-templates/blog-four.php

<?php if ('layout_four' == $settings['layout_type']) : ?>
	<!--News One Start-->
	<section class="news-carousel-page">
		<div class="container">
			<div class="news-carousel thm-owl__carousel owl-theme owl-carousel carousel-dot-style" data-owl-options='<?php echo esc_attr(zeinet_get_owl_options($settings)); ?>'>
				<?php
				if (!empty($settings['select_category'])) :
					$blog_post_one_query_args = array(
						'post_type' => 'post',
						'post_status' => 'publish',
						'ignore_sticky_posts' => true,


						'orderby' => 'date',
						'order'   => $settings['query_order'],
						'posts_per_page' => $settings['post_count']['size'],
						'tax_query' => array(
							array(
								'taxonomy' => 'category',
								'field' => 'slug',
								'terms' => $settings['select_category']
							)
						)
					);
				else :

					$blog_post_one_query_args = array(
						'post_type' => 'post',
						'post_status' => 'publish',
						'ignore_sticky_posts' => true,
						'orderby' => 'date',
						'order'   => $settings['query_order'],
						'posts_per_page' => $settings['post_count']['size']
					);

				endif;
				$blog_post_one_query = new \WP_Query($blog_post_one_query_args);
				?>
				<?php while ($blog_post_one_query->have_posts()) :
					$blog_post_one_query->the_post();

				?>
					<!--News One Single Start-->
					<div class="item">
						<div class="news-one__single">
							<?php if (has_post_thumbnail()) : ?>
								<div class="news-one__img-box">
									<?php the_post_thumbnail('zeinet_blog_370X336'); ?>
									<a href="news-details.html"><span class="icon-plus-symbol"></span></a>
								</div>
							<?php endif; ?>
							<div class="news-one__content-box">
								<div class="news-one__content">
									<ul class="news-one__meta list-unstyled ml-0">
										<li>
											<?php zeinet_posted_by(); ?>
										</li>
										<li>
											<?php zeinet_comment_count(); ?>
										</li>
									</ul>
									<h3 class="news-one__title"><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h3>
								</div>
								<div class="news-one__bottom">
									<a href="<?php the_permalink(); ?>" class="news-one__read-more"><?php esc_html_e('Read More', 'zeinet-addon'); ?></a>
								</div>
								<div class="news-one__date">
									<p><?php the_time('d M'); ?></p>
								</div>
							</div>
						</div>
					</div>
					<!--News One Single End-->
				<?php endwhile; ?>
				<?php if ('yes' == $settings['pagination_status']) : ?>
					<div class="col-lg-12">
						<div class="blog-pagination portfolio-page__btn-box justify-content-center text-center">
							<?php zeinet_custom_query_pagination($blog_post_one_query_paged, $blog_post_one_query->max_num_pages); ?>
						</div><!-- /.blog-post-pagination -->
					</div><!-- /.col-lg-12 -->
				<?php endif; ?>
				<?php wp_reset_postdata(); ?>
			</div>
		</div>
	</section>
	<!--News One End-->
<?php endif; ?>