Blame view

frontend/views/layouts/main.php 15.8 KB
1755c393   Yarik   Basic template in...
1
  <?php
4acbd19d   Alexey Boroda   -Bar tabs
2
3
4
5
6
7
      /**
       * @var View         $this
       * @var string       $content
       * @var SeoComponent $seo
       * @var User         $user
       */
6966d71b   Yarik   Makeup
8
      
cc865d87   Alexey Boroda   -Seo component re...
9
      use artbox\core\components\SeoComponent;
9576f402   Yarik   Namespaces and al...
10
      use artbox\core\models\User;
6966d71b   Yarik   Makeup
11
      use frontend\assets\AppAsset;
4acbd19d   Alexey Boroda   -Bar tabs
12
13
14
      use yii\bootstrap\Nav;
      use yii\helpers\Html;
      use yii\web\View;
6966d71b   Yarik   Makeup
15
16
      
      AppAsset::register($this);
6966d71b   Yarik   Makeup
17
      $user = \Yii::$app->user->identity;
cc865d87   Alexey Boroda   -Seo component re...
18
      $seo = Yii::$app->get('seo');
1755c393   Yarik   Basic template in...
19
  ?>
4acbd19d   Alexey Boroda   -Bar tabs
20
  
1755c393   Yarik   Basic template in...
21
  <?php $this->beginPage() ?>
4acbd19d   Alexey Boroda   -Bar tabs
22
23
24
    
    <!DOCTYPE html>
    <html lang="<?= \Yii::$app->language ?>">
6966d71b   Yarik   Makeup
25
      <head>
4acbd19d   Alexey Boroda   -Bar tabs
26
27
28
29
30
31
32
        <meta charset="<?= \Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- Responsivity for older IE -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
6966d71b   Yarik   Makeup
33
          <?= Html::csrfMetaTags() ?>
4acbd19d   Alexey Boroda   -Bar tabs
34
        <title><?= Html::encode($seo->title) ?></title>
6966d71b   Yarik   Makeup
35
36
37
38
          <?php $this->head() ?>
      </head>
      <body>
          <?php $this->beginBody() ?>
4acbd19d   Alexey Boroda   -Bar tabs
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
        <div id="all">
          <header>
            <!-- *** TOP ***
  _________________________________________________________ -->
            <div id="top">
              <div class="container">
                <div class="row">
                  <div class="col-xs-5 contact">
                    <p class="hidden-sm hidden-xs">Contact us on +420 777 555 333 or hello@universal.com.</p>
                    <p class="hidden-md hidden-lg"><a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
                      <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
                    </p>
                  </div>
                  <div class="col-xs-7">
                    <div class="social">
                      <a href="#" class="external facebook" data-animate-hover="pulse"><i class="fa fa-facebook"></i></a>
                      <a href="#" class="external gplus" data-animate-hover="pulse"><i class="fa fa-google-plus"></i></a>
                      <a href="#" class="external twitter" data-animate-hover="pulse"><i class="fa fa-twitter"></i></a>
                      <a href="#" class="email" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!-- *** TOP END *** -->
        
            <!-- *** NAVBAR ***
    _________________________________________________________ -->
            <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
6966d71b   Yarik   Makeup
68
          
4acbd19d   Alexey Boroda   -Bar tabs
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
              <div class="navbar navbar-default yamm" role="navigation" id="navbar">
            
                <div class="container">
                  <div class="navbar-header">
                
                    <a class="navbar-brand home" href="index.html">
                      <img src="/img/logo.png" alt="Universal logo" class="hidden-xs hidden-sm">
                      <img src="/img/logo-small.png" alt="Universal logo" class="visible-xs visible-sm"><span class="sr-only">Universal - go to homepage</span>
                    </a>
                    <div class="navbar-buttons">
                      <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
                        <span class="sr-only">Toggle navigation</span>
                        <i class="fa fa-align-justify"></i>
                      </button>
                    </div>
                  </div>
6966d71b   Yarik   Makeup
85
              
