Commit ca095e8aff10acadc2fac946452e0b36264db796

Authored by alex
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 111 if (!empty($settings->phone)) {
112 112 echo \Yii::t('app', 'Contact us on ');
113 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 120 if (!empty($settings->email)) {
117 121 echo \Yii::t('app', ' or ');
118 122 echo Html::a($settings->email, "mailto:$settings->email");
... ...