Blame view

frontend/views/site/contact.php 1.14 KB
d8c1a2e0   Yarik   Big commit artbox
1
2
3
4
  <?php
      
      /**
       * @var $this yii\web\View
923cadac   Yarik   Small fixes 8.11.16
5
       * @var $page Page
d8c1a2e0   Yarik   Big commit artbox
6
       */
d8c1a2e0   Yarik   Big commit artbox
7
      
923cadac   Yarik   Small fixes 8.11.16
8
9
10
      use common\models\Page;
      
      $this->title = $page->lang->title;
d8c1a2e0   Yarik   Big commit artbox
11
      $this->params[ 'breadcrumbs' ][] = $this->title;
923cadac   Yarik   Small fixes 8.11.16
12
13
      $this->registerJs(
          "
36d1807a   Yarik   Big commit.
14
15
16
17
18
19
20
21
22
23
24
25
                  function initMap() {
                      var myLatLng = {lat: 50.524860, lng: 30.482552};
                      var map = new google.maps.Map(document.getElementById('contact-map'), {
                          zoom: 17,
                          center: myLatLng
                      });
                      var marker = new google.maps.Marker({
                          position: myLatLng,
                          map: map,
                          title: 'ВІТЕКС УКРАЇНА!'
                      });
                  }
923cadac   Yarik   Small fixes 8.11.16
26
27
28
29
30
31
32
33
34
35
36
37
38
                  ",
          $this::POS_BEGIN
      );
      $this->registerJsFile(
          'https://maps.googleapis.com/maps/api/js?key=AIzaSyCaeB8Lppsl-JqjsGWVHxxMQ3WqU8vGlOQ&callback=initMap'
      );
  ?>
  <div class="section-box box-title-1 uppercase"><?= $this->title; ?></div>
  <div class="section-box box-brand margin_bottom_30">
      <?php
          echo $page->lang->body;
      ?>
  </div>