<?php
/**
 * Standard blog single page
 *
 */

get_header(); 
get_template_part( 'includes/header' , 'page-title' ); ?>
			
			<!-- BLOG AREA START -->
			<div class="cleaninganything-blog-area cleaninganything-blog-single single-blog-details">
				<div class="container">				
					<div class="row">


						<?php if( have_posts() ) : ?>

							<?php while( have_posts() ) : the_post(); ?>					
								
									<?php
									$infotitle  = get_post_meta( get_the_ID(),'_cleaninganything_infotitle', true );  
									$protgroup  = get_post_meta( get_the_ID(),'_cleaninganything_portgroup', true );   
									?>
									<?php if(has_post_thumbnail()){?>
										<div class="col-lg-7  col-md-6  col-sm-12 col-xs-12 blog-lr">
											<div class="pimgs">
											
												<?php the_post_thumbnail('cleaninganything-single-portfolio');?>
											
											</div>
										</div>
										<div class="col-lg-5 col-md-6  col-sm-12 col-xs-12 blog-lr">
											<div class="portfolio-content portfolio-details-box">											
												<div class="prots-contentg">
												<?php if($infotitle){?>
													<h2><?php echo esc_html($infotitle);?></h2>
												<?php };?>
												<ul>
													<?php 
														if( $protgroup ){?>
														<?php
														foreach ( (array) $protgroup as $portgropd => $portgropss ){
														$porttitle = $portdec ='';
														if ( isset( $portgropss['_cleaninganything_pttitle'] ) ) {
															$porttitle =  $portgropss['_cleaninganything_pttitle'];	
														}	
														if ( isset( $portgropss['_cleaninganything_ptvalue'] ) ) {
															$portdec =  $portgropss['_cleaninganything_ptvalue'];	
														}?>
														<li>
															<b class="eleft"><?php echo esc_html( $porttitle );?></b>
															<span  class="eright"><?php echo esc_html( $portdec );?></span>
														</li>
													<?php }} ?>	
												</ul>	
												</div>
													<div class="cleaninganything-blog-social">
														<div class="cleaninganything-single-icon">
															<?php
															if( function_exists('cleaninganything_blog_sharing') ){						
																cleaninganything_blog_sharing();
															}
															?>
														</div>
													</div>
											</div>										
										</div>
										<?php } ?>
										
										<div class="col-md-12 col-lg-12  col-sm-12 col-xs-12 blog-lr">															
											<div class="portfolio-content portfolio-details-boxs">
												<div class="pr-title"><h2><?php the_title();?></h2></div>
												<div class="prots-contentg">
													<?php the_content(); ?>
												</div>
											</div>
										</div>	
			
							

						<?php endwhile; // while has_post(); ?>
					<?php endif; // if has_post() ?>
									
					</div>	
				</div>
			</div>
			<!-- END BLOG AREA START -->						
<?php
get_footer();