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/movie-two.php

<?php if ('layout_two' == $settings['layout_type']) : ?>
	<!--All Time Hit Start-->
	<section class="all-time-hit all-time-hit--two">
		<div class="container">
			<?php if (!empty($settings['sec_sub_title']) || !empty($settings['sec_title'])) : ?>
				<div class="section-title text-center">
					<?php if (!empty($settings['sec_sub_title'])) : ?>
						<span class="section-title__tagline"><?php echo wp_kses($settings['sec_sub_title'], 'zeinet_allowed_tags'); ?></span>
					<?php endif; ?>
					<?php if (!empty($settings['sec_title'])) : ?>
						<h2 class="section-title__title"><?php echo wp_kses($settings['sec_title'], 'zeinet_allowed_tags'); ?></h2>
					<?php endif; ?>
				</div>
			<?php endif; ?>
			<ul class="all-time-hit__list list-unstyled ml-0">
				<?php
				if (!empty($settings['select_category'])) :
					$movie_post_one_query_args = array(
						'post_type' => 'movie',
						'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' => 'movie_cat',
								'field' => 'slug',
								'terms' => $settings['select_category']
							)
						)
					);
				else :
					$movie_post_one_query_args = array(
						'post_type' => 'movie',
						'post_status' => 'publish',
						'ignore_sticky_posts' => true,
						'orderby' => 'date',
						'order'   => $settings['query_order'],
						'posts_per_page' => $settings['post_count']['size']
					);

				endif;
				$movie_post_one_query = new \WP_Query($movie_post_one_query_args);
				$i = 1;
				?>
				<?php while ($movie_post_one_query->have_posts()) :
					$movie_post_one_query->the_post();
					$year =  get_post_meta(get_the_ID(), 'zeinet_movie_year', true);
					$video_url =  get_post_meta(get_the_ID(), 'zeinet_movie_video_url', true);
					$rating = zeinet_comment_rating_get_average_ratings(get_the_ID());
				?>
					<li class="all-time-hit__single wow fadeInUp" data-wow-delay="<?php echo esc_attr($i); ?>00ms">
						<div class="all-time-hit__inner">
							<div class="all-time-hit__img">
								<div class="all-time-hit-shape"></div>
								<?php the_post_thumbnail('zeinet_movie_270X390'); ?>
								<div class="all-time-hit__video-link">
									<a href="<?php echo esc_url($video_url); ?>" class="video-popup">
										<div class="all-time-hit__video-icon">
											<span class="fa fa-play"></span>
											<i class="ripple"></i>
										</div>
									</a>
								</div>
								<div class="all-time-hit__content">
									<h4 class="all-time-hit__title">
										<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
									</h4>
									<p class="all-time-hit__text"><?php echo esc_html($year); ?>
										<?php if (!empty($rating)) : ?>
											<i class="fa fa-star"></i> <span><?php echo esc_html($rating); ?></span>
										<?php endif; ?>
									</p>
								</div>
							</div>
						</div>
					</li>
				<?php $i++;
				endwhile; ?>
				<?php wp_reset_postdata(); ?>
			</ul>
		</div>
	</section>
	<!--All Time Hit End-->

<?php endif; ?>