Blame view

frontend/views/page/view.php 4.17 KB
f5002842   Eugeny Galkovskiy   first commit
1
2
3
4
5
  <?php
      use artbox\core\components\SeoComponent;
      use artbox\core\models\Page;
      use yii\helpers\Html;
      use yii\web\View;
442daa2f   Timur Kastemirov   img from gallery ...
6
      use artbox\core\models\Image;
f5002842   Eugeny Galkovskiy   first commit
7
8
9
10
11
12
      
      /**
       * @var View         $this
       * @var Page         $model
       * @var Page[]       $pages
       * @var SeoComponent $seo
442daa2f   Timur Kastemirov   img from gallery ...
13
14
15
       * @var Image[]      $images
       * @var string       $body
       * @var string|null  $lefts
f5002842   Eugeny Galkovskiy   first commit
16
17
18
       */
      $seo = \Yii::$app->get('seo');
      $this->params[ 'breadcrumbs' ][] = $seo->title;
e5ea861e   Eugeny Galkovskiy   h1 back
19
  
f5002842   Eugeny Galkovskiy   first commit
20
21
22
23
24
25
26
27
28
29
30
31
32
  ?>
  
  <div id="content">
      <div class="container">
          
          <div class="row">
              
              <!-- *** LEFT COLUMN ***
        _________________________________________________________ -->
              
              <div class="col-md-9 clearfix">
                  <section>
                      <div id="text-page">
b465941a   Eugeny Galkovskiy   Размер шрифта в с...
33
                          <div class="lead">
442daa2f   Timur Kastemirov   img from gallery ...
34
                              <?= $body ?>
b465941a   Eugeny Galkovskiy   Размер шрифта в с...
35
                          </div>
f5002842   Eugeny Galkovskiy   first commit
36
37
                      </div>
                  </section>
442daa2f   Timur Kastemirov   img from gallery ...
38
39
40
41
42
43
44
      
                  <?php if (!empty($images) && !empty($lefts)) { ?>
                      <section>
                          <div class="project owl-carousel">
                  
                              <?php foreach ($images as $image) { ?>
                                  <div class="item">
37c832ae   Eugeny Galkovskiy   css edits
45
                                      <div class="itemimage" style="background-image:url(<?= $image->getUrl() ?>)"></div>
442daa2f   Timur Kastemirov   img from gallery ...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                                  </div>
                              <?php } ?>
              
                          </div>
                          <!-- /.project owl-slider -->
                      </section>
                  <?php } ?>
      
                  <?php if (!empty($lefts)) { ?>
                      <section>
                          <div id="text-page">
                              <div class="lead">
                                  <?= $lefts ?>
                              </div>
                          </div>
                      </section>
                  <?php } ?>
f5002842   Eugeny Galkovskiy   first commit
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
              
              </div>
              <!-- /.col-md-9 -->
              
              <!-- *** LEFT COLUMN END *** -->
              
              <!-- *** RIGHT COLUMN ***
          _________________________________________________________ -->
              
              <div class="col-sm-3">
                  <!-- *** PAGES MENU ***
          _________________________________________________________ -->
                  <div class="panel panel-default sidebar-menu">
                      
                      <div class="panel-heading">
6daf3e16   Eugeny Galkovskiy   h1-h6 to span
78
                          <span class="panel-title">Решения</span>
f5002842   Eugeny Galkovskiy   first commit
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
                      </div>
                      
                      <div class="panel-body">
                          <ul class="nav nav-pills nav-stacked">
                              <?php
                                  foreach ($pages as $page) {
                                      echo Html::tag(
                                          'li',
                                          Html::a(
                                              $page->lang->title,
                                              [
                                                  'page/view',
                                                  'id' => $page->id,
                                              ]
                                          )
                                      );
                                  }
                              ?>
                          </ul>
                      
                      </div>
                  </div>
                  
                  <!-- *** PAGES MENU END *** -->
5046b3a6   Eugeny Galkovskiy   Убран баннер
103
  
f5002842   Eugeny Galkovskiy   first commit
104
105
106
107
108
109
110
111
112
113
114
115
116
              </div>
              <!-- /.col-md-3 -->
              
              <!-- *** RIGHT COLUMN END *** -->
          
          
          </div>
          <!-- /.row -->
      
      </div>
      <!-- /.container -->
  </div>
  <!-- /#content -->
0494569b   Eugeny Galkovskiy   button get it
117
118
119
120
121
122
123
124
  <style>
      .pages#get-it {
          padding: 20px 0 20px;
      }
  </style>
  <div id="get-it" class="pages">
      <div class="container">
          <div class="col-md-12 col-sm-12" style="text-align: center;">
ae2ee60c   Eugeny Galkovskiy   h1 back
125
              <a href="#" class="btn btn-template-transparent-primary do-order-but but-writeus" data-toggle="modal" data-target="#feedback-modal" data-modalname="Заказать. <?=$seo->title?>">Заказать</a>
0494569b   Eugeny Galkovskiy   button get it
126
127
128
          </div>
      </div>
  </div>