Blame view

frontend/views/site/index.php 9.02 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 ***
  _________________________________________________________ -->
    
1b06762d   Anastasia   - events
19
    <div class="home-carousel" <?=$slides[0]->background !== null ? ' style="background: url('.$slides[0]->background->getUrl().') center center repeat;"' : ''?>>
298bc0f4   Alexey Boroda   first commit
20
21
22
23
      
      <div class="dark-mask"></div>
      
      <div class="container">
ac4eea2e   Anastasia   - frontend events
24
        <div class="homepage owl-carousel" >
5f694714   Anastasia   - events
25
         
4368a120   Anastasia   - slider
26
          <?php foreach ($slides as $key => $slide){?>
5f694714   Anastasia   - events
27
          
1b06762d   Anastasia   - events
28
          <div class="item" data-bg=<?=($slide->background !== null) ? $slide->background->getUrl() : ''?>>
298bc0f4   Alexey Boroda   first commit
29
            <div class="row">
4368a120   Anastasia   - slider
30
              <div class="col-sm-5 <?=($key%2 == 0) ? 'right' : ''?>">
298bc0f4   Alexey Boroda   first commit
31
                <h1><?=$slide->title?></h1>
ac4eea2e   Anastasia   - frontend events
32
                  <p><?=$slide->description?></p>
af7d735c   Виталий   slider home fix
33
                  <p style="margin-top:25px;"> </p>
beed8215   Anastasia   - translations
34
                  <p><a href="<?=$slide->link?>" class="btn btn-template-transparent-primary"><?=\Yii::t('app', 'More')?></a></p>
298bc0f4   Alexey Boroda   first commit
35
                </div>
63edaa40   Anastasia   - blog
36
              <?php if ($slide->language->image !== null){?>
4368a120   Anastasia   - slider
37
              <div class="col-sm-7 <?=($key % 2 != 0) ? 'text-center': ''?>">
298bc0f4   Alexey Boroda   first commit
38
39
40
                <a href="<?=$slide->link?>"><?=ImageHelper::set($slide->language->image->getPath())
                                                          ->cropResize(650, 380)
                                                          ->quality(84)
5c89963f   Виталий   qwerty
41
42
43
                                                          ->renderImage([
                                                             'class' => 'img-responsive'
                                                          ])?></a>
298bc0f4   Alexey Boroda   first commit
44
              </div>
63edaa40   Anastasia   - blog
45
              <?php }?>
298bc0f4   Alexey Boroda   first commit
46
47
            </div>
          </div>
5f694714   Anastasia   - events
48
          
298bc0f4   Alexey Boroda   first commit
49
          <?php }?>
5f694714   Anastasia   - events
50
          </div>
298bc0f4   Alexey Boroda   first commit
51
52
53
54
55
56
57
58
59
60
61
62
        <!-- /.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
63
          <h2><?=\Yii::t('app', 'Our advantages')?></h2>
298bc0f4   Alexey Boroda   first commit
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
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
        </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">
            <h2>Our clients</h2>
          </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
216
          <h2><?=\Yii::t('app', 'News')?></h2>
298bc0f4   Alexey Boroda   first commit
217
218
219
220
221
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
        </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 -->