diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index c15e1cb..5b33734 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -164,9 +164,9 @@ use yii\captcha\Captcha; ['enctype'=> 'multipart/form-data','id'=>'call_form'], 'action' => '/']); ?>

Обратный звонок

- field(new Callback(), 'name')->textInput(['maxlength' => 45,'placeholder'=>'Имя'])->label(false) ?>* + field(new Callback(), 'name')->textInput(['maxlength' => 45,'placeholder'=>'Имя'])->label(false) ?> - field(new Callback(), 'phone_num')->textInput(['maxlength' => 45,'placeholder'=>'Телефон','class'=>'form-control telephone_registration'])->label(false) ?>* + field(new Callback(), 'phone_num')->textInput(['maxlength' => 45,'placeholder'=>'Телефон','class'=>'form-control telephone_registration'])->label(false) ?>
diff --git a/frontend/views/news/view.php b/frontend/views/news/view.php index ad228a8..c0e80d6 100755 --- a/frontend/views/news/view.php +++ b/frontend/views/news/view.php @@ -19,12 +19,17 @@ $this->params['breadcrumbs'][] = $this->title;
- -
- ".$one_news->name."

",['news/view', 'translit' =>$one_news->code ]) ?> - ".$one_news->brief."

",['news/view', 'translit' =>$one_news->code ]) ?> -
- + +
+ ".$next_news->name."

",['news/view', 'translit' =>$next_news->code ]) ?> + ".$next_news->brief."

",['news/view', 'translit' =>$next_news->code ]) ?> +
+ +
+ ".$prev_news->name."

",['news/view', 'translit' =>$prev_news->code ]) ?> + ".$prev_news->brief."

",['news/view', 'translit' =>$prev_news->code ]) ?> +
+
diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 776d259..be0b05e 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -577,27 +577,57 @@ use \yii\helpers\Html;
'main_link_news'])?> - - 1/ - 5 - - -
-
- img)); ?> - ".$one_news->name."

",['news/view', 'translit' =>$one_news->code ]) ?> -
-
- + + + + + + + +img)); ?> +".$one_news->name."

",['news/view', 'translit' =>$one_news->code ]) ?> + + +
-
- -

На склад поступила очередная партия товара Metalcaucho. Готов к отгрузке.

- Полный список товаров этой группы доступен по
ссылке

