404

parent d76014ab
<?php
use yii\db\Schema;
use yii\db\Migration;
class m160126_143450_fix_co_blocks_table extends Migration
{
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql')
{
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';
}
$this->alterColumn('co_blocks', 'category_id', Schema::TYPE_INTEGER . '(11) NULL');
}
public function safeDown()
{
$this->alterColumn('co_blocks', 'category_id', Schema::TYPE_INTEGER . '(11) NOT NULL');
}
}
...@@ -91,7 +91,7 @@ class SiteController extends BaseController ...@@ -91,7 +91,7 @@ class SiteController extends BaseController
$model = \common\modules\content\models\CoContent::findOne(['url' => 'site/error']); $model = \common\modules\content\models\CoContent::findOne(['url' => 'site/error']);
$content = $model->getContent(); $content = $model->getContent();
$this->meta_title = $model->metaTags->title; $this->meta_title = $model->metaTags->title . ' - ' . \Yii::$app->params['name'];
$this->meta_description = $model->metaTags->description; $this->meta_description = $model->metaTags->description;
$this->meta_keywords = $model->metaTags->keywords; $this->meta_keywords = $model->metaTags->keywords;
......
This diff is collapsed.
...@@ -358,6 +358,11 @@ $(document).ready(function() { ...@@ -358,6 +358,11 @@ $(document).ready(function() {
container: '.sh_reg_form', container: '.sh_reg_form',
}); });
}); });
$(function () {
window.validation.init({
container: '.keys_mail_form',
});
});
$(".toggle-mnu").click(function () { $(".toggle-mnu").click(function () {
$(".menu").toggleClass("menu_active"); $(".menu").toggleClass("menu_active");
}); });
...@@ -378,13 +383,29 @@ $(window).scroll(function() { ...@@ -378,13 +383,29 @@ $(window).scroll(function() {
var st = $(this).scrollTop(); var st = $(this).scrollTop();
$(".p5").css({ $(".p5").css({
"transform" : "translate(0%, -" + st *1 + "%" "transform" : "translate(0%, -" + st /1 + "%"
}); });
$(".p6").css({ $(".p6").css({
"transform" : "translate(0%, -" + st + "%" "transform" : "translate(0%, -" + st /3 + "%"
}); });
$(".p7").css({ $(".p7").css({
"transform" : "translate(0%, -" + st /0.8 + "%" "transform" : "translate(0%, -" + st /6 + "%"
});
});
$(window).scroll(function() {
var st = $(this).scrollTop();
$(".kns_box4").css({
"transform" : "translate(0%, -" + st /1 + "%"
});
$(".kns_box2").css({
"transform" : "translate(0%, -" + st /1 + "%"
});
$(".kns_box1").css({
"transform" : "translate(0%, -" + st /10 + "%"
});
$(".kns_box3").css({
"transform" : "translate(0%, -" + st /13 + "%"
}); });
}); });
jQuery(function($){ jQuery(function($){
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment