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/section-one.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 id="myCarousel" class="carousel slide" data-ride="carousel">
							  <!-- Wrapper for slides -->
								<div class="carousel-inner" role="listbox">
								
								<?php
								$category_name = get_the_category_by_id($jphostbd['cat-one']);
								$category_name_link = get_category_link($jphostbd['cat-one']);
								$themes_dealer = new WP_Query(array(
									'post_type' => 'post',
									'posts_per_page' => 1,
									'category_name' => $category_name,

								));
								while ($themes_dealer->have_posts()) : $themes_dealer->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
									$how_cat= $jphostbd['how_post_one'];
									$total_how_cat=$how_cat-1;
									$themes_dealer = new WP_Query(array(
										'post_type' => 'post',
										'posts_per_page' => $total_how_cat,
										'offset' => 1,
										'category_name' => $category_name,
									));
									while ($themes_dealer->have_posts()) : $themes_dealer->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="#myCarousel" 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="#myCarousel" 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 class="col-md-3 col-sm-3">
						<div class="category-title"><strong><?php echo $jphostbd['last'] ?></strong></div>
						<div class="latest-news">
							<?php
							$x=1;							 
							$lastnews = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $jphostbd['lastpost'],
							'offset' =>0,
							));
							while($lastnews->have_posts()) : $lastnews->the_post();?>
							<?php $xx=$x++ ?>
							<div class="image-title">
								<?php if(has_post_thumbnail()){ 
								the_post_thumbnail();}
								else{?>
								<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" class="image"/>
								<?php } ?>
								<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							</div>
							<?php endwhile ?>
						</div>
					</div>
					<div class="col-md-3 col-sm-3">
						<div class="category-title"><strong><?php echo $jphostbd['popular'] ?></strong></div>
						<div class="latest-news">
							<?php
							$x=1;	
							query_posts('meta_key=post_views_count&orderby=meta_value_num&order=DESC');
							if (have_posts()) : while (have_posts()) : the_post();
							?>	
							<?php $xx=$x++ ?>
							<div class="image-title">
								<?php if(has_post_thumbnail()){ 
								the_post_thumbnail();}
								else{?>
								<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" class="image"/>
								<?php } ?>
								<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							</div>
							<?php
							endwhile; endif;
							wp_reset_query();
							?>
						</div>
					</div>
				</div>
			</div>
		</section>