<?php if (!empty($recommands['Tour A']) || !empty($recommands['Tour B']) || !empty($recommands['Tour C']) || !empty($recommands['Tour D'])) { ?>
    <div class="articlereco">
        <div class="recotitlebg">
            <h2>Get Inspired with Some Popular Itineraries</h2>
        </div>

        <div class="table-responsive">
            <table >
                <tbody>
                <tr>
                    <td>
                        <?php if (!empty($recommands['Tour A'])) { ?>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Tour A']->ic_url; ?>" rel="nofollow">
                                    <img src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                         originalsrc="<?php echo $recommands['Tour A']->mobile_photo; ?>"
                                         class="img-responsive"
                                         alt="<?php echo $recommands['Tour A']->ic_title; ?>"></a>
                                <span class="articlenexttitle"><a
                                            href="<?php echo $recommands['Tour A']->ic_url; ?>"><?php echo $recommands['Tour A']->ic_title; ?></a>
                                   </span>
                            </div>
                        <?php } ?>
                    </td>
                    <td>
                        <?php if (!empty($recommands['Tour B'])) { ?>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Tour B']->ic_url; ?>" rel="nofollow">
                                    <img src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                         originalsrc="<?php echo $recommands['Tour B']->mobile_photo; ?>"
                                         class="img-responsive" alt="<?php echo $recommands['Tour B']->ic_title; ?>">
                                </a>
                                <span class="articlenexttitle"><a
                                            href="<?php echo $recommands['Tour B']->ic_url; ?>"><?php echo $recommands['Tour B']->ic_title; ?></a>
                           </span>
                            </div>
                        <?php } ?>
                    </td>
                    <td>
                        <?php if (!empty($recommands['Tour C'])) { ?>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Tour C']->ic_url; ?>" rel="nofollow">
                                    <img src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                         originalsrc="<?php echo $recommands['Tour C']->mobile_photo; ?>"
                                         class="img-responsive" alt="<?php echo $recommands['Tour C']->ic_title; ?>">
                                </a>
                                <span class="articlenexttitle"><a
                                            href="<?php echo $recommands['Tour C']->ic_url; ?>"><?php echo $recommands['Tour C']->ic_title; ?></a>
                                    </span>
                            </div>
                        <?php } ?>
                    </td>
                    <td>
                        <?php if (!empty($recommands['Tour D'])) { ?>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Tour D']->ic_url; ?>" rel="nofollow">
                                    <img src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                         originalsrc="<?php echo $recommands['Tour D']->mobile_photo; ?>"
                                         class="img-responsive" alt="<?php echo $recommands['Tour D']->ic_title; ?>">
                                </a>
                                <span class="articlenexttitle"><a
                                            href="<?php echo $recommands['Tour D']->ic_url; ?>"><?php echo $recommands['Tour D']->ic_title; ?></a>
                                   </span>
                            </div>
                        <?php } ?>

                    </td>

                   
                </tr>
                </tbody>
            </table>
        </div>
    </div>
<?php } ?>

<?php if (!empty($recommands['Article A']) || !empty($recommands['Article B']) || !empty($recommands['Article C']) || !empty($recommands['Article D'])) { ?>
    <div class="articlereco">
        <div class="recotitlebg">
            <h2>More Travel Ideas and Inspiration</h2>
        </div>
        <div class="table-responsive">
            <table >
                <tbody>
                <tr>
                    <?php if (!empty($recommands['Article A']) && isset($recommands['Article A']->ic_url)) { ?>
                        <td>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Article A']->ic_url; ?>" rel="nofollow"> <img
                                            src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                            originalsrc="<?php echo empty($recommands['Article A']->mobile_photo) ? $recommands['Article A']->ic_photo_img : $recommands['Article A']->mobile_photo; ?>"
                                            class="img-responsive"
                                            alt="<?php echo $recommands['Article A']->ic_title; ?>"></a>
                                <span class="articlenexttitle">
                                        <a href="<?php echo $recommands['Article A']->ic_url; ?>"> <?php echo $recommands['Article A']->ic_title; ?> </a>
                                </span>
                            </div>
                        </td>
                    <?php } else { ?>
                      <div style='display: none'><?php var_dump($recommands['Article A']); ?></div>
                    <?php } ?>

                    <?php if (!empty($recommands['Article B']) && isset($recommands['Article B']->ic_url)) { ?>
                        <td>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Article B']->ic_url; ?>" rel="nofollow"> <img
                                            src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                            originalsrc="<?php echo empty($recommands['Article B']->mobile_photo) ? $recommands['Article B']->ic_photo_img : $recommands['Article B']->mobile_photo; ?>"
                                            class="img-responsive"
                                            alt="<?php echo $recommands['Article B']->ic_title; ?>"></a>
                                <span class="articlenexttitle">
                                        <a href="<?php echo $recommands['Article B']->ic_url; ?>"> <?php echo $recommands['Article B']->ic_title; ?> </a>
                                  </span>
                            </div>
                        </td>
                    <?php } else { ?>
                      <div style='display: none'><?php var_dump($recommands['Article B']); ?></div>
                    <?php } ?>

                    <?php if (!empty($recommands['Article C']) && isset($recommands['Article C']->ic_url)) { ?>
                        <td>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Article C']->ic_url; ?>" rel="nofollow"> <img
                                            src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                            originalsrc="<?php echo empty($recommands['Article C']->mobile_photo) ? $recommands['Article C']->ic_photo_img : $recommands['Article C']->mobile_photo; ?>"
                                            class="img-responsive"
                                            alt="<?php echo $recommands['Article C']->ic_title; ?>"></a>
                                <span class="articlenexttitle">
                                        <a href="<?php echo $recommands['Article C']->ic_url; ?>"> <?php echo $recommands['Article C']->ic_title; ?> </a>
                                   </span>
                            </div>
                        </td>
                    <?php } else { ?>
                      <div style='display: none'><?php var_dump($recommands['Article C']); ?></div>
                    <?php } ?>

                    <?php if (!empty($recommands['Article D']) && isset($recommands['Article D']->ic_url)) { ?>
                        <td>
                            <div class="articlenext">
                                <a href="<?php echo $recommands['Article D']->ic_url; ?>" rel="nofollow"> <img
                                            src="https://data.chinahighlights.com/grey.gif" loader="lazy"
                                            originalsrc="<?php echo empty($recommands['Article D']->mobile_photo) ? $recommands['Article D']->ic_photo_img : $recommands['Article D']->mobile_photo; ?>"
                                            class="img-responsive"
                                            alt="<?php echo $recommands['Article D']->ic_title; ?>"></a>
                                <span class="articlenexttitle">
                                        <a href="<?php echo $recommands['Article D']->ic_url; ?>"> <?php echo $recommands['Article D']->ic_title; ?> </a>
                                    </span>
                            </div>
                        </td>
                    <?php } else { ?>
                      <div style='display: none'><?php var_dump($recommands['Article D']); ?></div>
                    <?php } ?>

                  
                </tr>
                </tbody>
            </table>
        </div>
    </div>
<?php } ?>