<?php
$plan_id = listing_get_metabox_by_ID('Plan_id',$post->ID);
if(empty($plan_id)){
	$plan_id = 'none';
}
$map_show = get_post_meta( $plan_id, 'map_show', true );
$social_show = get_post_meta( $plan_id, 'listingproc_social', true );
$location_show = get_post_meta( $plan_id, 'listingproc_location', true );
$contact_show = get_post_meta( $plan_id, 'contact_show', true );
$website_show = get_post_meta( $plan_id, 'listingproc_website', true );

if($plan_id=="none"){
	$map_show = 'true';
	$social_show = 'true';
	$location_show = 'true';
	$contact_show = 'true';
	$website_show = 'true';
}
$whatsapp = listing_get_metabox('whatsapp');
if(!empty( $latitude ) && !empty($longitude) && $map_show == 'true' ):
    $lp_map_pin = $listingpro_options['lp_map_pin']['url'];

?>
	<span class="singlebigmaptrigger" data-lat="<?php echo esc_attr($latitude); ?>" data-lan="<?php echo esc_attr($longitude); ?>"></span>
    <div id="singlepostmap" class="singlemap lp-widget-inner-wrap" data-lat="<?php echo $latitude; ?>" data-lan="<?php echo $longitude; ?>" data-pinicon="<?php echo esc_attr($lp_map_pin); ?>"></div>
