Commit e9d97c361a512d7423bf39b9085e5328cbfa14b2

Authored by Yarik
2 parents 476ebf6c f7011928

Merge remote-tracking branch 'origin/master'

Showing 1 changed file with 455 additions and 432 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -38,460 +38,483 @@
38 38 ->all();
39 39 $logo = null;
40 40 if ($settings->logo) {
41   - $logo = ImageManager::findOne($settings->logo);
42   - if ($logo) {
43   - $logo = $logo->getImagePathPrivate();
44   - } else {
45   - \Yii::getAlias('@frontend/web/img/no-image.png');
  41 + $logo_img = ImageManager::findOne($settings->logo);
  42 + if ($logo_img) {
  43 + $logo = $logo_img->getImagePathPrivate() ?? $logo;
46 44 }
47 45 }
  46 +
  47 + $this->registerMetaTag(
  48 + [
  49 + 'name' => 'description',
  50 + 'content' => $seo->desc,
  51 + ]
  52 + )
48 53 ?>
49 54  
50 55 <?php $this->beginPage() ?>
51   -
52   - <!DOCTYPE html>
53   - <html lang="<?= \Yii::$app->language ?>">
54   - <head>
55   - <meta charset="<?= \Yii::$app->charset ?>">
56   - <meta name="viewport" content="width=device-width, initial-scale=1">
57   - <!-- Responsivity for older IE -->
58   - <!--[if lt IE 9]>
59   - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
60   - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
61   - <![endif]-->
62   - <?= Html::csrfMetaTags() ?>
63   - <title><?= Html::encode($seo->title) ?></title>
64   - <?php $this->head() ?>
65   - </head>
66   - <body>
67   - <?php $this->beginBody() ?>
68   - <div id="all">
69   - <header>
70   - <!-- *** TOP ***
71   - _________________________________________________________ -->
72   - <div id="top">
73   - <div class="container">
74   - <div class="row">
75   - <div class="col-xs-5 contact">
76   - <p class="hidden-sm hidden-xs">
77   - <?php
78   - if (!empty( $settings->phone )) {
79   - echo \Yii::t('app', 'Contact us on ');
80   - echo Html::a($settings->phone, "tel: {$settings->phone}");
81   - if (!empty( $settings->email )) {
82   - echo \Yii::t('app', ' or ');
83   - echo Html::a($settings->email, "mailto:$settings->email");
84   - }
85   - }
86   - ?>
87   - </p>
88   - <p class="hidden-md hidden-lg">
89   - <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
90   - <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
91   - </p>
92   - </div>
93   - <div class="col-xs-7">
94   - <div class="social">
95   - <?php
96   - if (!empty( $settings->facebook )) {
97   - echo Html::a(
98   - Html::icon(
99   - 'facebook',
100   - [
101   - 'prefix' => 'fa fa-',
102   - ]
103   - ),
104   - $settings->facebook,
105   - [
106   - 'class' => 'external facebook',
107   - 'data' => [
108   - 'animate-hover' => 'pulse',
109   - ],
110   - ]
111   - );
112   - }
113   - ?>
114   - <?php
115   - if (!empty( $settings->vk )) {
116   - echo Html::a(
117   - Html::icon(
118   - 'vk',
119   - [
120   - 'prefix' => 'fa fa-',
121   - ]
122   - ),
123   - $settings->vk,
124   - [
125   - 'class' => 'external vk',
126   - 'data' => [
127   - 'animate-hover' => 'pulse',
128   - ],
129   - ]
130   - );
131   - }
132   - ?>
133   - <?php
134   - if (!empty( $settings->google )) {
135   - echo Html::a(
136   - Html::icon(
137   - 'google-plus',
138   - [
139   - 'prefix' => 'fa fa-',
140   - ]
141   - ),
142   - $settings->google,
143   - [
144   - 'class' => 'external gplus',
145   - 'data' => [
146   - 'animate-hover' => 'pulse',
147   - ],
148   - ]
149   - );
150   - }
151   - ?>
152   - <?php
153   - if (!empty( $settings->twitter )) {
154   - echo Html::a(
155   - Html::icon(
156   - 'twitter',
157   - [
158   - 'prefix' => 'fa fa-',
159   - ]
160   - ),
161   - $settings->twitter,
162   - [
163   - 'class' => 'external twitter',
164   - 'data' => [
165   - 'animate-hover' => 'pulse',
166   - ],
167   - ]
168   - );
169   - }
170   - ?>
171   - <?php
172   - if (!empty( $settings->ok )) {
173   - echo Html::a(
174   - Html::icon(
175   - 'odnoklassniki',
176   - [
177   - 'prefix' => 'fa fa-',
178   - ]
179   - ),
180   - $settings->ok,
181   - [
182   - 'class' => 'external odnoklassniki',
183   - 'data' => [
184   - 'animate-hover' => 'pulse',
185   - ],
186   - ]
187   - );
188   - }
189   - ?>
190   - <?php
191   - if (!empty( $settings->email )) {
192   - echo Html::a(
193   - Html::icon(
194   - 'envelope',
195   - [
196   - 'prefix' => 'fa fa-',
197   - ]
198   - ),
199   - "mailto:$settings->email",
200   - [
201   - 'class' => 'email',
202   - 'data' => [
203   - 'animate-hover' => 'pulse',
204   - ],
205   - ]
206   - );
207   - }
208   - ?>
209   - </div>
210   - </div>
211   - </div>
212   - </div>
213   - </div>
214   - <!-- *** TOP END *** -->
215   -
216   - <!-- *** NAVBAR ***
217   - _________________________________________________________ -->
218   - <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
219   -
220   - <div class="navbar navbar-default yamm" role="navigation" id="navbar">
221   -
222   - <div class="container">
223   - <div class="navbar-header">
224   -
225   - <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
226   - <?php
227   - echo ImageHelper::set($logo)
228   - ->setHeight(42)
229   - ->renderImage(
230   - [
231   - 'alt' => $settings->name,
232   - ]
233   - )
234   - ?>
235   - </a>
236   - <div class="navbar-buttons">
237   - <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
238   - <span class="sr-only">Toggle navigation</span>
239   - <i class="fa fa-align-justify"></i>
240   - </button>
241   - </div>
242   - </div>
243   -
244   - <div class="navbar-collapse collapse" id="navigation">
245   - <?php
246   - $pagesLinks = [];
247   - foreach ($pages as $page) {
248   - $route = [
249   - 'page/view',
250   - 'id' => $page->id,
251   - ];
252   - if (!empty( $page->lang->alias ) && !empty( $page->lang->alias->route )) {
253   - $route = Json::decode($page->lang->alias->route);
254   - }
255   - $pagesLinks[] = [
256   - 'label' => $page->lang->title,
257   - 'url' => $route,
258   - ];
259   - }
260   - echo Nav::widget(
261   - [
262   - 'items' => [
263   - [
264   - 'label' => \Yii::t('app', 'Home'),
265   - 'url' => [ 'site/index' ],
266   - ],
267   - [
268   - 'label' => \Yii::t('app', 'Pages'),
269   - 'items' => $pagesLinks,
270   - 'visible' => count($pagesLinks),
271   - ],
272   - [
273   - 'label' => \Yii::t('app', 'Contatcs'),
274   - 'url' => [ 'site/contact' ],
275   - ],
276   - [
277   - 'label' => \Yii::t('app', 'About'),
278   - 'url' => [ 'site/about' ],
279   - ],
280   - ],
281   - 'options' => [
282   - 'class' => 'nav navbar-nav navbar-right',
283   - ],
284   - ]
285   - );
286   - ?>
287   - </div>
288   -
289   -
290   - <div class="collapse clearfix" id="search">
291   -
292   - <form class="navbar-form" role="search">
293   - <div class="input-group">
294   - <input type="text" class="form-control" placeholder="Search">
295   - <span class="input-group-btn">
  56 +
  57 + <!DOCTYPE html>
  58 + <html lang="<?= \Yii::$app->language ?>">
  59 + <head>
  60 + <meta charset="<?= \Yii::$app->charset ?>">
  61 + <meta name="viewport" content="width=device-width, initial-scale=1">
  62 + <?= Html::csrfMetaTags() ?>
  63 + <title><?= Html::encode($seo->title) ?></title>
  64 + <?php $this->head() ?>
  65 + </head>
  66 + <body>
  67 + <?php $this->beginBody() ?>
  68 + <!-- Google Analytics -->
  69 + <script>
  70 + (function(i, s, o, g, r, a, m) {
  71 + i[ 'GoogleAnalyticsObject' ] = r;
  72 + i[ r ] = i[ r ] || function() {
  73 + (i[ r ].q = i[ r ].q || []).push(arguments)
  74 + }, i[ r ].l = 1 * new Date();
  75 + a = s.createElement(o), m = s.getElementsByTagName(o)[ 0 ];
  76 + a.async = 1;
  77 + a.src = g;
  78 + m.parentNode.insertBefore(a, m)
  79 + })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
  80 +
  81 + ga('create', <?=$settings->ga_code?>, 'auto');
  82 + ga('send', 'pageview');
  83 +
  84 + </script>
  85 + <div id="all">
  86 + <header>
  87 + <!-- *** TOP ***
  88 +_________________________________________________________ -->
  89 + <div id="top">
  90 + <div class="container">
  91 + <div class="row">
  92 + <div class="col-xs-5 contact">
  93 + <p class="hidden-sm hidden-xs">
  94 + <?php
  95 + if (!empty($settings->phone)) {
  96 + echo \Yii::t('app', 'Contact us on ');
  97 + echo Html::a($settings->phone, "tel: {$settings->phone}");
  98 + if (!empty($settings->email)) {
  99 + echo \Yii::t('app', ' or ');
  100 + echo Html::a($settings->email, "mailto:$settings->email");
  101 + }
  102 + }
  103 + ?>
  104 + </p>
  105 + <p class="hidden-md hidden-lg">
  106 + <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
  107 + <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
  108 + </p>
  109 + </div>
  110 + <div class="col-xs-7">
  111 + <div class="social">
  112 + <?php
  113 + if (!empty($settings->facebook)) {
  114 + echo Html::a(
  115 + Html::icon(
  116 + 'facebook',
  117 + [
  118 + 'prefix' => 'fa fa-',
  119 + ]
  120 + ),
  121 + $settings->facebook,
  122 + [
  123 + 'class' => 'external facebook',
  124 + 'data' => [
  125 + 'animate-hover' => 'pulse',
  126 + ],
  127 + ]
  128 + );
  129 + }
  130 + ?>
  131 + <?php
  132 + if (!empty($settings->vk)) {
  133 + echo Html::a(
  134 + Html::icon(
  135 + 'vk',
  136 + [
  137 + 'prefix' => 'fa fa-',
  138 + ]
  139 + ),
  140 + $settings->vk,
  141 + [
  142 + 'class' => 'external vk',
  143 + 'data' => [
  144 + 'animate-hover' => 'pulse',
  145 + ],
  146 + ]
  147 + );
  148 + }
  149 + ?>
  150 + <?php
  151 + if (!empty($settings->google)) {
  152 + echo Html::a(
  153 + Html::icon(
  154 + 'google-plus',
  155 + [
  156 + 'prefix' => 'fa fa-',
  157 + ]
  158 + ),
  159 + $settings->google,
  160 + [
  161 + 'class' => 'external gplus',
  162 + 'data' => [
  163 + 'animate-hover' => 'pulse',
  164 + ],
  165 + ]
  166 + );
  167 + }
  168 + ?>
  169 + <?php
  170 + if (!empty($settings->twitter)) {
  171 + echo Html::a(
  172 + Html::icon(
  173 + 'twitter',
  174 + [
  175 + 'prefix' => 'fa fa-',
  176 + ]
  177 + ),
  178 + $settings->twitter,
  179 + [
  180 + 'class' => 'external twitter',
  181 + 'data' => [
  182 + 'animate-hover' => 'pulse',
  183 + ],
  184 + ]
  185 + );
  186 + }
  187 + ?>
  188 + <?php
  189 + if (!empty($settings->ok)) {
  190 + echo Html::a(
  191 + Html::icon(
  192 + 'odnoklassniki',
  193 + [
  194 + 'prefix' => 'fa fa-',
  195 + ]
  196 + ),
  197 + $settings->ok,
  198 + [
  199 + 'class' => 'external odnoklassniki',
  200 + 'data' => [
  201 + 'animate-hover' => 'pulse',
  202 + ],
  203 + ]
  204 + );
  205 + }
  206 + ?>
  207 + <?php
  208 + if (!empty($settings->email)) {
  209 + echo Html::a(
  210 + Html::icon(
  211 + 'envelope',
  212 + [
  213 + 'prefix' => 'fa fa-',
  214 + ]
  215 + ),
  216 + "mailto:$settings->email",
  217 + [
  218 + 'class' => 'email',
  219 + 'data' => [
  220 + 'animate-hover' => 'pulse',
  221 + ],
  222 + ]
  223 + );
  224 + }
  225 + ?>
  226 + </div>
  227 + </div>
  228 + </div>
  229 + </div>
  230 + </div>
  231 + <!-- *** TOP END *** -->
  232 +
  233 + <!-- *** NAVBAR ***
  234 + _________________________________________________________ -->
  235 + <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
  236 +
  237 + <div class="navbar navbar-default yamm" role="navigation" id="navbar">
  238 +
  239 + <div class="container">
  240 + <div class="navbar-header">
  241 +
  242 + <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
  243 + <?php
  244 + echo ImageHelper::set($logo)
  245 + ->setHeight(42)
  246 + ->renderImage(
  247 + [
  248 + 'alt' => $settings->name,
  249 + ]
  250 + )
  251 + ?>
  252 + </a>
  253 + <div class="navbar-buttons">
  254 + <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
  255 + <span class="sr-only">Toggle navigation</span>
  256 + <i class="fa fa-align-justify"></i>
  257 + </button>
  258 + </div>
  259 + </div>
  260 +
  261 + <div class="navbar-collapse collapse" id="navigation">
  262 + <?php
  263 + $pagesLinks = [];
  264 + foreach ($pages as $page) {
  265 + $route = [
  266 + 'page/view',
  267 + 'id' => $page->id,
  268 + ];
  269 + if (!empty($page->lang->alias) && !empty($page->lang->alias->route)) {
  270 + $route = Json::decode($page->lang->alias->route);
  271 + }
  272 + $pagesLinks[] = [
  273 + 'label' => $page->lang->title,
  274 + 'url' => $route,
  275 + ];
  276 + }
  277 + echo Nav::widget(
  278 + [
  279 + 'items' => [
  280 + [
  281 + 'label' => \Yii::t('app', 'Home'),
  282 + 'url' => [ 'site/index' ],
  283 + ],
  284 + [
  285 + 'label' => \Yii::t('app', 'Pages'),
  286 + 'items' => $pagesLinks,
  287 + 'visible' => count($pagesLinks),
  288 + ],
  289 + [
  290 + 'label' => \Yii::t('app', 'Contatcs'),
  291 + 'url' => [ 'site/contact' ],
  292 + ],
  293 + [
  294 + 'label' => \Yii::t('app', 'About'),
  295 + 'url' => [ 'site/about' ],
  296 + ],
  297 + ],
  298 + 'options' => [
  299 + 'class' => 'nav navbar-nav navbar-right',
  300 + ],
  301 + ]
  302 + );
  303 + ?>
  304 + </div>
  305 +
  306 +
  307 + <div class="collapse clearfix" id="search">
  308 +
  309 + <form class="navbar-form" role="search">
  310 + <div class="input-group">
  311 + <input type="text" class="form-control" placeholder="Search">
  312 + <span class="input-group-btn">
296 313  
297 314 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
298 315  
299 316 </span>
300   - </div>
301   - </form>
302   -
303   - </div>
304   - <!--/.nav-collapse -->
305   -
306   - </div>
307   -
308   -
309   - </div>
310   - <!-- /#navbar -->
311   -
312 317 </div>
313   -
314   - <!-- *** NAVBAR END *** -->
315   -
316   - </header>
317   -
318   - <!-- *** FeedBack MODAL ***
319   - _________________________________________________________ -->
  318 + </form>
320 319  
321   - <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
322   - <div class="modal-dialog">
323   -
324   - <div class="modal-content">
325   - <div class="modal-header">
326   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
327   - <h3 class="modal-title" id="Login">Feedback</h3>
328   - </div>
329   - <div class="modal-body">
330   -
331   - <?php $form = ActiveForm::begin(
332   - [
333   - 'id' => 'feedback-form',
334   - 'method' => 'POST',
335   - 'action' => '/site/feedback',
336   - ]
337   - ); ?>
338   -
339   - <?= $form->field($feedback, 'name')
340   - ->textInput(); ?>
341   -
342   - <?= $form->field($feedback, 'email')
343   - ->textInput(); ?>
344   -
345   - <?= $form->field($feedback, 'phone')
346   - ->textInput(); ?>
347   -
348   - <?= $form->field($feedback, 'message')
349   - ->textarea(
350   - [
351   - 'rows' => 4,
352   - ]
353   - ); ?>
354   -
355   - <p class="text-center">
356   - <?= Html::submitButton(
357   - 'Send',
358   - [
359   - 'class' => 'send-form btn btn-lg btn-template-primary',
360   - ]
361   - ) ?>
362   - </p>
363   -
364   - <?php ActiveForm::end(); ?>
365   -
366   - </div>
367   - </div>
368   - </div>
369 320 </div>
  321 + <!--/.nav-collapse -->
  322 +
  323 + </div>
  324 +
  325 +
  326 + </div>
  327 + <!-- /#navbar -->
  328 +
  329 + </div>
  330 +
  331 + <!-- *** NAVBAR END *** -->
  332 +
  333 + </header>
  334 +
  335 + <!-- *** FeedBack MODAL ***
  336 +_________________________________________________________ -->
  337 +
  338 + <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  339 + <div class="modal-dialog">
  340 +
  341 + <div class="modal-content">
  342 + <div class="modal-header">
  343 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  344 + <h3 class="modal-title" id="Login">Feedback</h3>
  345 + </div>
  346 + <div class="modal-body">
  347 +
  348 + <?php $form = ActiveForm::begin(
  349 + [
  350 + 'id' => 'feedback-form',
  351 + 'method' => 'POST',
  352 + 'action' => '/site/feedback',
  353 + ]
  354 + ); ?>
  355 +
  356 + <?= $form->field($feedback, 'name')
  357 + ->textInput(); ?>
  358 +
  359 + <?= $form->field($feedback, 'email')
  360 + ->textInput(); ?>
  361 +
  362 + <?= $form->field($feedback, 'phone')
  363 + ->textInput(); ?>
  364 +
  365 + <?= $form->field($feedback, 'message')
  366 + ->textarea(
  367 + [
  368 + 'rows' => 4,
  369 + ]
  370 + ); ?>
370 371  
371   - <!-- *** FeedBack MODAL END *** -->
372   -
373   - <!-- *** FeedBack MODAL ***
374   - _________________________________________________________ -->
  372 + <p class="text-center">
  373 + <?= Html::submitButton(
  374 + 'Send',
  375 + [
  376 + 'class' => 'send-form btn btn-lg btn-template-primary',
  377 + ]
  378 + ) ?>
  379 + </p>
  380 +
  381 + <?php ActiveForm::end(); ?>
  382 +
  383 + </div>
  384 + </div>
  385 + </div>
  386 + </div>
  387 +
  388 + <!-- *** FeedBack MODAL END *** -->
  389 +
  390 + <!-- *** FeedBack MODAL ***
  391 +_________________________________________________________ -->
  392 +
  393 + <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
  394 + <div class="modal-dialog">
  395 +
  396 + <div class="modal-content">
  397 + <div class="modal-header">
  398 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  399 + <h3 class="modal-title" id="Success">Success</h3>
  400 + </div>
  401 + <div class="modal-body">
375 402  
376   - <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
377   - <div class="modal-dialog">
378   -
379   - <div class="modal-content">
380   - <div class="modal-header">
381   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
382   - <h3 class="modal-title" id="Success">Success</h3>
383   - </div>
384   - <div class="modal-body">
385   -
386   - <p>Thank for your reply, we will call you, maybe.</p>
387   - <p class="text-center">
388   - <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button>
389   - </p>
390   - </div>
391   - </div>
  403 + <p>Thank for your reply, we will call you, maybe.</p>
  404 + <p class="text-center">
  405 + <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button>
  406 + </p>
  407 + </div>
  408 + </div>
  409 + </div>
  410 + </div>
  411 +
  412 + <!-- *** FeedBack MODAL END *** -->
  413 +
  414 + <!-- *** Breadcrumbs *** -->
  415 + <?php
  416 + if (!$isHome) {
  417 + ?>
  418 + <div id="heading-breadcrumbs">
  419 + <div class="container">
  420 + <div class="row">
  421 + <div class="col-md-7">
  422 + <h1><?= $seo->h1 ?></h1>
  423 + </div>
  424 + <div class="col-md-5">
  425 + <?= Breadcrumbs::widget(
  426 + [
  427 + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
  428 + ]
  429 + ) ?>
  430 +
  431 + </div>
392 432 </div>
  433 + </div>
393 434 </div>
394   -
395   - <!-- *** FeedBack MODAL END *** -->
396   -
397   - <!-- *** Breadcrumbs *** -->
  435 + <?php
  436 + }
  437 + ?>
  438 + <!-- *** Breadcrumbs END *** -->
  439 +
  440 + <?= $content ?>
  441 +
  442 + <!-- *** FOOTER ***
  443 +_________________________________________________________ -->
  444 +
  445 + <footer id="footer">
  446 + <div class="container">
  447 + <div class="col-md-6 col-sm-12">
398 448 <?php
399   - if (!$isHome) {
  449 + if (!empty($settings->about)) {
400 450 ?>
401   - <div id="heading-breadcrumbs">
402   - <div class="container">
403   - <div class="row">
404   - <div class="col-md-7">
405   - <h1><?= $seo->h1 ?></h1>
406   - </div>
407   - <div class="col-md-5">
408   - <?= Breadcrumbs::widget(
409   - [
410   - 'links' => isset( $this->params[ 'breadcrumbs' ] ) ? $this->params[ 'breadcrumbs' ] : [],
411   - ]
412   - ) ?>
413   -
414   - </div>
415   - </div>
416   - </div>
417   - </div>
  451 + <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
  452 + <p><?php echo $settings->about; ?></p>
418 453 <?php
419 454 }
420 455 ?>
421   - <!-- *** Breadcrumbs END *** -->
422   -
423   - <?= $content ?>
424   -
425   - <!-- *** FOOTER ***
426   - _________________________________________________________ -->
427   -
428   - <footer id="footer">
429   - <div class="container">
430   - <div class="col-md-6 col-sm-12">
431   - <?php
432   - if (!empty( $settings->about )) {
433   - ?>
434   - <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
435   - <p><?php echo $settings->about; ?></p>
436   - <?php
437   - }
438   - ?>
439   - <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal">Contact us!</a>
440   - </div>
441   -
442   - <div class="col-md-4 col-sm-12 col-md-offset-2">
443   -
444   - <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
445   -
446   - <p>
447   - <?php
448   - if (!empty( $settings->office )) {
449   - echo \Yii::t(
450   - 'app',
451   - 'Office {office}',
452   - [
453   - 'office' => $settings->office,
454   - ]
455   - ) . Html::tag('br');
456   - }
457   - if (!empty( $settings->street )) {
458   - echo $settings->street;
459   - if (!empty( $settings->house )) {
460   - echo " " . $settings->house;
461   - }
462   - echo Html::tag('br');
463   - }
464   - if (!empty( $settings->city )) {
465   - echo $settings->city;
466   - echo Html::tag('br');
467   - }
468   - if (!empty( $settings->country )) {
469   - echo Html::tag('strong', $settings->country);
470   - }
471   - ?>
472   - </p>
473   -
474   - <a href="contact.html" class="btn btn-small btn-template-transparent-primary">Go to contact page</a>
475   -
476   - <hr class="hidden-md hidden-lg hidden-sm">
477   -
478   - </div>
479   -
480   - <div class="col-md-12">
481   - <p class="pull-left">&copy; 2015. <?= $settings->name; ?></p>
482   - </div>
483   - </div>
484   - <!-- /.container -->
485   - </footer>
486   - <!-- /#footer -->
487   -
488   - <!-- *** FOOTER END *** -->
  456 + <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal">Contact us!</a>
  457 + </div>
  458 +
  459 + <div class="col-md-4 col-sm-12 col-md-offset-2">
  460 +
  461 + <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
  462 +
  463 + <p>
  464 + <?php
  465 + if (!empty($settings->office)) {
  466 + echo \Yii::t(
  467 + 'app',
  468 + 'Office {office}',
  469 + [
  470 + 'office' => $settings->office,
  471 + ]
  472 + ) . Html::tag('br');
  473 + }
  474 + if (!empty($settings->street)) {
  475 + echo $settings->street;
  476 + if (!empty($settings->house)) {
  477 + echo " " . $settings->house;
  478 + }
  479 + echo Html::tag('br');
  480 + }
  481 + if (!empty($settings->city)) {
  482 + echo $settings->city;
  483 + echo Html::tag('br');
  484 + }
  485 + if (!empty($settings->country)) {
  486 + echo Html::tag('strong', $settings->country);
  487 + }
  488 + ?>
  489 + </p>
489 490  
490   - <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span>
  491 + <?= Html::a(
  492 + 'Go to contact page',
  493 + [ 'site/contact' ],
  494 + [
  495 + 'class' => 'btn btn-small btn-template-transparent-primary',
  496 + ]
  497 + ) ?>
  498 +
  499 + <hr class="hidden-md hidden-lg hidden-sm">
  500 +
  501 + </div>
491 502  
  503 + <div class="col-md-12">
  504 + <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?></p>
492 505 </div>
493   - <!-- /#all -->
494   - <?php $this->endBody() ?>
495   - </body>
496   - </html>
  506 + </div>
  507 + <!-- /.container -->
  508 + </footer>
  509 + <!-- /#footer -->
  510 +
  511 + <!-- *** FOOTER END *** -->
  512 +
  513 + <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span>
  514 +
  515 + </div>
  516 + <!-- /#all -->
  517 + <?php $this->endBody() ?>
  518 + </body>
  519 + </html>
497 520 <?php $this->endPage() ?>
498 521 \ No newline at end of file
... ...