Blame view

src/app/frontend/views/dealer/index.php 7.09 KB
dce46e80   Alex Savenko   first push project
1
2
3
4
5
6
7
8
  <section style="overflow: visible; display: block; margin: 0" class="content">
      <div id="content_nav" class="clearfix">
          <div class="inner">
              <div class="content_nav_first_floor clearfix">
                  <?php
  
                  $data =
                      '<div class="content_nav_logo float">'.
07cce4ca   Dima   add prof catalog ...
9
                      '<a href="'.$this->seoUrl->setUrl($catalog_first['alias']).'" title="'.$catalog_first['title'].'"><img src="/images/types_logo/1.svg" alt="'.$catalog_first['title'].'" width="99" height="99" /></a>'.
dce46e80   Alex Savenko   first push project
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
                      '<a href="'.$this->seoUrl->setUrl($catalog_first['alias']).'" title="'.$catalog_first['title'].'"><h2 class="types_logo_1">'.$t->_("vegetable_seeds").'</h2></a>'.
                      '</div>'.
                      '<div class="content_nav_items float" style="column-width:initial;-moz-column-width:initial;-webkit-column-width:initial;">';
  
                  foreach( $catalog_first['sub'] as $c )
                  {
                      $data .= '<a href="'.$this->seoUrl->setUrl($c['alias']).'" title="'.$c['title'].'">'.$c['title'].'</a>';
                  }
  
                  $data.= '</div>';
  
                  echo( $data );
  
                  ?>
  
              </div>
              <div class="content_nav_second_floor clearfix">
  
                  <?php
  
                  $data_catalog = '';
  
                  foreach( $catalog as $k => $c )
                  {
                      if(in_array($k, config::get( 'equipment' ))) continue;
  
                      $data_catalog .=
                          '<div class="float">'.
                          '<div class="content_nav_logo">'.
07cce4ca   Dima   add prof catalog ...
39
                          '<a href="'.$this->seoUrl->setUrl($c['alias']).'" title="'.$c['title'].'"><img src="/images/types_logo/'.$k.'.svg" alt="'.$c['title'].'" width="99" height="99"></a>'.
dce46e80   Alex Savenko   first push project
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
                          '<a href="'.$this->seoUrl->setUrl($c['alias']).'" title="'.$c['title'].'"><h2 class="types_logo_'.$k.'">'.$c['title'].'</h2></a>'.
                          '</div>'.
                          '<div class="content_nav_items">';
  
                      if( !empty( $c['sub'] ) )
                      {
                          foreach( $c['sub'] as $v )
                          {
                              $data_catalog .= '<a href="'.$this->seoUrl->setUrl($v['alias']).'" title="'.$v['title'].'">'.$v['title'].'</a>';
                          }
                      }
  
                      $data_catalog .=
                          '</div>'.
                          '</div>';
                  }
                  echo( $data_catalog );
  
                  ?>
              </div>
  
          </div>
          <div class="shadow_to_top"></div>
      </div><!-- content_nav -->
      <!--<div class="content_items clearfix">
          <div class="inner">
  
          <?php if( !empty( $stock_items ) ): ?>
              <div class="stock_items clearfix" data-class="stock_items">
                  <div class="title clearfix">
                      <div class="float"><span class="items_title"><?= $t->_("akcii") ?></span></div>
                      <div class="float">
                          <a class="float content_arrow_left" href="#" title=""></a>
                          <span class="float content_items_page page_number">1</span>
                          <span class="float content_items_page">/</span>
                          <span class="float content_items_page max_page"><?= $pages_stock_items ?></span>
                          <a class="float content_arrow_right" href="#" title=""></a>
                      </div>
                  </div>
                  <div class="items clearfix">
                      <?php foreach( $stock_items as $k => $i ): ?>
                          <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 5]) ?>
                      <?php endforeach; ?>
                  </div>
              </div>
          <?php endif; ?>
  
          <?php if( !empty( $top_items ) ): ?>
              <div class="top_items clearfix" data-class="top_items">
                  <div class="title clearfix">
                      <div class="float"><span class="items_title"><?= $t->_("top_sales") ?></span></div>
                      <div class="float">
                          <a class="float content_arrow_left" href="#" title=""></a>
                          <span class="float content_items_page page_number">1</span>
                          <span class="float content_items_page">/</span>
                          <span class="float content_items_page max_page"><?= $pages_top_items ?></span>
                          <a class="float content_arrow_right" href="#" title=""></a>
                      </div>
                  </div>
                  <div class="items clearfix">
  
                      <?php foreach( $top_items as $k => $i ): ?>
                          <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 5]) ?>
                      <?php endforeach; ?>
                  </div>
              </div>
          <?php endif; ?>
  
          <?php if( !empty( $recommended_items ) ): ?>
              <div class="recomended_items clearfix" data-class="recomended_items">
                  <div class="title clearfix">
                      <div class="float"><span class="items_title"><?= $t->_("recommended") ?></span></div>
                      <div class="float">
                          <a class="float content_arrow_left" href="#" title=""></a>
                          <span class="float content_items_page page_number">1</span>
                          <span class="float content_items_page">/</span>
                          <span class="float content_items_page max_page"><?= $pages_recommended_items ?></span>
                          <a class="float content_arrow_right" href="#" title=""></a>
                      </div>
                  </div>
                  <div class="items clearfix">
  
                      <?php foreach( $recommended_items as $k => $i ): ?>
                          <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 5]) ?>
                      <?php endforeach; ?>
                  </div>
              </div>
          <?php endif; ?>
  
          <?php if( !empty( $new_items ) ): ?>
              <div class="new_items clearfix" data-class="new_items">
                  <div class="title clearfix">
                      <div class="float"><span class="items_title"><?= $t->_("new_items") ?></span></div>
                      <div class="float">
                          <a class="float content_arrow_left" href="#" title=""></a>
                          <span class="float content_items_page page_number">1</span>
                          <span class="float content_items_page">/</span>
                          <span class="float content_items_page max_page"><?= $pages_new_items ?></span>
                          <a class="float content_arrow_right" href="#" title=""></a>
                      </div>
                  </div>
                  <div class="items clearfix">
                      <?php foreach( $new_items as $k => $i ): ?>
                          <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 5]) ?>
                      <?php endforeach; ?>
                  </div>
              </div>
          <?php endif; ?>
  
          </div>
      </div> -->
  </section>