Current File : /home/itiffy/rockyjohnsonconcrete.com/wp-content/themes/rockyjohnson/commercial.php |
<?php
/*Template Name: Commercial*/
get_header();
wp_reset_query();
?>
<?php include_once('top.php'); ?>
<!-- BANNER SECTION -->
<div class="inner-banner-section clearfix" style="background:url(<?php echo the_post_thumbnail_url(); ?>) no-repeat center;">
<div class="container">
<h1>
<?php wp_reset_query(); the_title(); ?>
</h1>
</div>
</div>
<!-- /BANNER SECTION -->
<!-- CONTENT SECTION -->
<div class="content-section clearfix">
<div class="inner-section01 clearfix">
<div class="container">
<h2><strong><?php wp_reset_query(); echo get_field('inner-section01-heading',get_the_ID()); ?></strong></h2>
<p class="text-uppercase"><?php wp_reset_query(); echo get_field('inner-section01-subheading01',get_the_ID()); ?></p>
<h5><?php wp_reset_query(); echo get_field('inner-section01-subheading02',get_the_ID()); ?></h5>
<?php wp_reset_query(); echo get_field('inner-section01-content',get_the_ID()); ?>
</div>
</div>
<div class="projects-section clearfix">
<div class="container">
<h2>Concrete Stamping & Design:</h2>
<p>Don’t just think sidewalks and driveways. Stamped and decorative concrete is also great for steps, borders, and a variety of outdoor living areas.</p>
<div class="row">
<?php
wp_reset_query();
$args = array(
'post_type' => 'project',
'orderby' => 'date',
'order' => 'ASC',
);
$project = new WP_Query( $args );
while ($project -> have_posts()){ $project -> the_post();
$linktext = '';
$exp=explode('/',get_the_permalink());
//print_r ($exp);die;
//$linktext = $exp[0].'/'.$exp[1].'/'.$exp[2].'/'.$exp[3].'/'.$exp[4].'/'.$exp[6].'/';
$linktext = $exp[0].'/'.$exp[1].'/'.$exp[2].'/'.$exp[4];
?>
<div class="col-sm-6">
<div class="box">
<figure><img src="<?php echo the_post_thumbnail_url(); ?>" alt=""></figure>
<article>
<h5><?php the_title(); ?></h5>
<?php the_content(); ?>
<div class="btn-read-more"><a href="<?php echo $linktext; ?>">Read More</a></div>
</article>
</div>
</div>
<?php } ?>
</div>
<!--<div class="btn-view-more"><a href="#">View All</a></div> -->
</div>
</div>
<div class="inner-section03 clearfix">
<div class="container">
<h2><?php wp_reset_query(); echo get_field('inner-section03-heading',get_the_ID()); ?></h2>
<h6><?php wp_reset_query(); echo get_field('inner-section03-content',get_the_ID()); ?></h6>
<p><?php $image = get_field('inner-section03-img01',get_the_ID()); ?><img src="<?php echo $image['url']; ?>" /> <?php $image = get_field('inner-section03-img02',get_the_ID()); ?><img src="<?php echo $image['url']; ?>" /> <?php $image = get_field('inner-section03-img03',get_the_ID()); ?><img src="<?php echo $image['url']; ?>" /></p>
</div>
</div>
</div>
<!-- /CONTENT SECTION -->
<!--Footer start-->
<?php get_footer(); ?>
<?php include_once('commonJs.php'); ?>
</body>
</html>