Your IP : 216.73.217.123


Current Path : /home/blindman/.trash/
Upload File :
Current File : /home/blindman/.trash/old-single-projects.php

<?php get_header(); ?>
<div class="blog-inner"><div class="blog-content">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
                        <?php $blocks = get_field('blocks', get_the_ID());
                if(!empty($blocks)){
                    foreach($blocks as $block){
                        if($block['acf_fc_layout'] == 'image_with_content_in_left_side'){ ?>
<div class=" bx_all_wrap"><div class="container"><div class="row align-items-center">
<div class="col-md-6 order-md-2"><div class="thmnl ps-4"><img src="<?php echo $block['image']['sizes']['large']; ?>" class="img_full" alt="img"></div></div>

<div class="col-md-6 order-md-1">
<div class="content_bx pe-4">
<h2 class="color_red northwell font45 m-0"><?php echo $block['content']['sub_heading']; ?></h2>
<h4 class="pb-3"><?php echo $block['content']['heading']; ?></h4>
<?php echo $block['content']['summary']; ?>
<?php if(!empty($block['content']['button_label'])){ ?>
<a href="<?php echo $block['content']['button_link']; ?>" class="btn position-relative ms-5 me-5 text-start"><?php echo $block['content']['button_label']; ?> <i class="mr_min"><img src="<?php echo get_template_directory_uri(); ?>/images/right_arrow.png" alt="<?php echo $block['button_label']; ?>"></i></a>
<?php } ?>
</div>
</div>
</div> </div></div>        
        <?php }     
        if($block['acf_fc_layout'] == 'image_with_content_in_right'){ ?>
   <div class=" bx_all_wrap">
<div class="container">
<div class="row align-items-center ">
<div class="col-md-6">
<div class="vd_cl position-relative"><img src="<?php echo $block['image']['sizes']['large']; ?>" class="img_full" alt="img"></div>
</div>
<div class="col-md-6">
<div class="exp_detail ps-5 pe-5">
    <h4><?php echo $block['content']['heading']; ?> <span class="color_red northwell font45 m-0"><?php echo $block['content']['sub_heading']; ?></span></h4>
<?php echo $block['content']['summary']; ?>
<?php if(!empty($block['content']['button_label'])){ ?>
<a href="<?php echo $block['content']['button_link']; ?>" class="btn position-relative ms-5 me-5 text-start"><?php echo $block['content']['button_label']; ?> <i class="mr_min"><img src="<?php echo get_template_directory_uri(); ?>/images/right_arrow.png" alt="<?php echo $block['button_label']; ?>"></i></a>
<?php } ?>
</div>
</div>
</div>
</div>
</div>             
        <?php }    
        
        if($block['acf_fc_layout'] == 'heading_with_button'){ ?>
            <div class="weoffer bx_all_wrap bg_light_sky2">
<div class="container text-center">
<h4 class="m-0  d-inline-block"><?php echo $block['heading']; ?></h4>
<?php if(!empty($block['button_label'])){ ?>
<a href="<?php echo $block['button_link']; ?>" class="btn position-relative ms-5 me-5 text-start"><?php echo $block['button_label']; ?> <i class="mr_min"><img src="<?php echo get_template_directory_uri(); ?>/images/right_arrow.png" alt="<?php echo $block['button_label']; ?>"></i></a>
<?php } ?>
</div>
</div>
        <?php }
                    }
                }
                ?>
	<?php endwhile; ?>

	<?php else: ?>

		<!-- article -->
		<article>

			<h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>

		</article>
		<!-- /article -->

	<?php endif; ?>
</div>  
<div class="similar-blogs"><div class="container"><div class="row">
            <h3 class="mb-4 pb-2 color_red">Explore more recent projects</h3>
    <?php $sblogs = get_posts(array('posts_per_page'=>3, 'post_type'=>'projects', 'exclude'=>get_the_ID()));
    if(!empty($sblogs)){
        foreach($sblogs as $b){
$thumb = get_field('main_image', $b->ID);
$bcontent = get_field('package_summary', $b->ID);
$bul = '';
if(!empty($bcontent)){
    $barr = explode(PHP_EOL, $bcontent);
    $bul = '<ul>';
    foreach($barr as $ba){
        $bul .= '<li>'.$ba.'</li>';
    }
    $bul .= '</ul>';
}
?>
<div class="col-md-4">
<div class="range_cl shadow-lg  mb-4">
<figure class="m-0"><a href="<?php echo get_permalink($b->ID); ?>"><img src="<?php echo $thumb['sizes']['medium_large']; ?>" class="img_full" alt="<?php echo $b->post_title; ?>"></a></figure>
<figcaption class="p-4">
<h6><?php echo $b->post_title; ?></h6>
<?php echo $bul; ?>
</figcaption>
</div>
</div>
        <?php }
    } ?>
</div></div></div></div>               
<?php get_footer(); ?>