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/front-page.php
<?php get_header(); ?>



        <br class="breakline"/>

		<?PHP echo do_shortcode('[displayimageslider slidername="main-page-image-slider" slidercategory="image-slider" header="" caption=""]'); ?>        

        

	</div><!-- header -->

    

    <div id="content">

            

        <div class="mainholder01">

        

			<div class="contentholder txtcenter txtclrwhite">

            

            	<?php

					/* Post Title: Bringing you Nature’s Legacy */

                	$post = get_post(10);

					echo '<h2>'. $post->post_title .'</h2><p>&nbsp; </p>';

					echo '<p>'. do_shortcode($post->post_content) .'</p>';

				?>

            </div><!-- contentholder -->

            

            <div class="contentholder txtcenter txtclrblack bgwhite">

            	<?php

					/* Our Solutions */

					echo '<h2>Our Skin Solutions</h2><p>&nbsp; </p>';

				?>

				<?php

                $childcats = get_categories('parent=' . 13 . '&hide_empty=1');

                foreach ($childcats as $childcat) {

                  if (cat_is_ancestor_of($ancestor, $childcat->cat_ID) == false){

                      

                    echo '<div class="solutionsholder">

                        <a href="'.get_category_link($childcat->cat_ID).'">

                        <div class="solutions">

                        <div class="solmain">';

						

						// QUERY IMAGE FIELD OF CATEGORY

						$taxonomy = $childcat->taxonomy;

						$term_id = $childcat->term_id;  

						$thumbnail = get_field('thumbnail_image', $taxonomy . '_' . $term_id);

						if(!empty($thumbnail)){

							echo '<img src="'.  $thumbnail .'" />';

						}

						// QUERY IMAGE FIELD OF CATEGORY

											

                    echo '</div>

                        <div class="solprod">';

                

						$solpost = new WP_Query(array('cat' => $childcat->cat_ID, 'meta_key'=>'featured', 'meta_value'=>'1', 'meta_compare'=>'=','post_type' => 'product', 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => 1));

						if( $solpost->have_posts() ) : while( $solpost->have_posts() ) : $solpost->the_post();

							$postId = get_the_ID();

							$postLink = get_permalink();

							echo get_the_post_thumbnail($postId);

						endwhile; endif; 	

						wp_reset_postdata();	                

                    

                    echo '</div></div><p>'. $childcat->cat_name . '</p></a></div>';

                

                  }

                }

                ?>               

                <br class="breakline">

            </div><!-- contentholder -->

            

            <div class="contentholder txtcenter txtclrwhite">

            	<?php

					/* Post Title: Join DermoViva Family */

                	$post = get_post(15);

					echo '<h2>'. $post->post_title .'</h2><p>&nbsp; </p>';

					echo '<p>'. do_shortcode($post->post_content) .'</p>';

				?>

            </div><!-- contentholder -->

            

            <br class="breakline"/>

            

            <div class="contentcol01">

            	<a href="<?php echo getLinkByTitle('Video Gallery'); ?>">

                 <div class="galleryhold">
                    <div class="galleryimg"><img src="<?php the_field('main_image',51); ?>" /></div>
                    <div class="gallerytxt">Video Gallery</div>
                    <br class="breakline">
                </div>

                </a>

            </div><!-- contentcol01 -->

            

            <div class="contentcol01">

            	<a href="<?php echo getLinkByTitle('Photo Gallery'); ?>">

                 <div class="galleryhold">
                    <div class="galleryimg"><img src="<?php the_field('main_image',53); ?>" /></div>
                    <div class="gallerytxt">Photo Gallery</div>
                    <br class="breakline">
                </div>

                </a>

            </div><!-- contentcol01 -->

            

             <br class="breakline"/>

             

             <p style="height:5px">&nbsp;</p>

        

        </div><!-- mainholder01 -->

        

    </div><!-- content -->       



<?php get_footer(); ?>

<!-- HOME -->