bottom.php 12.4 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
</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>