MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/me/wp-content/themes/dermoviva-en/single-product.php
<?php get_header(); ?>
 
 		<br class="breakline"/>
        
 	</div><!-- header -->
    
	<div id="content">
		<div class="mainholder01">
            <div class="contentholder txtclrblack bgwhite">
            <div class="breadcrumb"><a href="http://dermoviva.com/me">Home</a>&nbsp;&nbsp;>&nbsp;&nbsp;Our Products&nbsp;&nbsp;>&nbsp;&nbsp;<?php the_title(); ?></div>
            <?php 
            
            $post = get_post();
            
            if ($post) {
                setup_postdata($post);
                ?>
                
                <div class="contentcol03 padtop3percent">
                <div class="pad10">
                    <h1><?php the_title(); ?></h1>
                    <p>&nbsp;</p>
                    <?php the_content(); ?>
                    <p>&nbsp;</p>
                    <?php
					
					//str_replace("world","Peter","Hello world!");
					$vid1 = get_field('video_1');
					$vid2 = get_field('video_2'); 
					$vid3 = get_field('video_3'); 
					
					if(!empty($vid1)) {
						echo '<div class="videoholder"><a class="youtube fancybox.iframe" href="'.$vid1.'"></a></div>';
					}	
					if(!empty($vid2)) {
						echo '<div class="videoholder"><a class="youtube fancybox.iframe" href="'.$vid2.'"></a></div>';
					}
					if(!empty($vid3)) {
						echo '<div class="videoholder"><a class="youtube fancybox.iframe" href="'.$vid3.'"></a></div>';
					}
										
					?>
                </div><!-- pad10 -->
                </div><!-- contentcol03 -->
                
                <div class="contentcol03">
                    <?php 
						$image = get_field('product_image'); 
						$imagebg = get_field('product_image_background'); 
					?>
                    <?php if( !empty($image) ): ?>
                    <div class="bgproduct01"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" class="objcenter imgadapt" /></div>
                    
                    	<?php if( !empty($imagebg) ): ?>
                        	<script> //$('.bgproduct01').css({'background-image':'url("<?php //echo $imagebg; ?>")'}); </script>
                        <?php endif; ?><?php endif; ?>
                </div><!-- contentcol03 -->
                
                <br class="breakline"/>
                <p>&nbsp;</p>
                
                <div class="contentcol03 floatright">
                <div class="pad10">
                    <?php $ingredients = get_field('ingredients'); ?>
                    <?php if( !empty($ingredients) ): ?>
                    <?php echo $ingredients; ?>
                    <?php else: ?>
                    <p>&nbsp;</p>
                    <?php endif; ?>    
                </div><!-- pad10 -->            
                </div><!-- contentcol03 -->
                
                <div class="contentcol03 floatleft">
                    <?php $image = get_field('ingredients_image'); ?>
                    <?php if( !empty($image) ): ?>
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" class="objcenter imgadapt imgoffsettop" />
                    <p>&nbsp;</p>
					<?php else: ?>
                    <p>&nbsp;</p>
                    <?php endif; ?>
                </div><!-- contentcol03 -->
                
                <br class="breakline"/>
                
                <?php
            }
            ?>
            </div><!-- contentholder -->
   		</div><!-- mainholder02 -->
            
        <?php wp_reset_postdata(); ?>
        
	</div><!-- content -->
  
<?php get_footer(); ?>
<!-- SINGLE PRODUCT -->