Blame view

frontend/views/site/index.php 9.12 KB
298bc0f4   Alexey Boroda   first commit
1
2
3
4
  <?php
  
  /* @var $this yii\web\View
   * @var \common\models\slider\Slide[] $slides;
6fc26f8f   Anastasia   - slider
5
   * @var \common\models\blog\Article[]   $articles
298bc0f4   Alexey Boroda   first commit
6
7
8
9
10
11
12
13
14
15
16
17
18
   */
      
      use artbox\core\helpers\ImageHelper;
      use artbox\core\helpers\Url;
      
      $this->title = 'My Yii Application';
  ?>
  
  <?php if (!empty($slides)){?>
  <section class="hidden-xs hidden-sm">
    <!-- *** HOMEPAGE CAROUSEL ***
  _________________________________________________________ -->
    
5a99e080   Виталий   fix css
19
20
21
  <!--  <div class="home-carousel" --><?//=$slides[0]->background !== null ? ' style="background: url('.$slides[0]->background->getUrl().') center center repeat;"' : ''?><!-->
    <div class="home-carousel">
  
298bc0f4   Alexey Boroda   first commit
22
23
24
      <div class="dark-mask"></div>
      
      <div class="container">
ac4eea2e   Anastasia   - frontend events
25
        <div class="homepage owl-carousel" >
5f694714   Anastasia   - events
26
         
4368a120   Anastasia   - slider
27
          <?php foreach ($slides as $key => $slide){?>
5f694714   Anastasia   - events
28
          
1b06762d   Anastasia   - events
29
          <div class="item" data-bg=<?=($slide->background !== null) ? $slide->background->getUrl() : ''?>>
298bc0f4   Alexey Boroda   first commit
30
            <div class="row">
7150a05d   alex   Кнопка "Подробнее...
31
              <div class="col-sm-5 ">
298bc0f4   Alexey Boroda   first commit
32
                <h1><?=$slide->title?></h1>
ac4eea2e   Anastasia   - frontend events
33
                  <p><?=$slide->description?></p>
af7d735c   Виталий   slider home fix
34
                  <p style="margin-top:25px;"> </p>
6589c2f0   alex   Слайдер
35
36
37
38
39
                <p class="text-right">
                  <a href="<?= $slide->link ?>" class="btn btn-template-transparent-primary "><?= \Yii::t(
                        'app',
                        'More'
                    ) ?></a></p>
298bc0f4   Alexey Boroda   first commit
40
                </div>
63edaa40   Anastasia   - blog
41
              <?php if ($slide->language->image !== null){?>
6589c2f0   alex   Слайдер
42
                <div class="col-sm-7">
298bc0f4   Alexey Boroda   first commit
43
44
45
                <a href="<?=$slide->link?>"><?=ImageHelper::set($slide->language->image->getPath())
                                                          ->cropResize(650, 380)
                                                          ->quality(84)
5c89963f   Виталий   qwerty
46
47
48
                                                          ->renderImage([
                                                             'class' => 'img-responsive'
                                                          ])?></a>
298bc0f4   Alexey Boroda   first commit
49
              </div>
63edaa40   Anastasia   - blog
50
              <?php }?>
298bc0f4   Alexey Boroda   first commit
51
52
            </div>
          </div>
5f694714   Anastasia   - events
53
          
298bc0f4   Alexey Boroda   first commit
54
          <?php }?>
5f694714   Anastasia   - events
55
          </div>
298bc0f4   Alexey Boroda   first commit
56
57
58
59
60
61
62
63
64
65
66
67
        <!-- /.project owl-slider -->
      </div>
    </div>
    
    <!-- *** HOMEPAGE CAROUSEL END *** -->
  </section>
  <?php }?>
  
  <section class="bar background-white">
    <div class="container">
      <div class="col-md-12">
        <div class="heading text-center">
e38df1a5   Виталий   translate2
68
          <h2><?=\Yii::t('app', 'Our advantages')?></h2>
