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
@@ -5,7 +5,7 @@ use yii\db\Migration; | @@ -5,7 +5,7 @@ use yii\db\Migration; | ||
5 | /** | 5 | /** |
6 | * Class m180605_082938_alter_table_article | 6 | * Class m180605_082938_alter_table_article |
7 | */ | 7 | */ |
8 | -class m180605_082938_alter_table_article extends Migration | 8 | +class m181102_082938_alter_table_article extends Migration |
9 | { | 9 | { |
10 | /** | 10 | /** |
11 | * {@inheritdoc} | 11 | * {@inheritdoc} |
frontend/assets/AppAsset.php
@@ -13,14 +13,14 @@ | @@ -13,14 +13,14 @@ | ||
13 | public $baseUrl = '@web'; | 13 | public $baseUrl = '@web'; |
14 | public $css = [ | 14 | public $css = [ |
15 | 'css/style.css', | 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 | public $js = [ | 18 | public $js = [ |
19 | 'js/script.js', | 19 | 'js/script.js', |
20 | 'js/jquery.mask.min.js' | 20 | 'js/jquery.mask.min.js' |
21 | ]; | 21 | ]; |
22 | public $depends = [ | 22 | public $depends = [ |
23 | - 'yii\web\JqueryAsset', | 23 | + 'yii\web\YiiAsset', |
24 | ]; | 24 | ]; |
25 | } | 25 | } |
26 | 26 | ||
27 | \ No newline at end of file | 27 | \ No newline at end of file |
frontend/assets/ScrollAsset.php
@@ -22,6 +22,6 @@ class ScrollAsset extends AssetBundle | @@ -22,6 +22,6 @@ class ScrollAsset extends AssetBundle | ||
22 | 'js/jquery.mCustomScrollbar.concat.min.js' | 22 | 'js/jquery.mCustomScrollbar.concat.min.js' |
23 | ]; | 23 | ]; |
24 | public $depends = [ | 24 | public $depends = [ |
25 | - 'yii\web\JqueryAsset', | 25 | + 'frontend\assets\AppAsset', |
26 | ]; | 26 | ]; |
27 | } | 27 | } |
28 | \ No newline at end of file | 28 | \ No newline at end of file |
frontend/config/main.php
@@ -381,7 +381,7 @@ | @@ -381,7 +381,7 @@ | ||
381 | ], | 381 | ], |
382 | 'assetsAutoCompress' => [ | 382 | 'assetsAutoCompress' => [ |
383 | 'class' => '\skeeks\yii2\assetsAuto\AssetsAutoCompressComponent', | 383 | 'class' => '\skeeks\yii2\assetsAuto\AssetsAutoCompressComponent', |
384 | - 'enabled' => false, | 384 | + 'enabled' => true, |
385 | 385 | ||
386 | 'readFileTimeout' => 3, | 386 | 'readFileTimeout' => 3, |
387 | //Time in seconds for reading each asset file | 387 | //Time in seconds for reading each asset file |
@@ -414,11 +414,11 @@ | @@ -414,11 +414,11 @@ | ||
414 | 'jsFileCompressFlaggedComments' => true, | 414 | 'jsFileCompressFlaggedComments' => true, |
415 | //Cut comments during processing js | 415 | //Cut comments during processing js |
416 | 416 | ||
417 | - 'htmlCompress' => true, | 417 | + 'htmlCompress' => true, |
418 | //Enable compression html | 418 | //Enable compression html |
419 | 'noIncludeJsFilesOnPjax' => true, | 419 | 'noIncludeJsFilesOnPjax' => true, |
420 | //Do not connect the js files when all pjax requests | 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 | 'extra' => false, | 423 | 'extra' => false, |
424 | //use more compact algorithm | 424 | //use more compact algorithm |
frontend/views/layouts/main.php
@@ -67,8 +67,8 @@ | @@ -67,8 +67,8 @@ | ||
67 | $this->registerMetaTag( | 67 | $this->registerMetaTag( |
68 | [ | 68 | [ |
69 | 'name' => 'robots', | 69 | 'name' => 'robots', |
70 | - 'content' => $seo->robots, | ||
71 | - // 'content' => 'noindex,nofollow', | 70 | +// 'content' => $seo->robots, |
71 | + 'content' => 'noindex,nofollow', | ||
72 | ] | 72 | ] |
73 | ); | 73 | ); |
74 | $module = \Yii::$app->getModule('feedback'); | 74 | $module = \Yii::$app->getModule('feedback'); |
@@ -158,9 +158,7 @@ | @@ -158,9 +158,7 @@ | ||
158 | 158 | ||
159 | <ul class="hidden-xs hidden-sm"> | 159 | <ul class="hidden-xs hidden-sm"> |
160 | <li><a href="/vtoroe-mnenie" class="new"><span> <?=\Yii::t('app','Second thing')?> </span></a></li> | 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 | <li><a href="<?=Url::to(['site/comments'])?>"><?=\Yii::t('app','Callbacks')?></a></li> | 162 | <li><a href="<?=Url::to(['site/comments'])?>"><?=\Yii::t('app','Callbacks')?></a></li> |
165 | </ul> | 163 | </ul> |
166 | <!-- --> | 164 | <!-- --> |
@@ -317,7 +315,7 @@ | @@ -317,7 +315,7 @@ | ||
317 | </div> | 315 | </div> |
318 | </header> | 316 | </header> |
319 | 317 | ||
320 | - <!-- #content должен быть в main.php --> | 318 | + <?php #content должен быть в main.php ?> |
321 | <div id="content_" class="section-box-content"> | 319 | <div id="content_" class="section-box-content"> |
322 | <!-- start breadcrumbs --> | 320 | <!-- start breadcrumbs --> |
323 | <?php if (!empty($this->params['breadcrumbs'])) {?> | 321 | <?php if (!empty($this->params['breadcrumbs'])) {?> |
@@ -332,12 +330,14 @@ | @@ -332,12 +330,14 @@ | ||
332 | </div> | 330 | </div> |
333 | </section> | 331 | </section> |
334 | <?php }?> | 332 | <?php }?> |
335 | - <!-- если не главная выводить сюда--> | ||
336 | - <!-- end breadcrumbs --> | ||
337 | - | ||
338 | - <!-- start content --> | 333 | + <?php #если не главная выводить сюда |
334 | + # end breadcrumbs ?> | ||
335 | + | ||
336 | + <?php #start content ?> | ||
337 | + | ||
339 | <?= $content ?> | 338 | <?= $content ?> |
340 | - <!-- end content --> | 339 | + <?php # end content ?> |
340 | + | ||
341 | 341 | ||
342 | <div class="section-box-6"> | 342 | <div class="section-box-6"> |
343 | <div class="container"> | 343 | <div class="container"> |
@@ -526,8 +526,8 @@ | @@ -526,8 +526,8 @@ | ||
526 | <div class="txt-success"><span><?=\Yii::t('app','Thanks for request')?></span> | 526 | <div class="txt-success"><span><?=\Yii::t('app','Thanks for request')?></span> |
527 | <p><?=Yii::t('app','We`ll call you later')?>.</p></div> | 527 | <p><?=Yii::t('app','We`ll call you later')?>.</p></div> |
528 | </div> | 528 | </div> |
529 | - | ||
530 | - <!-- выводить если главная страница --> | 529 | + <?php # выводить если главная страница ?> |
530 | + | ||
531 | 531 | ||
532 | <?php $this->endBody() ?> | 532 | <?php $this->endBody() ?> |
533 | </body> | 533 | </body> |
frontend/views/site/index.php
@@ -17,7 +17,14 @@ | @@ -17,7 +17,14 @@ | ||
17 | \frontend\assets\ScrollAsset::register($this); | 17 | \frontend\assets\ScrollAsset::register($this); |
18 | $js = <<<JS | 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 | setTimeout(function() { | 28 | setTimeout(function() { |
22 | if ($(".slider-first") | 29 | if ($(".slider-first") |
23 | .children().length > 1) { | 30 | .children().length > 1) { |
frontend/web/js/script.js
@@ -482,6 +482,9 @@ $(document).ready(function() { | @@ -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 | window.onload = function () { | 489 | window.onload = function () { |
487 | console.log('start onload'); | 490 | console.log('start onload'); |
@@ -499,21 +502,8 @@ window.onload = function () { | @@ -499,21 +502,8 @@ window.onload = function () { | ||
499 | console.log('start'); | 502 | console.log('start'); |
500 | $('nav').addClass('start'); | 503 | $('nav').addClass('start'); |
501 | $('body').addClass('disabled-preloader') | 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 |