Blame view

frontend/themes/defaults/layouts/map.php 1.02 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
43
44
  <?php
  
  /**
   * @author Alla Kuzmenko
   * @copyright (c), Thread
   */
  use frontend\themes\defaults\assets\AppAssetMap;
  use thread\modules\seo\widgets\breadcrumbs\Breadcrumbs;
  
  $bundle = AppAssetMap::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="inner-map-container">
              <?= $content; ?>
          </div>
          <div class="map" id="map">
          </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();
  ?>