+ + + + + + + + + +
diff --git a/frontend/web/css/about_company.css b/frontend/web/css/about_company.css index 1a58212..a79ac5a 100755 --- a/frontend/web/css/about_company.css +++ b/frontend/web/css/about_company.css @@ -70,6 +70,10 @@ padding-left: 9px; } + +.personal_photo img{ + border-radius: 50%; +} .personal_name{ font-size: 18px; height: 27px; diff --git a/frontend/web/css/main.css b/frontend/web/css/main.css index e84bbbb..b38adb9 100755 --- a/frontend/web/css/main.css +++ b/frontend/web/css/main.css @@ -142,7 +142,13 @@ li a{ margin-bottom: 10px; } -div.required:after {content: " *"; color: #fec831;} +div.required:after { content: " *"; + color: #fec831; + display: inline-block; + position: relative; + top: -31px; + left: 40px; +} .registration_holder{ padding-top: 32px; @@ -181,4 +187,79 @@ div.required:after {content: " *"; color: #fec831;} .vin{ width: 960px; margin: 20px auto; +} + +#modal_form input { + background-color: #f5f5f5; + width: 334px; + height: 30px; + padding-left: 9px; + border-radius: 6px; + border: 1px solid #dfdfdf; + margin: 8px 114px 20px; +} + +#modal_form #email-error{ + position: absolute; + left: 121px; + top: 150px; +} + +#modal_form input[type="checkbox"] + label span, input[type="checkbox"]:checked + label span { + position: absolute; + left: 114px; + top: 224px; + -webkit-transition: background 0.4s linear; + -o-transition: background 0.4s linear; + -moz-transition: background 0.4s linear; + transition: background 0.4s linear; +} +#modal_form #password-error{ + position: absolute; + left: 124px; + top: 199px; +} + +.star1 { + color: #fec831; + position: absolute; + left: 104px; + top: 184px; +} + +.has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label{ + position: absolute!important; + left: 135px!important; +} + +.back_news a:last-child strong span{ + font-size: 14px!important; + font-weight: 500; + display: block; + margin-left: 61px; + width: 240px; + +} + +.back_news:nth-child(2){ + background-image: url('/images/arrow_slider_go.png'); + background-repeat: no-repeat; + background-position: 100% 46%; +} +.back_news:nth-child(2){ + background-image: url('/images/arrow_slider_go.png'); + background-repeat: no-repeat; + background-position: 100% 46%; +} + +.back_news:hover{ + background-image: url('/images/arrow_slider_back.png'); + background-repeat: no-repeat; + background-position: 0% 46%; +} + +.back_news:nth-child(2):hover{ + background-image: url('/images/arrow_slider_go.png'); + background-repeat: no-repeat; + background-position: 100% 46%; } \ No newline at end of file diff --git a/frontend/web/css/news_all.css b/frontend/web/css/news_all.css index 008ad1e..9fcea36 100755 --- a/frontend/web/css/news_all.css +++ b/frontend/web/css/news_all.css @@ -27,3 +27,4 @@ p, a, label, span{ } + diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index e42cb8e..74f4787 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -309,9 +309,9 @@ .searching_for_tovars:focus{ outline: none } -.slider_tovars{ - width: 730px; - height: 315px; +#carousel-example-generic1{ + width: 220px; + height: 310px; } .car a{ color:#ffffff; @@ -322,7 +322,35 @@ } +#carousel-example-generic1 .carousel-control.left{ + background-image: none!important; + height: 27px; + top: -35px; + left: 90px; +} +#carousel-example-generic1 .right.carousel-control{ + background-image: none!important; + height: 27px; + top: -36px; + right: 42px; +} +#carousel-example-generic1 .carousel-caption { + position: static!important; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top:0!important; + padding-bottom: 0!important; + color: inherit!important; + text-shadow: none!important; + width: 179px; +} + +#carousel-example-generic1 .carousel-indicators{ + display: none +} .tovar a:hover{ color:#a2b5da; } @@ -1917,7 +1945,7 @@ span:first-child .tovars{ } .news .slider_tovars .tovar img{ - margin-left: -18px; + margin-left: 13px; border:1px solid #dfdfdf; } .news img{ @@ -2512,27 +2540,29 @@ input[type="checkbox"]:checked + label span { - .carousel-indicators { + #carousel-example-generic.carousel-indicators { bottom: 0px; } - .carousel { + #carousel-example-generic .carousel { position: relative; - height: 300px; } - .carousel-inner > .item > img, .carousel-inner > .item > a > img { + #carousel-example-generic .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; - height: 300px; + max-height: 300px; + margin: 0 auto; } - - .carousel-control.left{ + #carousel-example-generic .carousel-inner > .item{ + height: auto!important; + } + #carousel-example-generic .carousel-control.left{ background-image: url('../images/arrow_back.png'); background-repeat: no-repeat; background-position: 82% 50%; } - .carousel-control.right { + #carousel-example-generic .carousel-control.right { background-image: url('../images/arrow_go.png'); background-repeat: no-repeat; @@ -2952,3 +2982,8 @@ input[type="checkbox"]:checked + label span { margin-top: -1px; } +.num{ + font-weight: 500; + font-size: 22px; + margin-left: 26px; +} \ No newline at end of file diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index 1af8d8a..64c365d 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -1,4 +1,12 @@ $(document).ready(function(){ + var totalItems = $('#carousel-example-generic1 .item').length; + var currentIndex = $('#carousel-example-generic1 .active').index() + 1; + $('.num').html(''+currentIndex+'/'+totalItems+''); + $('#carousel-example-generic1').bind('slide.bs.carousel', function() { + currentIndex = $('#carousel-example-generic1 .active').index() + 1; + $('.num').html(''+currentIndex+'/'+totalItems+''); + }); + $('.phone_control, .phone_placeholder').click( function(){ $('.phone_placeholder').toggleClass('active_placeholder'); @@ -44,14 +52,6 @@ $('.phone_control, .phone_placeholder').click( } ); - - // $('#catalog1').hover(function(){ - // $('.dropdown_menu_catalog').stop().slideDown(400); - // $('#by_name').removeClass('active_button'); - // $('#by_vin').removeClass('active_button'); - // $('#by_to').removeClass('active_button'); - // $('#by_articul').removeClass('active_button'); - // }); var $class = 0; // $('.choose_tovar .menu_item1').each(function(){ -- libgit2 0.21.4