Commit faff05f307977af967ebe26588c66eb0d6595c41
1 parent
ae6f91d8
Добавил второй телефон в header сайта
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
frontend/config/main.php
... | ... | @@ -186,7 +186,6 @@ |
186 | 186 | 'class' => 'btn btn-template-main', |
187 | 187 | ], |
188 | 188 | 'buttonContent' => '<i class="fa fa-envelope-o"></i>Send Message', |
189 | - 'buttonContent' => \Yii::t('app', 'Send Message'), | |
190 | 189 | 'sendEmail' => false, |
191 | 190 | 'ajax' => true, |
192 | 191 | 'formId' => 'contact-form', | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -32,6 +32,7 @@ |
32 | 32 | $seo = Yii::$app->get('seo'); |
33 | 33 | $feedback = new Feedback(); |
34 | 34 | $settings = Settings::getInstance(); |
35 | + | |
35 | 36 | $controller = Yii::$app->controller; |
36 | 37 | $default_controller = Yii::$app->defaultRoute; |
37 | 38 | $isHome = ( ( $controller->id === $default_controller ) && ( $controller->action->id === $controller->defaultAction ) ) ? true : false; |
... | ... | @@ -110,6 +111,8 @@ _________________________________________________________ --> |
110 | 111 | if (!empty($settings->phone)) { |
111 | 112 | echo \Yii::t('app', 'Contact us on '); |
112 | 113 | echo Html::a($settings->phone, "tel: {$settings->phone}"); |
114 | + echo ' '; | |
115 | + echo Html::a($settings->phone2, "tel: {$settings->phone2}"); | |
113 | 116 | if (!empty($settings->email)) { |
114 | 117 | echo \Yii::t('app', ' or '); |
115 | 118 | echo Html::a($settings->email, "mailto:$settings->email"); | ... | ... |