Commit ca095e8aff10acadc2fac946452e0b36264db796
1 parent
19a58735
Добавил второй телефон в header сайта
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -111,8 +111,12 @@ _________________________________________________________ --> | @@ -111,8 +111,12 @@ _________________________________________________________ --> | ||
111 | if (!empty($settings->phone)) { | 111 | if (!empty($settings->phone)) { |
112 | echo \Yii::t('app', 'Contact us on '); | 112 | echo \Yii::t('app', 'Contact us on '); |
113 | echo Html::a($settings->phone, "tel: {$settings->phone}"); | 113 | echo Html::a($settings->phone, "tel: {$settings->phone}"); |
114 | - echo ' '; | ||
115 | - echo Html::a($settings->phone2, "tel: {$settings->phone2}"); | 114 | + if (!empty( $settings->phone2 )) { |
115 | + echo ' '; | ||
116 | + echo Html::a($settings->phone2, "tel: {$settings->phone2}"); | ||
117 | + } else { | ||
118 | + echo "TEST!!!"; | ||
119 | + } | ||
116 | if (!empty($settings->email)) { | 120 | if (!empty($settings->email)) { |
117 | echo \Yii::t('app', ' or '); | 121 | echo \Yii::t('app', ' or '); |
118 | echo Html::a($settings->email, "mailto:$settings->email"); | 122 | echo Html::a($settings->email, "mailto:$settings->email"); |