4acbd19d   Alexey Boroda   -Bar tabs
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
                  <div class="navbar-collapse collapse" id="navigation">
                      <?php
                          echo Nav::widget(
                              [
                                  'items'   => [
                                      [
                                          'label' => 'Home',
                                          'url'   => [ 'site/index' ],
                                      ],
                                      [
                                          'label' => 'Dropdown',
                                          'url'   => [ '#' ],
                                      ],
                                      [
                                          'label' => 'Login',
                                          'url'   => [ 'site/login' ],
                                      ],
                                  ],
                                  'options' => [
                                      'class' => 'nav navbar-nav navbar-right',
                                  ],
                              ]
                          );
                      ?>
                  </div>
              
              
                  <div class="collapse clearfix" id="search">
                
                    <form class="navbar-form" role="search">
                      <div class="input-group">
                        <input type="text" class="form-control" placeholder="Search">
                        <span class="input-group-btn">
  
                      <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
  
                  </span>
                      </div>
                    </form>
              
                  </div>
                  <!--/.nav-collapse -->
            
                </div>
          
          
              </div>
              <!-- /#navbar -->
        
            </div>
        
            <!-- *** NAVBAR END *** -->
      
          </header>
      
          <!-- *** LOGIN MODAL ***
  _________________________________________________________ -->
      
          <div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
            <div class="modal-dialog modal-sm">
          
              <div class="modal-content">
                <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title" id="Login">Customer login</h4>
                </div>
                <div class="modal-body">
                  <form action="customer-orders.html" method="post">
                    <div class="form-group">
                      <input type="text" class="form-control" id="email_modal" placeholder="email">
                    </div>
                    <div class="form-group">
                      <input type="password" class="form-control" id="password_modal" placeholder="password">
                    </div>
                
                    <p class="text-center">
                      <button class="btn btn-template-main"><i class="fa fa-sign-in"></i> Log in</button>
                    </p>
              
                  </form>
              
                  <p class="text-center text-muted">Not registered yet?</p>
                  <p class="text-center text-muted">
                    <a href="customer-register.html"><strong>Register now</strong></a>! It is easy and done in 1&nbsp;minute and gives you access to special discounts and much more!
                  </p>
            
                </div>
              </div>
            </div>
          </div>
      
          <!-- *** LOGIN MODAL END *** -->
        
            <?= $content ?>
      
      
          <!-- *** GET IT ***
          _________________________________________________________ -->
      
          <div id="get-it">
            <div class="container">
              <div class="col-md-8 col-sm-12">
                <h3>Do you want cool website like this one?</h3>
              </div>
              <div class="col-md-4 col-sm-12">
                <a href="#" class="btn btn-template-transparent-primary">Buy this template now</a>
6966d71b   Yarik   Makeup
192
              </div>
4acbd19d   Alexey Boroda   -Bar tabs
193
            </div>
6966d71b   Yarik   Makeup
194
          </div>
4acbd19d   Alexey Boroda   -Bar tabs
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
221
222
223
224
225
226
227
228
      
      
          <!-- *** GET IT END *** -->
      
          <!-- *** FOOTER ***
  _________________________________________________________ -->
      
          <footer id="footer">
            <div class="container">
              <div class="col-md-6 col-sm-12">
                <h4>About us</h4>
            
                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
            
                <hr>
            
                <h4>Join our monthly newsletter</h4>
            
                <form>
                  <div class="input-group">
                
                    <input type="text" class="form-control">
                
                    <span class="input-group-btn">
  
                          <button class="btn btn-default" type="button"><i class="fa fa-send"></i></button>
  
                      </span>
              
                  </div>
                  <!-- /input-group -->
                </form>
            
                <hr class="hidden-md hidden-lg hidden-sm">
6966d71b   Yarik   Makeup
229
          
6966d71b   Yarik   Makeup
230
              </div>
