</div></td></tr>
<tr>
    <td class="root_table__bottom" align="center" colspan="2">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="5">
                    <div class="footer_table_link background_grey">
                        <div class="max_width">
                            <table cellspacing="0" cellpadding="0" width="100%">
                                <tbody valign="top">
                                <tr>
                                    <?php
                                    Cat::menuInit();
                                    $culture = $sf_user->getCulture();
                                    $i = 0;
                                    $single_menus = '';
                                    $pathinfo = $sf_request->getPathInfo();
                                    foreach (Cat::$menu as $menu_key => $menu){
                                        $url = ($pathinfo == url_for('@catalog_show?alias=' . $menu['alias']) ? '' : url_for('@catalog_show?alias=' . $menu['alias']));
                                        if($menu_key < 3){
                                            echo '<td>';
                                            echo '<ul class="footer_table_link__ul">';
                                            echo '<li><' . ($url ? 'a href="' . $url . '"' : 'span') . ' class="black_link big">' . $menu['Translation'][$culture]['title'] . '</' . ($url ? 'a' : 'span') . '></li>';
                                            if(strpos($menu['alias'], 'kamen') !== false && count($menu['Products']) > 0){
                                                foreach ($menu['Products'] as $product){
                                                    if($product['offer_count'] > 0 && $product['is_detail']){
                                                        $url = ($pathinfo == url_for('@product_show?alias=' . $product['alias']) ? '' : url_for('@product_show?alias=' . $product['alias']));
                                                        echo '<li><' . ($url ? 'a href="' . $url . '"' : 'span') . ' class="black_link">' . $product['Translation'][$culture]['title'] . '</' . ($url ? 'a' : 'span') . '></li>';
                                                    }
                                                }
                                            }
                                            if(count($menu['Children']) > 0){
                                                foreach ($menu['Children'] as $cat){
                                                    $url = ($pathinfo == url_for('@catalog_show?alias=' . $cat['alias']) ? '' : url_for('@catalog_show?alias=' . $cat['alias']));
                                                    echo '<li><' . ($url ? 'a href="' . $url . '"' : 'span') . ' class="black_link">' . $cat['Translation'][$culture]['title'] . '</' . ($url ? 'a' : 'span') . '></li>';
                                                }
                                                echo '<li></li>';
                                            }
                                            echo '</ul>';
                                            echo '</td>';
                                            if(($i % 2) == 0){
                                                echo '<td width="70">&nbsp;</td>';
                                                $i--;
                                            }
                                            $i++;
                                        }else{
                                            $single_menus .= '<li><' . ($url ? 'a href="' . url_for('@catalog_show?alias=' . $menu['alias']) . '"' : 'span') . ' class="black_link big">' . $menu['Translation'][$culture]['title'] . '</' . ($url ? 'a' : 'span') . '></li>';
                                            if(count($menu['Children']) > 0){
                                                foreach ($menu['Children'] as $cat){
                                                    $url = ($pathinfo == url_for('@catalog_show?alias=' . $cat['alias']) ? '' : url_for('@catalog_show?alias=' . $cat['alias']));
                                                    $single_menus .= '<li><' . ($url ? 'a href="' . $url . '"' : 'span') . ' class="black_link">' . $cat['Translation'][$culture]['title'] . '</' . ($url ? 'a' : 'span') . '></li>';
                                                }
                                                $single_menus .= '<li><i class="br1"></i></li>';
                                            }
                                        }
                                    }
                                    if($single_menus != ''){
                                        echo '<td><ul class="footer_table_link__ul">' . $single_menus . '</ul></td>';
                                        if(($i % 2) == 0){
                                            echo '<td width="70">&nbsp;</td>';
                                            $i--;
                                        }
                                        $i++;
                                    }
                                    ?>
                                    <td>
                                        <?php
                                        include_component('main', 'menu', array('type' => 'bottom'));
                                        ?>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="footer_table_main">
                        <div class="max_width">
                            <table class="footer_table_main__wrap to_div" cellspacing="0" cellpadding="0" width="100%">
                                <tbody valign="middle">
                                <tr>
                                    <td width="1">
                                        <img src="/i/logo-black.svg" class="mobile_hide" width="100" height="51"/>
                                    </td>
                                    <td width="30"></td>
                                    <td width="140" style="color: #000000">
                                        2017 © Иди в баню<br><?php echo __('Все права защищены');?>
                                    </td>
                                    <td width="80"></td>
                                    <td>
                                        <i class="br15 mobile"></i>
                                        <a href="<?php echo csSettings::get('tg') ?>" class="icon_sc" target="_blank"><img src="/i/telegram.svg"></a>
                                        <a href="<?php echo csSettings::get('vk') ?>" class="icon_sc" target="_blank"><img src="/i/vk.svg"></a>
                                        <a href="<?php echo csSettings::get('yt') ?>" class="icon_sc" target="_blank"><img src="/i/youtube.svg"></a>
                                        <a href="tel:<?php echo csSettings::get('ws') ?>" class="icon_sc" target="_blank"><img src="/i/whatsapp.svg"></a>
                                        <a href="<?php echo csSettings::get('facebook') ?>" class="icon_sc" target="_blank"><img src="/i/facebook.svg"></a>
                                        <a href="<?php echo csSettings::get('instagram') ?>" class="icon_sc" target="_blank"><img src="/i/instagram.svg"></a>
                                    </td>
                                    <td>
                                        <nobr>
                                            <?php
                                            /*
                                            foreach (array('tg', 'vk', 'tw', 'yt', 'ws') as $slug) {
                                                if (csSettings::get($slug)) {
                                                    echo '<a href="' . csSettings::get($slug) . '" class="footer_table_main__link footer_table_main__link_contact footer_table_main__link_' . $slug . '"></a>';
                                                }
                                            }
                                            */
                                            ?>
                                        </nobr>
                                    </td>
                                    <td width="80"></td>
                                    <td align="right" class="mobile_hide">
                                        <a href="https://atma.company" class="footer_table_main__link_atma black_link anb" target="_blank">
                                            <img src="/i/atma.svg" width="59" height="21" alt="" />
                                            <span style="color: #000000"><?php echo ($sf_user->getCulture() == 'ru' ? 'Сделано компанией<br>«Атма» в 2017 году' : 'Made it company <br>«Atma» in 2017');?></span>
                                        </a>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="8">
                                        <i class="br20"></i>
                                        <i class="br30 mobile_hide"></i>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <div class="footer_table_main__policy">
                                            ИП Кидрасов Ильнур Зиганшович ИНН 027363464428 ОГРН 317028000071294
                                            <i class="br10"></i>
                                            <?php
                                            if($sf_user->getCulture() == 'ru'){
                                                echo 'Обращаем ваше внимание на то, что
                                            данный интернет-сайт носит исключительно информационный характер и ни при
                                            каких условиях не является публичной офертой, определяемой положениями
                                            Статьи 437 (2) Гражданского кодекса Российской Федерации';
                                            }else{
                                                echo 'Please note that this Internet site is for informational purposes only and under no circumstances is not a public offer defined by positions of Article 437 (2) of the Civil code of the Russian Federation';
                                            }
                                            ?>
                                        </div>
                                        <i class="br15 mobile"></i>
                                    </td>
                                    <td></td>
                                    <td align="right" width="1" class="align_left">
                                        <div class="footer_table_main__copyright" style="color: #000000"><?php echo ($sf_user->getCulture() == 'ru' ? 'Использованы фото:<br>Олеси Келлер и Владимира Ляпина' : 'Used photos:<br>Olesya Keller and Vladimir Lyapina');?>
                                        </div>
                                        <i class="br20 mobile"></i>
                                        <a href="https://atma.company" class="footer_table_main__link_atma black_link anb mobile" target="_blank">
                                            <img src="/i/atma.svg" width="59" height="21" alt="" />
                                            <span style="color: #000000"><?php echo ($sf_user->getCulture() == 'ru' ? 'Сделано компанией<br>«Атма» в 2017 году' : 'Made it company <br>«Atma» in 2017');?></span>
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </td>
</tr></table></td></tr></table></div>