Commit f3ffc9ef1c9e82ad625b4c106b3a0a0912fb5e1d

Authored by Timur Kastemirov
1 parent 129178be

microdata in contacts

Showing 1 changed file with 18 additions and 8 deletions   Show diff stats
frontend/views/site/contact.php
... ... @@ -48,9 +48,18 @@ JS;
48 48 </section>
49 49 <section>
50 50  
51   - <div class="row">
  51 + <div
  52 + class="row"
  53 + itemscope
  54 + itemtype="http://schema.org/Organization"
  55 + >
52 56 <div class="col-md-4">
53   - <div class="box-simple">
  57 + <div
  58 + class="box-simple"
  59 + itemprop="address"
  60 + itemscope
  61 + itemtype="http://schema.org/PostalAddress"
  62 + >
54 63 <div class="icon">
55 64 <i class="fa fa-map-marker"></i>
56 65 </div>
... ... @@ -58,16 +67,17 @@ JS;
58 67 <p>
59 68 <?php
60 69 if (!empty( $settings->street )) {
61   - echo $settings->street;
  70 + echo "<span itemprop=\"streetAddress\">".$settings->street;
62 71 if (!empty( $settings->house )) {
63 72 echo " " . $settings->house;
64 73 }
  74 + echo "</span>";
65 75 echo Html::tag('br');
66 76 }
67 77 if (!empty( $settings->city )) {
68   - echo $settings->city;
  78 + echo "<span itemprop=\"addressLocality\">".$settings->city."</span>";
69 79 if (!empty( $settings->country )) {
70   - echo Html::tag('strong', ", " . $settings->country);
  80 + echo Html::tag('strong', ", <span itemprop=\"addressCountry\">" . $settings->country."</span>");
71 81 }
72 82 }
73 83 ?>
... ... @@ -91,8 +101,8 @@ JS;
91 101 ?>
92 102 <p>
93 103 <?php
94   - echo Html::a(Html::tag('strong', $settings->phone), 'tel:' . $settings->phone);
95   - echo Html::tag('div', $settings->phone2);
  104 + echo Html::a(Html::tag('strong', "<span itemprop=\"telephone\">".$settings->phone."</span>"), 'tel:' . $settings->phone);
  105 + echo Html::tag('div', "<span itemprop=\"telephone\">".$settings->phone2."</span>");
96 106 ?>
97 107 </p>
98 108 </div>
... ... @@ -119,7 +129,7 @@ JS;
119 129 <li>
120 130 <?php
121 131 echo Html::a(
122   - Html::tag('strong', $settings->email),
  132 + Html::tag('strong', "<span itemprop=\"email\">".$settings->email."</span>"),
123 133 'mailto:' . $settings->email
124 134 );
125 135 ?>
... ...