<?php endif; ?>
    <ul class="widget-social-icons">
        <?php
        if( $gAddress && $location_show == 'true' ):
        ?>
            <li>
                <p>
                    <span class="social-icon">
                        <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAVTSURBVGhD7ZpbaB1lFIUTjVrvWlBj0b6oVRAFq0gLKjXgBdSi1YgIYvvg0Sp5iPGYe4L2wRvWFCxWQdGH4l1bKWjQFrERBEG8oNYLWhUaGlFb7cVgG/3WuEZSZ87knMx/TlLogs0/s/aetfefufyXk7oDSEF/f/8s7E7sBezTvr6+32j/ph3FhrGNnA/09vZeVSgUDvFl0wc9PT1nU+AabI8KL9NG6Fg37RGWmTp0dnaeQDFPY3td3J8cv4ndzvEFmO5QQ1tb25G0c7Am7EH8X9LGHdrC+RJL1h7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kec9LXTeWCv4h70BvNs/1aMTxninZIeEEvNT1poBO9G9hyU7UDHSkqOe0neeZDaERrE2wEC7djUi70EwCJv3YRk5pKaN7GH+IradAuNV17UMC17sjIZH4OoPhog4E2c0elJqCIt92ZVabKAvGaqv/ua5tMTx344pxBIdqQG6vkxSc+2qzDMleUNQXF3O2ivs3a+4pB3GLFczeHaTPXJjWF93yHVBz2uOlUaJwgRvvB+nRfZ3r6YPwjhl1teh/AH4RtwHQ3njc9/UCB+mcB3ZWRtPkSfLyrr98/ps8jlQYK1JpcnXkP+28BxvFFdCBe+VXnZ7WQ0G/tFBxt5dBGu4Qca6IZb/KF23CrNij2Qv/11ZnbaHV3dLx+yge+SkHR2tPSHYhts/aI7d6/QPHxDqV2IOea3v/g8aUPK7lnfAD7oK7uH8W58IIxQYqrAAAAAElFTkSuQmCC">
                    </span>
                    <?php echo $gAddress; ?>
                </p>
                <a class="addr-margin" href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"><?php echo esc_html__( 'Get Directions', 'listingpro' ); ?></a>
            </li>
            <?php
        endif;
        if( $phone && $contact_show == 'true' ):
        ?>
            <li class="lp-listing-phone">
                <span class="social-icon">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQ7SURBVGhD7ZnJaxRBGMWTGOIKxi24ouICKir+BYroQQRBIYre9WSMMWgyyWRy8JKDQT2qqKDGXVAhUURB0KiQk+bghqKCCwoqiPv6+8avmm8qM0kMmekW5sGj0/W+7nrPmq6uLgvyyCOP/kV9ff3khoaGpY2NjVO06f8CxockEokWjr/gbzlyfqympma4lkQfEgJe1gApJEw7x2FaGl1gsgSzF6x5+No7vwqH6CXRA+YkxDljWHgEFtO+z2u/BAfppdFBeXn5AMyesmY5PyHtWlJI2wFPb+V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K2n1DeR088LVohLDA2FtO7oXzfW9M+oxvCQiYEjG6GD9S44xdCyur4n2a40IHhIt4Ns3Tncsl/FyCPPCKPgoI/S9eiHsJFoB4AAAAASUVORK5CYII=">
                </span>
                <a data-lpid="<?php echo $post->ID; ?>" class="phone-link" href="tel:<?php echo $phone; ?>"><?php echo $phone; ?></a>
            </li>
            <?php
        endif;
									$whatsappStatus = $listingpro_options['lp_detail_page_whatsapp_button'];
										$whatsappMsg = esc_html__('Hi, Contacting for you listing', 'listingpro');
										if($whatsapp && $contact_show == 'true' && $whatsappStatus=="on" && $phone){
											
											$whatsappobj = "https://api.whatsapp.com/send?";
											$whatsappobj .= "phone=$whatsapp";
											$whatsappobj .= "&";
											$whatsappobj .= "text=$whatsappMsg";
									?>
											<li class="lp-listing-phone-whatsapp">
												<a href="<?php echo $whatsappobj; ?>" target="_blank">
													<span class="social-icon">
														<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAW3SURBVGhD7ZpnqB1FGIavFXvvYiHEXhE7WFBsAaMiGgvGgigq2OsPFVRULNiwguVHothQsSUQE3vE9kOxgr33hr0+z3A/PW529+yec+YmhLzwwJ3Z2TOzOzNfmb1DczQba1U4BG6AR+Fj+B7+hj/ga3gd7oXzYWdYCGYJLQUnwAvggNvyE9wGu8FcMOJaBi6GHyAG9QXcAcfA9rASLAChxWFt2BPOgyfBmYr7X4J9YUQeyE6OgK/Azv8Cl8ruMB+0lQ97IrwN8UAuy3Ugm5yFByA6vA82gEFoXjgYPgJ/+2fwhQ1c68L7YCefgDOQQ4vAVeBM29eN4EMORJtBLKVHYAXILffRN2Cf98P80JdcOp+DP6h16fsHW2hD0ITb910wD/Qk90QspwkwN4y0RkO8yEutaCut04PgD0yDkZyJorYA/Y37ZqwVbaTF8CHc2MtbUaMlYEnoeeob6EhwPM7O0l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aeYrIgdnpNup578yJzeVdS03WoeZ5dcsH8LxdMtc/yetSOspzCCX04XgWHyxrQ+vPcHzZr/Uzix5ShLnvDrWvaC14htet4+RLrvOL7aDkiY2rJNfAraB1opgTOdUlDmE+YYp7mOg4xLjKQ+X+5VBZDg78WCj5098kXWZOywM2na/hz8BEbkGnjRGHuHfD4MBocaiidwDvjgDQPP++F1XRJ1nbyRDh/ixGGTgYKeDG1AvbVRr3HQRxDGQGPU6ML83ngseHR0OntOeAvomH9pvKZ2/b+xk5DuQ5doZPvgg+hP/Z2QX8LNxlZw936KeuvOhumEI5NLcFgb6fdK35lv0+4aD60UOaE3wwU4DZ9DBmqf4t58t3A9mhXM0G2to6B+XSrpoIoymAgAAAABJRU5ErkJggg==">
													</span>
													<span>
														<?php echo esc_html__('Whatsapp', 'listingpro'); ?>
													</span>
												</a>
											</li>
									<?php
										}
        if( $website && $website_show == 'true'):
        ?>
            <li class="lp-user-web">
                <span class="social-icon">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAgUSURBVGhD7ZoHjBVFHMa5U7FhQxNr8IxYYy8RFRUjmqjBEjkVsSXqWQ8lJ14B7gQBNYFIjIkFQexBBDUaEyPBnlgQYo29REXFeop6CIi/b++bd/fem917DziRhC/5MvO+/zczO7uzs7Ozr8c6lIDa2toNGxoathIt/b/R0tJSOXr06IObm5vryD8K34VtcEVnEv+B9GXS2+GQxsbGbV3FmgUHVQXHcVBfhoMth5RbDp8lfz7s6Wr/O4wcOXJXGp7OQSwNBwW/C3n0JfBm8qf59yukJ5E+FzzwN5i7asS+grXk13cz3Qca6Qmb4Z9ufAnpdDiA/L3WviHtJ/+oUaP2tfaSy1eSH0P6j8oyHE8lXwPnyWdqWB4tf7eAq7ALjb+hxkiXkz6gK6MY+Sukw1918EkBUNiRAH7faP8iuANSB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X6CbQSB+o2SQ0ql15DYWwRSPeoSVEYUfI7wP1yUCeH6E2EcLaST49OLUo7P5v7QE01k9nFIYvsHlE/5Y0LD30jj2bNPZAVfwnqO/vmfu+3Qoa1xVq4kBeI40uW2L0wc8kPzhzAbgmoJUt4/14DvBKDvBW0ntI9T1kBryTvP63MpQhdyD5zPf9dVi70aPHv0173aiHbRipAAAAAElFTkSuQmCC">
                </span>
                <a data-lpid="<?php echo $post->ID; ?>" href="<?php echo $website; ?>" target="_blank"><?php echo $website; ?></a>
            </li>
        <?php
        endif;
        if( $social_show == 'true' && ( !empty($facebook) || !empty($twitter) || !empty( $google_plus ) || !empty( $youtube ) || !empty( $instagram ) ) ):
        ?>
            <li class="lp-widget-social-links">
                <?php if( !empty($facebook) ): ?><a href="<?php echo $facebook; ?>" target="_blank"><i class="fa fa-facebook-official" aria-hidden="true"></i></a><?php endif;; ?>
                <?php if( !empty($google_plus) ): ?> <a href="<?php echo $google_plus; ?>" target="_blank"><i class="fa fa-google-plus-square" aria-hidden="true"></i></a><?php endif; ?>
                <?php if( !empty($twitter) ): ?> <a href="<?php echo $twitter; ?>" target="_blank"><i class="fa fa-twitter-square" aria-hidden="true"></i></a><?php endif; ?>
                <?php if( !empty($youtube) ): ?><a href="<?php echo $youtube; ?>" target="_blank"><i class="fa fa-youtube-square" aria-hidden="true"></i></a><?php endif; ?>
                <?php if( !empty($instagram) ): ?><a href="<?php echo $instagram; ?>" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a><?php endif; ?>
	            <?php if(!empty($linkedin)){ ?>

                    <a href="<?php echo $linkedin; ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
                    </a>

	            <?php } ?>
                <div class="clearfix"></div>
            </li>
        <?php endif; ?>
    </ul>