File: /var/www/info.viitorcloud.in/wp-content/themes/infoviitorcloud/single.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
//get_header(); ?>
<link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/assets/css/product-style.css">
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
?>
<div class="lightboxcontainer">
<div class="products-lightbox">
<?php if(has_post_thumbnail()){?>
<div class="product-image">
<img src="<?php echo get_the_post_thumbnail_url( get_the_ID(), 'full' ); ?>">
</div>
<?php }
$googleplay = get_field('googleplay_link');
$playstore_btn = get_field('playstore_link');
if(!empty($googleplay)){?>
<div class="playstore_button">
<div class="title">
<h3>Download application from</h3>
</div>
<?php
if(!empty($googleplay)){
?>
<div class="googleplay_btn buttons_playstore">
<a href="<?php echo $googleplay;?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/gplay.png" alt="" title=""></a>
</div>
<?php }
if(!empty($playstore_btn)){
?>
<div class="googleplay_btn buttons_playstore">
<a href="<?php echo $playstore_btn; ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/app-store.png" alt="" title=""></a>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="product-description">
<h3>About <?php the_title(); ?></h3>
<?php the_content(); ?>
</div>
</div>
<div style="clear:both;"></div>
</div>
<?php
endwhile; // End of the loop.
?>