<div class="infopage_ad_content">
    <?php if (!empty($recommands['Content Tour A']) || !empty($recommands['Content Tour B']) || !empty($recommands['Content Tour C']) || !empty($recommands['Content Tour D'])) { ?>
        <div class="content_article_title">Explore similar itineraries:</div>     
                    <?php if (!empty($recommands['Content Tour A'])) { ?>
                       <div class="infopage_ad">
                            <a href="<?php echo $recommands['Content Tour A']->ic_url; ?>"> <img
                                        src="https://data.asiahighlights.com/grey.gif" loader="lazy"
                                        originalsrc="<?php echo $recommands['Content Tour A']->desktop_photo; ?>"
                                        class="img-responsive"
                                        alt="<?php echo $recommands['Content Tour A']->ic_title; ?>"></a>

                            <div class="content_article_name"><a
                                        href="<?php echo $recommands['Content Tour A']->ic_url; ?>"> <?php echo $recommands['Content Tour A']->ic_title; ?> </a>
                            </div>
                            <div class="content_article_button"><a
                                        href="<?php echo $recommands['Content Tour A']->ic_url; ?>"></a>
                            </div>
                        </div>
                    <?php } ?>

                    <?php if (!empty($recommands['Content Tour B'])) { ?>
                       <div class="infopage_ad">
                            <a href="<?php echo $recommands['Content Tour B']->ic_url; ?>"> <img
                                        src="https://data.asiahighlights.com/grey.gif" loader="lazy"
                                        originalsrc="<?php echo $recommands['Content Tour B']->desktop_photo; ?>"
                                        class="img-responsive"
                                        alt="<?php echo $recommands['Content Tour B']->ic_title; ?>"></a>

                            <div class="content_article_name"><a
                                        href="<?php echo $recommands['Content Tour B']->ic_url; ?>"> <?php echo $recommands['Content Tour B']->ic_title; ?> </a>
                            </div>
                            <div class="content_article_button"><a
                                        href="<?php echo $recommands['Content Tour B']->ic_url; ?>"></a>
                            </div>
                        </div>
                    <?php } ?>


                    <?php if (!empty($recommands['Content Tour C'])) { ?>
                       <div class="infopage_ad">
                            <a href="<?php echo $recommands['Content Tour C']->ic_url; ?>"> <img
                                        src="https://data.asiahighlights.com/grey.gif" loader="lazy"
                                        originalsrc="<?php echo $recommands['Content Tour C']->desktop_photo; ?>"
                                        class="img-responsive"
                                        alt="<?php echo $recommands['Content Tour C']->ic_title; ?>"></a>

                            <div class="content_article_name"><a
                                        href="<?php echo $recommands['Content Tour C']->ic_url; ?>"> <?php echo $recommands['Content Tour C']->ic_title; ?> </a>
                            </div>
                            <div class="content_article_button"><a
                                        href="<?php echo $recommands['Content Tour C']->ic_url; ?>"></a>
                            </div>
                        </div>
                    <?php } ?>

                    <?php if (!empty($recommands['Content Tour D'])) { ?>
                       <div class="infopage_ad">
                            <a href="<?php echo $recommands['Content Tour D']->ic_url; ?>"> <img
                                        src="https://data.asiahighlights.com/grey.gif" loader="lazy"
                                        originalsrc="<?php echo $recommands['Content Tour D']->desktop_photo; ?>"
                                        class="img-responsive"
                                        alt="<?php echo $recommands['Content Tour D']->ic_title; ?>"></a>

                            <div class="content_article_name"><a
                                        href="<?php echo $recommands['Content Tour D']->ic_url; ?>"> <?php echo $recommands['Content Tour D']->ic_title; ?> </a>
                            </div>
                            <div class="content_article_button"><a
                                        href="<?php echo $recommands['Content Tour D']->ic_url; ?>"></a>
                            </div>
                        </div>
                    <?php } ?>

    <?php } ?>
</div>