Blame view

frontend/themes/defaults/layouts/base.php 1.01 KB
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
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
39
40
41
42
  <?php
  
  /**
   * @author Alla Kuzmenko
   * @copyright (c), Thread
   */
  use frontend\themes\defaults\assets\AppAsset;
  use thread\modules\seo\widgets\breadcrumbs\Breadcrumbs;
  
  $bundle = AppAsset::register($this);
  
  $this->beginContent('@app/layouts/main.php');
  echo $this->render('parts/header_base', ['bundle' => $bundle])
  ?>
      <div class="container-fluid">
          <?php if ($this->context->breadcrumbs && ($this->context->id == 'item' && $this->context->action->id == 'view')): ?>
              <div class="container">
                  <?= Breadcrumbs::widget([
                      'links' => $this->context->breadcrumbs ?? []
                  ]) ?>
              </div>
          <?php endif; ?>
          <main>
              <div class="container">
                  <?= $content; ?>
              </div>
          </main>
      </div>
  <style>
      body{
          margin-bottom: 65px;
      }
      footer .container{
          margin-top: -40px;
      }
  </style>
  <?php
  echo $this->render('parts/footer_base', [
      'asset' => $bundle
  ]);
  $this->endContent();
  ?>