HEX
Server: LiteSpeed
System: Linux server1.jphostbd.xyz 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: dailyajk (1018)
PHP: 7.4.33
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/dailyajk/public_html/wp-content/themes/jphostbd-news12/assets/file/page/gallery-section.php
<?php global $jphostbd; ?>
		<!--news-section-->
		<section class="news-section">
			<div class="container">
				<div class="row">
					<div class="col-md-6 col-sm-6">
						<div class="category-title-2"><strong><?php echo $jphostbd['photo']?></strong></div>
						<div class="photo-gallery">
							<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
											 <!-- Indicators -->
								<div class="carousel-inner">
										<?php 
										$gallary_active = new WP_Query(array(
											'post_type' => 'news-photo',
											'posts_per_page' => 1,
											'offset'     =>0
										));
										while($gallary_active->have_posts()) : $gallary_active->the_post(); ?>
										<div class="item active">
											<div class="photo-gellary">									
												<?php if(has_post_thumbnail()){ 
												the_post_thumbnail();}
												else{?>
												<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
												<?php } ?>
												<h4 class="pcaption"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>								
											</div>
										</div>	
										<?php endwhile ?>
										<?php 
										$gallary = new WP_Query(array(
										'post_type' => 'news-photo',
										'posts_per_page' => $jphostbd['how_many_photo'],
										'offset'     =>1
										));
										while($gallary->have_posts()) : $gallary->the_post(); ?>
										<div class="item">
											<div class="photo-gellary">									
												<?php if(has_post_thumbnail()){ 
												the_post_thumbnail();}
												else{?>
												<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
												<?php } ?>
												<h4 class="pcaption"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>							
											</div>
										</div>
										<?php endwhile ?>
									</div>
									<!-- Controls -->
									 <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
									<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
									<span class="sr-only">Previous</span>
									 </a>
									 <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
									<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
									<span class="sr-only">Next</span>
								 </a>
							</div>
						</div>
					</div>
					<div class="col-md-6 col-sm-6">
						<div class="category-title-2"><strong><?php echo $jphostbd['video']?></strong></div>
						<div class="row">
							<div class="col-md-6 col-sm-6">
								<?php 
								$blocks = new WP_Query(array(
									'post_type' => 'news-video',
									'posts_per_page' =>2,
									'offset'     =>0,
								));
								while($blocks->have_posts()) : $blocks->the_post(); ?>
								<div class="video">
									<div class="embed-responsive embed-responsive-16by9 embed-responsive-item" style="margin-bottom:10px;">
										<?php the_content(); ?>
									</div>
								</div>
								<?php endwhile?>
							</div>
							<div class="col-md-6 col-sm-6">
								<?php 
								$blocks = new WP_Query(array(
									'post_type' => 'news-video',
									'posts_per_page' =>2,
									'offset'     =>2,
								));
								while($blocks->have_posts()) : $blocks->the_post(); ?>
								<div class="video">
									<div class="embed-responsive embed-responsive-16by9 embed-responsive-item" style="margin-bottom:10px;">
										<?php the_content(); ?>
									</div>
								</div>
								<?php endwhile?>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_09')?>
						</div>
					</div>
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_10')?>
						</div>
					</div>
				</div>
			</div>
		</section>