4acbd19d   Alexey Boroda   -Bar tabs
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
              <!-- /.col-md-3 -->
          
              <!--                    <div class="col-md-3 col-sm-6">-->
              <!--                        -->
              <!--                        <h4>Blog</h4>-->
              <!--                        -->
              <!--                        <div class="blog-entries">-->
              <!--                            <div class="item same-height-row clearfix">-->
              <!--                                <div class="image same-height-always">-->
              <!--                                    <a href="#">-->
              <!--                                        <img class="img-responsive" src="img/detailsquare.jpg" alt="">-->
              <!--                                    </a>-->
              <!--                                </div>-->
              <!--                                <div class="name same-height-always">-->
              <!--                                    <h5><a href="#">Blog post name</a></h5>-->
              <!--                                </div>-->
              <!--                            </div>-->
              <!--                            -->
              <!--                            <div class="item same-height-row clearfix">-->
              <!--                                <div class="image same-height-always">-->
              <!--                                    <a href="#">-->
              <!--                                        <img class="img-responsive" src="img/detailsquare.jpg" alt="">-->
              <!--                                    </a>-->
              <!--                                </div>-->
              <!--                                <div class="name same-height-always">-->
              <!--                                    <h5><a href="#">Blog post name</a></h5>-->
              <!--                                </div>-->
              <!--                            </div>-->
              <!--                            -->
              <!--                            <div class="item same-height-row clearfix">-->
              <!--                                <div class="image same-height-always">-->
              <!--                                    <a href="#">-->
              <!--                                        <img class="img-responsive" src="img/detailsquare.jpg" alt="">-->
              <!--                                    </a>-->
              <!--                                </div>-->
              <!--                                <div class="name same-height-always">-->
              <!--                                    <h5><a href="#">Very very long blog post name</a></h5>-->
              <!--                                </div>-->
              <!--                            </div>-->
              <!--                        </div>-->
              <!--                        -->
              <!--                        <hr class="hidden-md hidden-lg">-->
              <!--                    -->
              <!--                    </div>-->
              <!-- /.col-md-3 -->
          
              <div class="col-md-4 col-sm-12 col-md-offset-2">
            
                <h4>Contact</h4>
            
                <p><strong>Universal Ltd.</strong>
                  <br>13/25 New Avenue
                  <br>Newtown upon River
                  <br>45Y 73J
                  <br>England
                  <br>
                  <strong>Great Britain</strong>
                </p>
            
                <a href="contact.html" class="btn btn-small btn-template-main">Go to contact page</a>
            
                <hr class="hidden-md hidden-lg hidden-sm">
          
              </div>
              <!-- /.col-md-3 -->
          
          
              <!--                    <div class="col-md-3 col-sm-6">-->
              <!--                        -->
              <!--                        <h4>Photostream</h4>-->
              <!--                        -->
              <!--                        <div class="photostream">-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare2.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare3.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare3.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare2.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                            <div>-->
              <!--                                <a href="#">-->
              <!--                                    <img src="img/detailsquare.jpg" class="img-responsive" alt="#">-->
              <!--                                </a>-->
              <!--                            </div>-->
              <!--                        </div>-->
              <!--                    -->
              <!--                    </div>-->
              <!-- /.col-md-3 -->
            </div>
            <!-- /.container -->
6966d71b   Yarik   Makeup
339
          </footer>
4acbd19d   Alexey Boroda   -Bar tabs
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
          <!-- /#footer -->
      
          <!-- *** FOOTER END *** -->
      
          <!-- *** COPYRIGHT ***
  _________________________________________________________ -->
      
          <div id="copyright">
            <div class="container">
              <div class="col-md-12">
                <p class="pull-left">&copy; 2015. Your company / name goes here</p>
                <p class="pull-right">Template by <a href="https://bootstrapious.com">Bootstrapious</a> &
                  <a href="https://remoteplease.com">Remote Please</a>
                  <!-- Not removing these links is part of the license conditions of the template. Thanks for understanding :) If you want to use the template without the attribution links, you can do so after supporting further themes development at https://bootstrapious.com/donate  -->
                </p>
6966d71b   Yarik   Makeup
355
          
4acbd19d   Alexey Boroda   -Bar tabs
356
357
358
359
360
361
362
363
364
365
              </div>
            </div>
          </div>
          <!-- /#copyright -->
      
          <!-- *** COPYRIGHT END *** -->
    
    
        </div>
        <!-- /#all -->
6966d71b   Yarik   Makeup
366
          <?php $this->endBody() ?>
6966d71b   Yarik   Makeup
367
      </body>
4acbd19d   Alexey Boroda   -Bar tabs
368
369
    </html>
  <?php $this->endPage() ?>