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/single.php
<?php get_header();
 global $jphostbd; ?>	
		
<section class="single_section">			
			<div class="container">	
	
	
		<div class="single_page">
		    <div class="add"><?php dynamic_sidebar('single_top')?></div>
		    <div class="row">
		        <div class="col-md-8 col-sm-8">
		            <?php if(have_posts()) : ?>
					<?php while(have_posts()) : the_post(); ?>			
					<div class="single_info">
						<span>
							<a href="<?php bloginfo('url');?>"><i class="fa fa-home" aria-hidden="true"></i> /
								</a><?php the_category(', '); ?>
						</span>				    
					</div>
					<!-- ==========================-->		
					<h3 class="single_title"><?php the_title();?></h3>
					
					<div class="reportar_view_social_sec">
                           <div class="row">
                               <div class="col-md-7 col-md-7">
                                   
                                   <div class="row">
                                        <div class="col-md-2 col-sm-2 col-xs-3">
                                            <div class="reporter_image">
                                               <?php 
												$rimg = get_post_meta(get_the_ID(),'reporter_img', true);
												
												if($rimg){ ?>
												<img src="<?php echo get_post_meta(get_the_ID(),'reporter_img', true); ?>">
												<?php }
													else{?>
												<img src="<?php echo get_template_directory_uri(); ?>/assets/img/reporter.png" width="100%" />
												<?php } ?>
                                            </div>
                                        </div>
                                        <div class="col-md-10 col-sm-10 col-xs-9">
                                            <div class="reporter_name">
                                                <?php 
													$rname = get_post_meta(get_the_ID(),'reporter_name', true);
													
													if($rname){ ?>
													<?php echo get_post_meta(get_the_ID(),'reporter_name', true); ?>
													<?php }
														else{?>
														
													<?php echo $jphostbd['reporter']?>
													
													<?php } ?>
												<span>  <?php if($jphostbd['view-tab'] ==1 ): ?> 
												
												<?php if($jphostbd['content-translatetor'] ==1 ): ?> 
													/ <?php setPostViews(get_the_ID()); ?>
												<?php $view= getPostViews(get_the_ID()); 
												echo bn_number($view);?>
												<?php endif; ?>			   
													<?php if($jphostbd['content-translatetor'] == 2 ): ?>
													<?php setPostViews(get_the_ID()); ?> <?php echo getPostViews(get_the_ID()); ?>
												<?php endif; ?>
												<?php echo $jphostbd['count'];?> </span>
												
												<?php endif; ?>
												<?php if($jphostbd['view-tab'] == 2 ): ?> 
												<?php endif; ?>
                                            </div>
                                            <div class="update_time">
                                                <?php echo $jphostbd['update'];?> 
												
												<?php if($jphostbd['content-translatetor'] ==1 ): ?>
													<?php 
													$currentDate = get_the_time("l, j F, Y");
													$engDATE = array(1,2,3,4,5,6,7,8,9,0,'January','February','March','April','May','June','July','August','September','October','November','December','Saturday','Sunday','Monday','Tuesday','Wednesday','Thursday','Friday');
													$bangDATE = array('১','২','৩','৪','৫','৬','৭','৮','৯','০','জানুয়ারী','ফেব্রুয়ারী','মার্চ','এপ্রিল','মে','জুন','জুলাই','আগস্ট','সেপ্টেম্বর','অক্টোবর','নভেম্বর','ডিসেম্বর','শনিবার','রবিবার','সোমবার','মঙ্গলবার','
													বুধবার','বৃহস্পতিবার','শুক্রবার' 
													);
													$convertedDATE = str_replace($engDATE, $bangDATE, $currentDate);
													echo "$convertedDATE";
													?>
													<?php endif; ?>
															<?php if($jphostbd['content-translatetor'] == 2 ): ?>
													<?php echo get_the_time("l, F j, Y"); ?>
													<?php endif; ?>
						
						
													
                                            </div>
                                            

                                        </div>
                                    </div>

                               </div>
                               <div class="col-md-5 col-md-5">
                                   <div class="social_title">
                                       <?php echo $jphostbd['social_title'] ?>
                                   </div>
                                       <ul class="social_Share_icon">
                                            <li><a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(get_permalink()); ?>" class="sngl_facebook" target="_blank"> <i class="fa fa-facebook"></i></a></li>
                                            <li><a href="https://twitter.com/share?text=<?php echo urlencode( get_the_title() ); ?>" class="sngl_twitter" target="_blank"> <i class="fa fa-twitter"></i></a></li>
                                            <li><a href="https://plus.google.com/share?url=<?php echo urlencode(get_permalink()); ?>" class="sngl_google-plus" target="_blank"> <i class="fa fa-google-plus"></i></a></li>
                                            <li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;title=<?php the_title(); ?>" class="sngl_google-plus" target="_blank"> <i class="fa fa-linkedin"></i></a></li>                        
                                            <li><a href="http://digg.com/submit?url=<?php the_permalink(); ?>" class="sngl_digg" target="_blank"> <i class="fa fa-digg"></i></a></li>
                                            <li><a href="http://www.pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink()); ?>" class="sngl_pinterest" target="_blank"> <i class="fa fa-pinterest"></i></a></li>
                                            <li><a onclick="printFunction()" class="sngl_print" target="_blank"> <i class="fa fa-print"></i> </a></li>
                                        </ul>

                                        <script>
                                            function printFunction() {
                                            window.print();
                                            }
                                        </script>
                               </div>
                           </div> 
                        </div>
						
						
					<div class="lead-newss">
						<?php if(has_post_thumbnail()){ 
						the_post_thumbnail();}
						else{?>
						<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
						<?php } ?>
						<div class="content">
						<?php 
						   $caption = get_post(get_post_thumbnail_id())->post_excerpt;
							if ($caption): ?>
							 <div class="caption"><?php echo $caption ?> </div>
						   <?php endif; ?>
						</div>
					</div>
					
                    
					  <div class="add"> <?php dynamic_sidebar('single_middle')?></div>
						<div class="single-ditails"> <p><?php the_content();?></p></div>
										
						<!-- ==========================-->						  
						<?php endwhile;?>
						<?php endif;?> 
								<div class="add"><?php dynamic_sidebar('single_buttom')?>  </div>
								<div class="clear"></div> 
								</br>

					 <!-- *(view-tab show or hide open)*-->	
			<?php if($jphostbd['coment'] ==1 ): ?>
					<div class="comment_title"> আপনার মতামত লিখুন :</div>
					   <?php comments_template(); ?>
					<?php endif; ?> 
			 <?php if($jphostbd['coment'] == 2 ): ?>
				   <?php endif; ?>
				<!-- *(view-tab show or hide close)*-->

					<!-- Releted Post Start-->
					<div class="more_news_catagory"><?php echo $jphostbd['more-news-category']?></div>	
					
							<div class="row more-news">		   
							<?php $orig_post = $post;
							global $post;
							$categories = get_the_category($post->ID);
							if ($categories) {
							$category_ids = array();
							foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;

							$args=array(
							'category__in' => $category_ids,
							'post__not_in' => array($post->ID),
							'posts_per_page'=> 3, // Number of related posts that will be shown.
							);

							$my_query = new wp_query( $args );
							if( $my_query->have_posts() ) {

							while( $my_query->have_posts() ) {
							$my_query->the_post(); ?>
							<div class="col-md-4 col-sm-4">
								<a href="<?php the_permalink()?>"><?php if(has_post_thumbnail()){ 
								the_post_thumbnail();}
								else{?>
								<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
								<?php } ?></a>
								<h4 class="more-news-title"><a href="<?php the_permalink()?>"><?php the_title() ?>	</a> </h4>	
								
							</div>

    
							<?php
							}    }    } 
							$post = $orig_post;
							wp_reset_query(); ?>
								
							</div>	
    
						<div class="row more-news">		   
						<?php $orig_post = $post;
						global $post;
						$categories = get_the_category($post->ID);
						if ($categories) {
						$category_ids = array();
						foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;

						$args=array(
						'category__in' => $category_ids,
						'post__not_in' => array($post->ID),
						'posts_per_page'=> 3, // Number of related posts that will be shown.
						'offset'=> 3,
						);
						$my_query = new wp_query( $args );
						if( $my_query->have_posts() ) {

						while( $my_query->have_posts() ) {
						$my_query->the_post(); ?>				
						<div class="col-md-4 col-sm-4">
							<a href="<?php the_permalink()?>"><?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?></a>
							<h4 class="more-news-title"><a href="<?php the_permalink()?>"><?php the_title() ?>	</a> </h4>								
						</div>
						<?php
						}    }    } 
						$post = $orig_post;
						wp_reset_query(); ?>
						</div>
						<!-- ==========================-->			   
		        </div> 
		        <div class="col-md-4 col-sm-4">
					<div class="add"><?php dynamic_sidebar('single_sidebar_top')?></div>
					<div class="tab-header">
							<!-- Nav tabs -->
						<ul class="nav nav-tabs nav-justified" role="tablist">
								<li role="presentation" class="active"><a href="#tab21" aria-controls="tab21" role="tab" data-toggle="tab" aria-expanded="false"><i class="fa fa-line-chart"></i> সর্বশেষ <?php echo $jphostbd_themes['last'] ?></a></li>
								<li role="presentation" ><a href="#tab22" aria-controls="tab22" role="tab" data-toggle="tab" aria-expanded="true"><i class="fa fa-fire"></i> পাঠক প্রিয় <?php echo $jphostbd_themes['popular'] ?></a></li>
							</ul>

							<!-- Tab panes -->
							<div class="tab-content">
								<div role="tabpanel" class="tab-pane in active" id="tab21">
									<?php
									$x=1;							 
									$lastnews = new WP_Query(array(
									'post_type' => 'post',
									'posts_per_page' => $jphostbd_themes['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 role="tabpanel" class="tab-pane fade" id="tab22">										
									<?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 class="add"><?php dynamic_sidebar('single_sidebar_bottom')?></div>
				   	
	
		            
		        </div>
		        	<div class="col-md-4 col-sm-4">
						<!-- Facebook Start -->

					<?php if($jphostbd['facebook'] ==1 ): ?>
					<div class="widget_area"><h3><a href="#"><?php echo $jphostbd['facebook-title']?></a></h3></div>
					<div class="fb-root">
					<script>(function(d, s, id) {
					  var js, fjs = d.getElementsByTagName(s)[0];
					  if (d.getElementById(id)) return;
					  js = d.createElement(s); js.id = id;
					  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
					  fjs.parentNode.insertBefore(js, fjs);
					}(document, 'script', 'facebook-jssdk'));</script>
					<div class="fb-page" data-href="<?php echo $jphostbd['facebook-link']['face-url']; ?>" data-tabs="timeline" data-width="<?php echo $jphostbd['facebook-width']?>" data-height="<?php echo $jphostbd['facebook-height']?>" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
						 </div>			 
					<?php endif; ?>
				   
				   <?php if($jphostbd['facebook'] == 2 ): ?>
				   <?php endif; ?>				  
				   	<!-- Facebook Close -->
		    </div>
		</div>
		<!-- Single Page element Close-->
		
		
	</div>
	</section>
	
	
	<?php get_footer();
			wp_footer();
			?>