Commit f3ffc9ef1c9e82ad625b4c106b3a0a0912fb5e1d
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,9 +48,18 @@ JS; | ||
48 | </section> | 48 | </section> |
49 | <section> | 49 | <section> |
50 | 50 | ||
51 | - <div class="row"> | 51 | + <div |
52 | + class="row" | ||
53 | + itemscope | ||
54 | + itemtype="http://schema.org/Organization" | ||
55 | + > | ||
52 | <div class="col-md-4"> | 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 | <div class="icon"> | 63 | <div class="icon"> |
55 | <i class="fa fa-map-marker"></i> | 64 | <i class="fa fa-map-marker"></i> |
56 | </div> | 65 | </div> |
@@ -58,16 +67,17 @@ JS; | @@ -58,16 +67,17 @@ JS; | ||
58 | <p> | 67 | <p> |
59 | <?php | 68 | <?php |
60 | if (!empty( $settings->street )) { | 69 | if (!empty( $settings->street )) { |
61 | - echo $settings->street; | 70 | + echo "<span itemprop=\"streetAddress\">".$settings->street; |
62 | if (!empty( $settings->house )) { | 71 | if (!empty( $settings->house )) { |
63 | echo " " . $settings->house; | 72 | echo " " . $settings->house; |
64 | } | 73 | } |
74 | + echo "</span>"; | ||
65 | echo Html::tag('br'); | 75 | echo Html::tag('br'); |
66 | } | 76 | } |
67 | if (!empty( $settings->city )) { | 77 | if (!empty( $settings->city )) { |
68 | - echo $settings->city; | 78 | + echo "<span itemprop=\"addressLocality\">".$settings->city."</span>"; |
69 | if (!empty( $settings->country )) { | 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,8 +101,8 @@ JS; | ||
91 | ?> | 101 | ?> |
92 | <p> | 102 | <p> |
93 | <?php | 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 | </p> | 107 | </p> |
98 | </div> | 108 | </div> |
@@ -119,7 +129,7 @@ JS; | @@ -119,7 +129,7 @@ JS; | ||
119 | <li> | 129 | <li> |
120 | <?php | 130 | <?php |
121 | echo Html::a( | 131 | echo Html::a( |
122 | - Html::tag('strong', $settings->email), | 132 | + Html::tag('strong', "<span itemprop=\"email\">".$settings->email."</span>"), |
123 | 'mailto:' . $settings->email | 133 | 'mailto:' . $settings->email |
124 | ); | 134 | ); |
125 | ?> | 135 | ?> |