Created
June 16, 2018 19:17
-
-
Save mopuriiswaryalakshmi/5bccc7641d6c0d0a4bf7252152a8034f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header();?> | |
<?php | |
$categories = post_categories(); | |
$domain_name = getDomainData()->name; | |
$post_pod = pods('post'); | |
if($_GET["type"]){ | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name ='".$_GET['type']."' ", | |
"orderby" => "t.post_date DESC" | |
); | |
} else { | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' and category.name IN ($categories)", | |
"orderby" => "t.post_date DESC" | |
); | |
} | |
$post_pod->find($params,$limit=-1); | |
// var_dump($post_pod); | |
$post_pod_data = $post_pod->data(); | |
// var_dump($post_date[0]); | |
$ids = array(); | |
foreach($post_pod_data as $key => $post){ | |
$ids[] = $post->ID; | |
} | |
var_dump($ids); | |
$thisindex = array_search($_GET['postId'], $ids); | |
//var_dump($thisindex); | |
$previd = isset($ids[$thisindex-1]) ? $ids[$thisindex-1] : 0; | |
// var_dump($previd); | |
$nextid = isset($ids[$thisindex+1]) ? $ids[$thisindex+1] : 0; | |
// var_dump($nextid); | |
$whats_new_url = get_page_link( get_page_by_title( 'whatsNewBlog' )->ID ); | |
// $previd_url = $whats_new_url ."?postId=".urlencode($previd); | |
// $nextid_url = $whats_new_url ."?postId=".urlencode($nextid); | |
if($_GET['type']){ | |
$previd_url = $whats_new_url ."?type=".urlencode($_GET['type'])."&"."postId=".urlencode($previd); | |
$nextid_url = $whats_new_url ."?type=".urlencode($_GET['type'])."&"."postId=".urlencode($nextid); | |
}else{ | |
$previd_url = $whats_new_url ."?blogType=".urlencode('Most Recent')."&"."postId=".urlencode($previd); | |
$nextid_url = $whats_new_url ."?blogType=".urlencode('Most Recent')."&"."postId=".urlencode($nextid); | |
} | |
?> | |
<?php | |
$post_pod = pods('post'); | |
$params = array( | |
// "where" => "t.post_title = '".$_GET['title']."'", | |
"where" => "d.ID = '".$_GET['postId']."'", | |
); | |
$post_pod->find($params,$limit=1); | |
$post_pod_data = $post_pod->data(); | |
$post_id = $post_pod_data[0]->ID; //This is Post ID | |
$post_image_id= get_post_meta( $post_id, 'image', true); | |
$blog_image=pods_image_url( $post_image_id, $size = null, $default = 0, $force = false ); | |
?> | |
<ol class="breadcrumb"> | |
<li class="breadcrumb-item"><a href="<?php echo home_url('/')?>">Home</a></li> | |
<li class="breadcrumb-item"><a href="<?php echo get_page_link( get_page_by_title( 'whatsNew' )->ID ); ?>">What’s New</a></li> | |
<li class="breadcrumb-item active"><?php echo $post_pod_data[0]->{"post_title"} ?></li> | |
</ol> | |
<h2 class="text-danger dealer-heading text-center py-40 mb-0">American Steel Blog</h2> | |
<section class="py-60"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-lg-9 blog-left-panel"> | |
<div style="background-image: url(<?php echo $blog_image ?>);" class="blog-banner"></div> | |
<div class="media py-30"> | |
<div class="media-body"> | |
<h5 class="mt-0 mb-1 text-danger font-montserrat-semibold post-title"><?php echo $post_pod_data[0]->{"post_title"} ?></h5> | |
<p class="mb-0 post-created"><?php echo $post_pod_data[0]->{"post_date"} ?></p> | |
</div> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_facebook_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_twitter_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_g+_share.svg" alt="fb" height="28px"> | |
</div> | |
<p class="py-30 mb-0 pb-0 post-content"><?php echo $post_pod_data[0]->{"post_content"} ?></p> | |
<div class="py-30"> | |
<img class="d-inline-flex" src="<?php bloginfo('template_url'); ?>/images/icons/icon_facebook_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_twitter_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_g+_share.svg" alt="fb" height="28px"> | |
</div> | |
<div class="py-30"> | |
<ul class="list-inline d-flex justify-content-between old-new-post"> | |
<?php if (!empty($previd)) | |
{ ?> | |
<li ><a href="<?php echo $previd_url ?>"><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_left.svg" height="16px"><span class="next-old-post">Old Post</span></a></li> | |
<?php | |
} ?> | |
<?php if (!empty($nextid)) | |
{ ?> | |
<li><a href="<?php echo $nextid_url ?>"><span class="next-old-post">Next Post</span><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_right.svg" height="16px"></a></li> | |
<?php | |
} ?> | |
<!-- <li><a href="<?php# previous_post_link('« « %', '', 'yes'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_left.svg" height="16px"><span>Old Post</span></a></li> | |
<li><a href="<?php# echo esc_url( get_permalink( $next_post->ID ) ); ?>"><span>Next Post</span><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_right.svg" height="16px"></a></li> --> | |
</ul> | |
</div> | |
</div><!-- blog-left-panel --> | |
<div class="col-md-4 col-lg-3 blog-right-panel"> | |
<div class="bg-light-grey text-center"> | |
<h5 class="dealer-heading mb-0 text-center blog-heading text-capitalize">Search</h5> | |
</div> | |
<div class="input-group my-4"> | |
<input type="text" class="form-control form-control-search" placeholder="Search" aria-describedby="basic-addon2"> | |
<span class="input-group-addon btn btn-danger p-2 ml-3" id="basic-addon2">Search</span> | |
</div> | |
<div class="py-60"> | |
<ul class="bg-light-grey text-center list-inline blog-category blog-type"> | |
<li><span class="blog-heading">CATEGORIES</span></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID ) ?>'>Most Recent</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=Spotlight" ?>'>Spotlight</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=News" ?>'>News</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=Videos" ?>'>Videos</a></li> | |
</ul> | |
</div> | |
<ul class="bg-light-grey text-center list-inline blog-category"> | |
<li><span class="blog-heading">OUR BROCHURE</span></li> | |
<?php | |
$brochure_data = brochures(); | |
$brochure_id = $brochure_data[0]->{"brochure_id"}; | |
$doc_brochure_id = $brochure_data[0]->{"doc_brochure_id"}; | |
// $brochure=$brochure_pod->field('brochure')["ID"]; | |
// $doc_brochure=$brochure_pod->field('doc_brochure')["ID"]; | |
// $brochure=pods_image_url( $brochure, $size = null, $default = 0, $force = false ); | |
// $doc_brochure=pods_image_url( $doc_brochure, $size = null, $default = 0, $force = false ); | |
$brochure=pods_image_url( $brochure_id, $size = null, $default = 0, $force = false ); | |
$doc_brochure=pods_image_url( $doc_brochure_id, $size = null, $default = 0, $force = false ); | |
?> | |
<li><a href="<?php echo $brochure?>" download>Download Brochure</a></li> | |
<li><a href="<?php echo $doc_brochure?>" download>Download Doc Brochure</a></li> | |
</ul> | |
<div class="py-60"> | |
<ul class="bg-light-grey list-inline blog-category"> | |
<li><span class="blog-heading">RECENT POSTS</span></li> | |
<?php | |
$post_data = recent_posts(); | |
//var_dump($post_date); | |
foreach ($post_data as $key => $all_posts) { | |
$recent_post_id = $all_posts->ID; //This is Post ID | |
$recentpost_image_id= get_post_meta( $recent_post_id, 'image', true); | |
$recentpost_image=pods_image_url( $recentpost_image_id, $size = null, $default = 0, $force = false ); | |
$post_title = $all_posts->{"post_title"}; | |
$whats_new_url = get_page_link( get_page_by_title( 'whatsNewBlog' )->ID ); | |
$specific_whatsNew_url = $whats_new_url ."?title=".urlencode($post_title); | |
?> | |
<li> | |
<a href="<?php echo $specific_whatsNew_url ?>"> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 recent-post-blog-image" style="background-image: url('<?php echo $recentpost_image ?>')" ></div> | |
<div class="media-body align-self-center"> | |
<h6 class="my-0"><?php echo $post_title?></h6> | |
</div> | |
</div> | |
</a> | |
</li> | |
<?php } ?> | |
</ul> | |
</div> | |
</div><!-- blog-right-panel --> | |
</div> | |
</div> | |
</section> | |
<hr class="divider my-0"> | |
<section class="py-60"> | |
<div class="container blog-media"> | |
<!-- facebook --> | |
<div class="fb-comments" data-href="https://developers.facebook.com/docs/plugins/comments#configurator" data-numposts="5"></div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_1.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">On the other hand, we denounce with righteous indignation and dislike men who are souiled demoralized On the er hand, we denounce with pain and trouble that are bound.</p> | |
</div> | |
</div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_2.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> | |
</div> | |
</div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_3.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> | |
</div> | |
</div> | |
</div> | |
</section> | |
<section class="py-60 bg-grey"> | |
<div class="container blog-recently-viewed"> | |
<h2 class="text-danger dealer-heading text-center">you may also like</h2> | |
<div class="row"> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_wides_1.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_loafing_sheds.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_agricultural_steel_barns.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_wides_1.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<?php get_footer(); ?> | |
------------------------------------------------------------------------------------------------------------- | |
<?php get_header();?> | |
<?php | |
$categories = post_categories(); | |
// var_dump($categories); | |
$domain_name = getDomainData()->name; | |
$post_pod = pods('post'); | |
if($_GET["type"]){ | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name ='".$_GET['type']."' AND d.ID > '".$_GET['postId']."' ", | |
); | |
} else { | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name IN ($categories) AND d.ID > '".$_GET['postId']."' ", | |
); | |
} | |
$post_pod->find($params,$limit=1); | |
// var_dump($post_pod); | |
$post_pod_data = $post_pod->data(); | |
$nextid = $post_pod_data[0]->id; | |
$whats_new_url = get_page_link( get_page_by_title( 'whatsNewBlog' )->ID ); | |
if($_GET['type']){ | |
$nextid_url = $whats_new_url ."?type=".urlencode($_GET['type'])."&"."postId=".urlencode($nextid); | |
}else{ | |
$nextid_url = $whats_new_url ."?blogType=".urlencode('Most Recent')."&"."postId=".urlencode($nextid); | |
} | |
?> | |
<?php | |
$categories = post_categories(); | |
// var_dump($categories); | |
$domain_name = getDomainData()->name; | |
$post_pod = pods('post'); | |
if($_GET["type"]){ | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name ='".$_GET['type']."' AND d.ID < '".$_GET['postId']."' ", | |
); | |
} else { | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name IN ($categories) AND d.ID < '".$_GET['postId']."' ", | |
); | |
} | |
$post_pod->find($params,$limit=1); | |
// var_dump($post_pod); | |
$post_pod_data = $post_pod->data(); | |
$previd = $post_pod_data[0]->id; | |
$whats_new_url = get_page_link( get_page_by_title( 'whatsNewBlog' )->ID ); | |
if($_GET['type']){ | |
$previd_url = $whats_new_url ."?type=".urlencode($_GET['type'])."&"."postId=".urlencode($previd); | |
}else{ | |
$previd_url = $whats_new_url ."?blogType=".urlencode('Most Recent')."&"."postId=".urlencode($previd); | |
} | |
?> | |
<?php | |
$post_pod = pods('post'); | |
$params = array( | |
// "where" => "t.post_title = '".$_GET['title']."'", | |
"where" => "d.ID = '".$_GET['postId']."'", | |
); | |
$post_pod->find($params,$limit=1); | |
$post_pod_data = $post_pod->data(); | |
$post_id = $post_pod_data[0]->ID; //This is Post ID | |
$post_image_id= get_post_meta( $post_id, 'image', true); | |
$blog_image=pods_image_url( $post_image_id, $size = null, $default = 0, $force = false ); | |
?> | |
<ol class="breadcrumb"> | |
<li class="breadcrumb-item"><a href="<?php echo home_url('/')?>">Home</a></li> | |
<li class="breadcrumb-item"><a href="<?php echo get_page_link( get_page_by_title( 'whatsNew' )->ID ); ?>">What’s New</a></li> | |
<li class="breadcrumb-item active"><?php echo $post_pod_data[0]->{"post_title"} ?></li> | |
</ol> | |
<h2 class="text-danger dealer-heading text-center py-40 mb-0">American Steel Blog</h2> | |
<section class="py-60"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-lg-9 blog-left-panel"> | |
<div style="background-image: url(<?php echo $blog_image ?>);" class="blog-banner"></div> | |
<div class="media py-30"> | |
<div class="media-body"> | |
<h5 class="mt-0 mb-1 text-danger font-montserrat-semibold post-title"><?php echo $post_pod_data[0]->{"post_title"} ?></h5> | |
<p class="mb-0 post-created"><?php echo $post_pod_data[0]->{"post_date"} ?></p> | |
</div> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_facebook_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_twitter_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_g+_share.svg" alt="fb" height="28px"> | |
</div> | |
<p class="py-30 mb-0 pb-0 post-content"><?php echo $post_pod_data[0]->{"post_content"} ?></p> | |
<div class="py-30"> | |
<img class="d-inline-flex" src="<?php bloginfo('template_url'); ?>/images/icons/icon_facebook_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_twitter_share.svg" alt="fb" height="28px"> | |
<img class="d-inline-flex ml-3" src="<?php bloginfo('template_url'); ?>/images/icons/icon_g+_share.svg" alt="fb" height="28px"> | |
</div> | |
<div class="py-30"> | |
<ul class="list-inline d-flex justify-content-between old-new-post"> | |
<?php if (!empty($previd)) | |
{ ?> | |
<li ><a href="<?php echo $previd_url ?>"><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_left.svg" height="16px"><span class="next-old-post">Old Post</span></a></li> | |
<?php | |
} ?> | |
<?php if (!empty($nextid)) | |
{ ?> | |
<li><a href="<?php echo $nextid_url ?>"><span class="next-old-post">Next Post</span><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_right.svg" height="16px"></a></li> | |
<?php | |
} ?> | |
<!-- <li><a href="<?php# previous_post_link('« « %', '', 'yes'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_left.svg" height="16px"><span>Old Post</span></a></li> | |
<li><a href="<?php# echo esc_url( get_permalink( $next_post->ID ) ); ?>"><span>Next Post</span><img src="<?php bloginfo('template_url'); ?>/images/icons/icon_arrow_right.svg" height="16px"></a></li> --> | |
</ul> | |
</div> | |
</div><!-- blog-left-panel --> | |
<div class="col-md-4 col-lg-3 blog-right-panel"> | |
<div class="bg-light-grey text-center"> | |
<h5 class="dealer-heading mb-0 text-center blog-heading text-capitalize">Search</h5> | |
</div> | |
<div class="input-group my-4"> | |
<input type="text" class="form-control form-control-search" placeholder="Search" aria-describedby="basic-addon2"> | |
<span class="input-group-addon btn btn-danger p-2 ml-3" id="basic-addon2">Search</span> | |
</div> | |
<div class="py-60"> | |
<ul class="bg-light-grey text-center list-inline blog-category blog-type"> | |
<li><span class="blog-heading">CATEGORIES</span></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID ) ?>'>Most Recent</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=Spotlight" ?>'>Spotlight</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=News" ?>'>News</a></li> | |
<li><a href='<?php echo get_page_link( get_page_by_title( 'WhatsNew' )->ID )."?type=Videos" ?>'>Videos</a></li> | |
</ul> | |
</div> | |
<ul class="bg-light-grey text-center list-inline blog-category"> | |
<li><span class="blog-heading">OUR BROCHURE</span></li> | |
<?php | |
$brochure_data = brochures(); | |
$brochure_id = $brochure_data[0]->{"brochure_id"}; | |
$doc_brochure_id = $brochure_data[0]->{"doc_brochure_id"}; | |
// $brochure=$brochure_pod->field('brochure')["ID"]; | |
// $doc_brochure=$brochure_pod->field('doc_brochure')["ID"]; | |
// $brochure=pods_image_url( $brochure, $size = null, $default = 0, $force = false ); | |
// $doc_brochure=pods_image_url( $doc_brochure, $size = null, $default = 0, $force = false ); | |
$brochure=pods_image_url( $brochure_id, $size = null, $default = 0, $force = false ); | |
$doc_brochure=pods_image_url( $doc_brochure_id, $size = null, $default = 0, $force = false ); | |
?> | |
<li><a href="<?php echo $brochure?>" download>Download Brochure</a></li> | |
<li><a href="<?php echo $doc_brochure?>" download>Download Doc Brochure</a></li> | |
</ul> | |
<div class="py-60"> | |
<ul class="bg-light-grey list-inline blog-category"> | |
<li><span class="blog-heading">RECENT POSTS</span></li> | |
<?php | |
$post_data = recent_posts(); | |
//var_dump($post_date); | |
foreach ($post_data as $key => $all_posts) { | |
$recent_post_id = $all_posts->ID; //This is Post ID | |
$recentpost_image_id= get_post_meta( $recent_post_id, 'image', true); | |
$recentpost_image=pods_image_url( $recentpost_image_id, $size = null, $default = 0, $force = false ); | |
$post_title = $all_posts->{"post_title"}; | |
$whats_new_url = get_page_link( get_page_by_title( 'whatsNewBlog' )->ID ); | |
$specific_whatsNew_url = $whats_new_url ."?title=".urlencode($post_title); | |
?> | |
<li> | |
<a href="<?php echo $specific_whatsNew_url ?>"> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 recent-post-blog-image" style="background-image: url('<?php echo $recentpost_image ?>')" ></div> | |
<div class="media-body align-self-center"> | |
<h6 class="my-0"><?php echo $post_title?></h6> | |
</div> | |
</div> | |
</a> | |
</li> | |
<?php } ?> | |
</ul> | |
</div> | |
</div><!-- blog-right-panel --> | |
</div> | |
</div> | |
</section> | |
<hr class="divider my-0"> | |
<section class="py-60"> | |
<div class="container blog-media"> | |
<!-- facebook --> | |
<div class="fb-comments" data-href="https://developers.facebook.com/docs/plugins/comments#configurator" data-numposts="5"></div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_1.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">On the other hand, we denounce with righteous indignation and dislike men who are souiled demoralized On the er hand, we denounce with pain and trouble that are bound.</p> | |
</div> | |
</div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_2.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> | |
</div> | |
</div> | |
<div class="media"> | |
<div class="d-flex align-self-center mr-3 blog-post-person" style="background-image: url('<?php bloginfo('template_url'); ?>/images/blog/image_person_blog_detail_3.png');"></div> | |
<div class="media-body align-self-center"> | |
<h5 class="mt-0 blog-heading"><span>By Kelvin</span><span>20 July</span><span>10:30 am</span></h5> | |
<p class="mb-0">Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> | |
</div> | |
</div> | |
</div> | |
</section> | |
<section class="py-60 bg-grey"> | |
<div class="container blog-recently-viewed"> | |
<h2 class="text-danger dealer-heading text-center">you may also like</h2> | |
<div class="row"> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_wides_1.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_loafing_sheds.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_agricultural_steel_barns.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="col-md-6 col-lg-3 mb-4 mb-lg-0"> | |
<div class="card"> | |
<div class="card-img-top" style="background-image: url('<?php bloginfo('template_url'); ?>/images/banner/Recently_viewed_wides_1.png');"></div> | |
<div class="card-block"> | |
<h4 class="card-title">Product: Wides – 1</h4> | |
<div class="d-flex justify-content-between"> | |
<span class="text-danger align-self-center">$ 1088</span> | |
<a href="#" class="btn btn-danger py-1 px-2">Modify Build</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<?php get_footer(); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment