Commit 47dedcab6e38b15a025a1eb6aab7d097cf571021
Merge branch 'clinica_khonko' of gitlab.artweb.com.ua:steska/clinica into clinica_khonko
Showing
7 changed files
with
33 additions
and
36 deletions
Show diff stats
console/migrations/m180605_082938_alter_table_article.php renamed to console/migrations/m181102_082938_alter_table_article.php
frontend/assets/AppAsset.php
... | ... | @@ -13,14 +13,14 @@ |
13 | 13 | public $baseUrl = '@web'; |
14 | 14 | public $css = [ |
15 | 15 | 'css/style.css', |
16 | - '//fonts.googleapis.com/css?family=Ubuntu:400,500,700&subset=cyrillic,cyrillic-ext,latin-ext' | |
16 | +// '//fonts.googleapis.com/css?family=Ubuntu:400,500,700&subset=cyrillic,cyrillic-ext,latin-ext' | |
17 | 17 | ]; |
18 | 18 | public $js = [ |
19 | 19 | 'js/script.js', |
20 | 20 | 'js/jquery.mask.min.js' |
21 | 21 | ]; |
22 | 22 | public $depends = [ |
23 | - 'yii\web\JqueryAsset', | |
23 | + 'yii\web\YiiAsset', | |
24 | 24 | ]; |
25 | 25 | } |
26 | 26 | |
27 | 27 | \ No newline at end of file | ... | ... |
frontend/assets/ScrollAsset.php
frontend/config/main.php
... | ... | @@ -381,7 +381,7 @@ |
381 | 381 | ], |
382 | 382 | 'assetsAutoCompress' => [ |
383 | 383 | 'class' => '\skeeks\yii2\assetsAuto\AssetsAutoCompressComponent', |
384 | - 'enabled' => false, | |
384 | + 'enabled' => true, | |
385 | 385 | |
386 | 386 | 'readFileTimeout' => 3, |
387 | 387 | //Time in seconds for reading each asset file |
... | ... | @@ -414,11 +414,11 @@ |
414 | 414 | 'jsFileCompressFlaggedComments' => true, |
415 | 415 | //Cut comments during processing js |
416 | 416 | |
417 | - 'htmlCompress' => true, | |
417 | + 'htmlCompress' => true, | |
418 | 418 | //Enable compression html |
419 | 419 | 'noIncludeJsFilesOnPjax' => true, |
420 | 420 | //Do not connect the js files when all pjax requests |
421 | - 'htmlCompressOptions' => //options for compressing output result | |
421 | + 'htmlCompressOptions' => //options for compressing output result | |
422 | 422 | [ |
423 | 423 | 'extra' => false, |
424 | 424 | //use more compact algorithm | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -67,8 +67,8 @@ |
67 | 67 | $this->registerMetaTag( |
68 | 68 | [ |
69 | 69 | 'name' => 'robots', |
70 | - 'content' => $seo->robots, | |
71 | - // 'content' => 'noindex,nofollow', | |
70 | +// 'content' => $seo->robots, | |
71 | + 'content' => 'noindex,nofollow', | |
72 | 72 | ] |
73 | 73 | ); |
74 | 74 | $module = \Yii::$app->getModule('feedback'); |
... | ... | @@ -158,9 +158,7 @@ |
158 | 158 | |
159 | 159 | <ul class="hidden-xs hidden-sm"> |
160 | 160 | <li><a href="/vtoroe-mnenie" class="new"><span> <?=\Yii::t('app','Second thing')?> </span></a></li> |
161 | - <li><a href="<?=(isset($aliases['{"0":"site/questions"}'])) ? | |
162 | - Url::to(['alias' => $aliases['{"0":"site/questions"}']]) : Url::to(['site/questions'])?>"> | |
163 | - <?=\Yii::t('app','Quest/Answer')?></a></li> | |
161 | + <li><a href="<?=(isset($aliases['{"0":"site/questions"}'])) ? Url::to(['alias' => $aliases['{"0":"site/questions"}']]) : Url::to(['site/questions'])?>"><?=\Yii::t('app','Quest/Answer')?></a></li> | |
164 | 162 | <li><a href="<?=Url::to(['site/comments'])?>"><?=\Yii::t('app','Callbacks')?></a></li> |
165 | 163 | </ul> |
166 | 164 | <!-- --> |
... | ... | @@ -317,7 +315,7 @@ |
317 | 315 | </div> |
318 | 316 | </header> |
319 | 317 | |
320 | - <!-- #content должен быть в main.php --> | |
318 | + <?php #content должен быть в main.php ?> | |
321 | 319 | <div id="content_" class="section-box-content"> |
322 | 320 | <!-- start breadcrumbs --> |
323 | 321 | <?php if (!empty($this->params['breadcrumbs'])) {?> |
... | ... | @@ -332,12 +330,14 @@ |
332 | 330 | </div> |
333 | 331 | </section> |
334 | 332 | <?php }?> |
335 | - <!-- если не главная выводить сюда--> | |
336 | - <!-- end breadcrumbs --> | |
337 | - | |
338 | - <!-- start content --> | |
333 | + <?php #если не главная выводить сюда | |
334 | + # end breadcrumbs ?> | |
335 | + | |
336 | + <?php #start content ?> | |
337 | + | |
339 | 338 | <?= $content ?> |
340 | - <!-- end content --> | |
339 | + <?php # end content ?> | |
340 | + | |
341 | 341 | |
342 | 342 | <div class="section-box-6"> |
343 | 343 | <div class="container"> |
... | ... | @@ -526,8 +526,8 @@ |
526 | 526 | <div class="txt-success"><span><?=\Yii::t('app','Thanks for request')?></span> |
527 | 527 | <p><?=Yii::t('app','We`ll call you later')?>.</p></div> |
528 | 528 | </div> |
529 | - | |
530 | - <!-- выводить если главная страница --> | |
529 | + <?php # выводить если главная страница ?> | |
530 | + | |
531 | 531 | |
532 | 532 | <?php $this->endBody() ?> |
533 | 533 | </body> | ... | ... |
frontend/views/site/index.php
... | ... | @@ -17,7 +17,14 @@ |
17 | 17 | \frontend\assets\ScrollAsset::register($this); |
18 | 18 | $js = <<<JS |
19 | 19 | //первый слайдер |
20 | - | |
20 | + if($(window).width() > 767) { | |
21 | + $('.for-hidden-mob').mCustomScrollbar( | |
22 | + { | |
23 | + autoHideScrollbar: true, | |
24 | + theme: 'minimal' | |
25 | + } | |
26 | + ); | |
27 | + } | |
21 | 28 | setTimeout(function() { |
22 | 29 | if ($(".slider-first") |
23 | 30 | .children().length > 1) { | ... | ... |
frontend/web/js/script.js
... | ... | @@ -482,6 +482,9 @@ $(document).ready(function() { |
482 | 482 | }); |
483 | 483 | |
484 | 484 | }); |
485 | +jQuery.fn.load = function(callback) { | |
486 | + $(window).on("load", callback) | |
487 | +}; | |
485 | 488 | |
486 | 489 | window.onload = function () { |
487 | 490 | console.log('start onload'); |
... | ... | @@ -499,21 +502,8 @@ window.onload = function () { |
499 | 502 | console.log('start'); |
500 | 503 | $('nav').addClass('start'); |
501 | 504 | $('body').addClass('disabled-preloader') |
502 | - },2700 + 2000) | |
505 | + },2700 + 2000); | |
503 | 506 | |
504 | 507 | |
505 | - if($(window).width() > 767) { | |
506 | - $('.for-hidden-mob').mCustomScrollbar( | |
507 | - { | |
508 | - autoHideScrollbar: true, | |
509 | - theme: 'minimal' | |
510 | - } | |
511 | - ); | |
512 | - } | |
513 | -} | |
514 | - | |
515 | -$(window).load(function() { | |
516 | - console.log('start load jquery'); | |
517 | - | |
518 | -}); | |
508 | +}; | |
519 | 509 | ... | ... |