<?php
$plan_id = listing_get_metabox_by_ID('Plan_id',get_the_ID());
if(!empty($plan_id)){
    $plan_id = $plan_id;
}else{
    $plan_id = 'none';
}
$metabox = get_post_meta($post->ID, 'lp_' . strtolower(THEMENAME) . '_options', true);

$contact_show = get_post_meta( $plan_id, 'contact_show', true );
$map_show = get_post_meta( $plan_id, 'map_show', true );
$video_show = get_post_meta( $plan_id, 'video_show', true );
$gallery_show = get_post_meta( $plan_id, 'gallery_show', true );
$tagline_show = get_post_meta( $plan_id, 'listingproc_tagline', true );
$location_show = get_post_meta( $plan_id, 'listingproc_location', true );
$website_show = get_post_meta( $plan_id, 'listingproc_website', true );
$social_show = get_post_meta( $plan_id, 'listingproc_social', true );
$faqs_show = get_post_meta( $plan_id, 'listingproc_faq', true );
$price_show = get_post_meta( $plan_id, 'listingproc_price', true );
$tags_show = get_post_meta( $plan_id, 'listingproc_tag_key', true );
$hours_show = get_post_meta( $plan_id, 'listingproc_bhours', true );

if($plan_id=="none"){
    $contact_show = 'true';
    $map_show = 'true';
    $video_show = 'true';
    $gallery_show = 'true';
    $tagline_show = 'true';
    $location_show = 'true';
    $website_show = 'true';
    $social_show = 'true';
    $faqs_show = 'true';
    $price_show = 'true';
    $tags_show = 'true';
    $hours_show = 'true';
}

?>
<div class="container">
    <div class="lp-listing-detail-page-content" id="detail5-content">
        <div class="row">
            <div class="pull-left lp-left-title">
                <h2><?php echo esc_html__('Overview', 'listingpro'); ?></h2>
            </div>
            <div class="col-md-12 lp-right-content-box">								<?php $website = listing_get_metabox('website'); 									$facebook = listing_get_metabox('facebook');									$twitter = listing_get_metabox('twitter');									$linkedin = listing_get_metabox('linkedin');									$google_plus = listing_get_metabox('google_plus');									$youtube = listing_get_metabox('youtube');									$instagram = listing_get_metabox('instagram');									?>
                <div class="clearfix padding-bottom-40 ">									<?php echo listing_all_extra_fields($post->ID); ?>																	<?php																		if(!empty($website) || $social_show=="true" || !empty($facebook) || !empty($twitter) || !empty($linkedin) || !empty($google_plus) || !empty($youtube) || !empty($instagram) ){									?>										<div class="lp-social-box">																				<ul>											<?php if(!empty($website)) { 														if($website_show=="true"){?>											<li class="clearfix"><div class="pull-left lp-first-pull-left"><img src="data:image/png;base64,[encoded data, 19096 characters]"> <strong><?php echo esc_html__('Website', 'listingpro'); ?></strong></div>												<div class="pull-left">																<a data-lpID="<?php echo $post->ID; ?>" href="<?php echo esc_url($website); ?>" target="_blank" rel="nofollow">																																		<span><?php echo esc_url($website); ?></span>																</a>																											</div>													</li>											<?php } ?>											<?php } ?>											<?php if($social_show=="true"){												if(empty($facebook) && empty($twitter) && empty($linkedin) && empty($google_plus) && empty($youtube) && empty($instagram)){}else{													?>											<li class="clearfix"><div class="pull-left lp-first-pull-left"><img src="data:image/png;base64,[encoded data, 11920 characters]"> <strong><?php echo esc_html__('Follow Social', 'listingpro'); ?></strong></div>																							<div class="pull-left">															<?php if(!empty($facebook)){ ?>																															<a href="<?php echo esc_url($facebook); ?>" class="margin-left-20" target="_blank">																	<i class="fa fa-facebook"></i>																																	</a>																													<?php } ?>														<?php if(!empty($twitter)){ ?>																															<a href="<?php echo esc_url($twitter); ?>" class="padding-left-0" target="_blank">																	<i class="fa fa-twitter"></i>																																	</a>																													<?php } ?>														<?php if(!empty($linkedin)){ ?>																															<a href="<?php echo esc_url($linkedin); ?>" class="padding-left-0" target="_blank">																	<i class="fa fa-linkedin"></i>																</a>																													<?php } ?>														<?php if(!empty($google_plus)){ ?>																															<a href="<?php echo esc_url($google_plus); ?>#" class="padding-left-0" target="_blank">																	<i class="fa fa-google-plus"></i> 																</a>																													<?php } ?>														<?php if(!empty($youtube)){ ?>																															<a href="<?php echo esc_url($youtube); ?>#" class="padding-left-0" target="_blank">																	<i class="fa fa-youtube"></i> 																</a>																													<?php } ?>														<?php if(!empty($instagram)){ ?>																															<a href="<?php echo esc_url($instagram); ?>#" class="padding-left-0" target="_blank">																	<i class="fa fa-instagram"></i> 																</a>																													<?php } ?>																											</div>																						</li>											<?php } ?>										<?php } ?>										</ul>									</div>									<?php } ?>								</div>								<?php																		$listingContent = get_the_content($post->ID);									if ( $listingContent!=="" ) {								?>										<div class="post-row">
                    <div class="">

                        <h3><?php echo esc_html__('About', 'listingpro'); ?></h3>

                    </div>
                    <div class="post-detail-content">

                        <?php the_content(); ?>											</div>										</div>								<?php									}								?>							</div>
        </div>
    </div>
</div>