298bc0f4   Alexey Boroda   first commit
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
        </div>
        
        <div class="row">
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-desktop"></i>
              </div>
              <h3>Webdesign</h3>
              <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p>
            </div>
          </div>
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-print"></i>
              </div>
              <h3>Print</h3>
              <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p>
            </div>
          </div>
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-globe"></i>
              </div>
              <h3>SEO and SEM</h3>
              <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p>
            </div>
          </div>
        </div>
        
        <div class="row">
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-lightbulb-o"></i>
              </div>
              <h3>Consulting</h3>
              <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p>
            </div>
          </div>
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-envelope-o"></i>
              </div>
              <h3>Email Marketing</h3>
              <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p>
            </div>
          </div>
          <div class="col-md-4">
            <div class="box-simple">
              <div class="icon">
                <i class="fa fa-user"></i>
              </div>
              <h3>UX</h3>
              <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
  
  <section class="bar background-pentagon no-mb">
    <div class="container">
      <div class="row showcase">
        <div class="col-md-3 col-sm-6">
          <div class="item">
            <div class="icon"><i class="fa fa-align-justify"></i>
            </div>
            <h4><span class="counter">580</span><br>
              
              Websites</h4>
          </div>
        </div>
        <div class="col-md-3 col-sm-6">
          <div class="item">
            <div class="icon"><i class="fa fa-users"></i>
            </div>
            <h4><span class="counter">100</span><br>
              
              Satisfied Clients</h4>
          </div>
        </div>
        <div class="col-md-3 col-sm-6">
          <div class="item">
            <div class="icon"><i class="fa fa-copy"></i>
            </div>
            <h4><span class="counter">320</span><br>
              
              Projects</h4>
          </div>
        </div>
        <div class="col-md-3 col-sm-6">
          <div class="item">
            <div class="icon"><i class="fa fa-font"></i>
            </div>
            <h4><span class="counter">923</span><br>
              
              Magazines and Brochures</h4>
          </div>
        </div>
      </div>
      <!-- /.row -->
    </div>
    <!-- /.container -->
  </section>
  <!-- /.bar -->
  
  
  <section class="bar background-gray no-mb">
    <div class="container">
      <div class="row">
        <div class="col-md-12">
          <div class="heading text-center">
cfc1b89a   alex   123
186
            <h2><?=\Yii::t('app','Our clients');?></h2>
298bc0f4   Alexey Boroda   first commit
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
          </div>
          
          <ul class="owl-carousel customers">
            <li class="item">
              <img src="/img/customer-1.png" alt="" class="img-responsive">
            </li>
            <li class="item">
              <img src="/img/customer-2.png" alt="" class="img-responsive">
            </li>
            <li class="item">
              <img src="/img/customer-3.png" alt="" class="img-responsive">
            </li>
            <li class="item">
              <img src="/img/customer-4.png" alt="" class="img-responsive">
            </li>
            <li class="item">
              <img src="/img/customer-5.png" alt="" class="img-responsive">
            </li>
            <li class="item">
              <img src="/img/customer-6.png" alt="" class="img-responsive">
            </li>
          </ul>
          <!-- /.owl-carousel -->
        </div>
      
      </div>
    </div>
  </section>
  <?php if (!empty($articles)){?>
  <section class="bar background-white no-mb">
    <div class="container">
      
      <div class="col-md-12">
        <div class="heading text-center">
63edaa40   Anastasia   - blog
221
          <h2><?=\Yii::t('app', 'News')?></h2>
298bc0f4   Alexey Boroda   first commit
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
        </div>
        
        
        <!-- *** BLOG HOMEPAGE ***
  _________________________________________________________ -->
        
        <div class="row articles-flex">
          <?php foreach ($articles as $article){?>
          <div class="col-md-3 col-sm-6">
            <div class="box-image-text blog">
              <div class="top">
                <div class="image">
                  <?=ImageHelper::set($article->image->getPath())
                                ->cropResize(255, 191)
                                ->quality(84)
                                ->renderImage(
                                    [
                                        'alt' => $article->image->lang ? ( $article->image->lang->title || $article->title ) : $article->title,
                                    ]
                                )?>
                </div>
                <div class="bg"></div>
                <div class="text">
                  <p class="buttons">
                    <a href="<?=Url::to(['alias' => $article->alias])?>" class="btn btn-template-transparent-primary"><i class="fa fa-link"></i><?=\Yii::t('app', 'Читать далее')?></a>
                  </p>
                </div>
              </div>
              <div class="content">
                <h4><a href="<?=Url::to(['alias' => $article->alias])?>"><?=$article->title?></a></h4>
                <p class="intro"><?=$article->body_preview?></p>
                <p class="read-more"><a href="<?=Url::to([ 'alias' => $article->alias])?>" class="btn btn-template-main"><?=\Yii::t('app', 'Читать далее')?></a>
                </p>
              </div>
            </div>
            <!-- /.box-image-text -->
          
          </div>
          <?php }?>
        </div>
        <!-- /.row -->
        
        <!-- *** BLOG HOMEPAGE END *** -->
      
      </div>
    
    </div>
    <!-- /.container -->
  </section>
  <?php }?>
  <!-- /.bar -->