Commit ab6e9ee88a2287e0270746933da1f551142158e7

Authored by Eugeny Galkovskiy
1 parent 9dccb888

....

src/app/frontend/messages/ru.php
... ... @@ -387,4 +387,6 @@ return array(
387 387 "faq_j_text1" => "В каждой карточке товара указаны все варианты фасовки этой позиции, которые существуют. Профессионалам стоит обратить внимание на большие фасовки. Для того, чтобы узнать наличие и цены на профессиональные упаковки <span>в блоке «Фасовка»</span> необходимо выбрать ту фасовку, которая я Вас интересует (рис. 16). Если она доступна к заказу, то <span>в графе «Наличие»</span> зеленым цветом будет отображаться «Есть в наличии». Но, если товар отсутствует в данный момент, то в графе «Наличие» будет отображаться фраза «Отсутствует» (рис.16,17). При интересе к конкретному товару, которого сейчас нет в наличии, Вы можете связаться с нашими менеджерами по номерам телефона, указанным на сайте, для уточнения сроков ближайших поступлений и заблаговременно зарезервировать данный товар. Когда товар появится в наличии, наши менеджеры свяжутся с Вами для оформления заказа.",
388 388 "lang_name" => "rus",
389 389 "saldo_period" => "за период",
  390 + "open_video_list" => "Раскрыть список",
  391 + "close_video_list" => "Закрыть список",
390 392 );
391 393 \ No newline at end of file
... ...
src/app/frontend/messages/ua.php
... ... @@ -417,4 +417,6 @@ return array(
417 417 "faq_j_text1" => "У кожній картці товару вказані всі варіанти фасування цієї позиції, які існують. Професіоналам варто звернути увагу на великі фасовки. Для того, щоб дізнатися про наявність та ціни на професійні упаковки <span>в блоці «Фасовка»</span> необхідно вибрати ту фасовку, яка Вас цікавить (мал. 16). Якщо вона доступна до замовлення, то <span>в графі «Наявність»</span> зеленим кольором буде відображатися «Є в наявності». Але, якщо товар відсутній в даний момент, то в графі «Наявність» буде відображатися фраза «Відсутній» (мал.16,17). При зацікавленності в конкретному товарі, якого зараз немає в наявності, Ви можете зв'язатися з нашими менеджерами за номерами телефону, вказаним на сайті, для уточнення термінів найближчих надходжень і завчасно зарезервувати даний товар. Коли товар з'явиться в наявності, наші менеджери зв'яжуться з Вами для оформлення замовлення.",
418 418 "lang_name" => "ukr",
419 419 "saldo_period" => "за період",
  420 + "open_video_list" => "Розкрити список",
  421 + "close_video_list" => "Закрити список",
420 422 );
421 423 \ No newline at end of file
... ...
src/app/frontend/views/page/index.php
... ... @@ -255,7 +255,10 @@
255 255 if( !empty( $videos ) )
256 256 {
257 257 $data_video =
258   - '<div class="video_posts float last">'.
  258 + '<div class="video_posts float last small">'.
  259 + '<div class="white_list"></div>'.
  260 + '<a class="open_list_btn">'.$t->_("open_video_list").'</a>'.
  261 + '<a class="close_list_btn">'.$t->_("close_video_list").'</a>'.
259 262 '<div class="one_video">
260 263 <iframe class="video_iframe" width="460" height="300" src="'.$videos['0']['video'].'" frameborder="0" allowfullscreen></iframe>
261 264 </div>';
... ... @@ -279,7 +282,6 @@
279 282 }
280 283  
281 284 ?>
282   -
283 285 </div>
284 286 </div>
285 287 </div>
... ...
www/css/main.css
... ... @@ -4034,4 +4034,62 @@ input[type=number] {
4034 4034 background-position: -1px 0px;
4035 4035 }
4036 4036 .not_availiable.rus{background-image: url('/images/asd_ru_01.png');}
4037   -.not_availiable.ukr{background-image: url('/images/asd_ua_01.png');}
4038 4037 \ No newline at end of file
  4038 +.not_availiable.ukr{background-image: url('/images/asd_ua_01.png');}
  4039 +
  4040 +.video_posts.float.last{
  4041 + position: relative;
  4042 + transition:0.5s;
  4043 + margin-bottom: 30px;
  4044 +}
  4045 +.video_posts.float.last.small{
  4046 + height: 400px;
  4047 + overflow: hidden;
  4048 + margin-bottom: 0px!important;
  4049 +}
  4050 +.video_posts.float.last .white_list{
  4051 + z-index: 1;
  4052 + content: '';
  4053 + position: absolute;
  4054 + width: 100%;
  4055 + left: 0;
  4056 + bottom: 50px;
  4057 + height: 50px;
  4058 + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = 'transparent', endColorstr = '#ffffff');
  4059 + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr = 'transparent', endColorstr = '#ffffff')";
  4060 + background-image: -moz-linear-gradient(top, transparent, #ffffff);
  4061 + background-image: -ms-linear-gradient(top, transparent, #ffffff);
  4062 + background-image: -o-linear-gradient(top, transparent, #ffffff);
  4063 + background-image: -webkit-gradient(linear, center top, center bottom, from(transparent), to(#ffffff));
  4064 + background-image: -webkit-linear-gradient(top, transparent, #ffffff);
  4065 + background-image: linear-gradient(top, transparent, #ffffff);
  4066 + transition:0.3s;
  4067 +}
  4068 +.video_posts.float.last.small .open_list_btn{
  4069 + bottom:0!important;
  4070 +}
  4071 +.video_posts .open_list_btn{
  4072 + position: absolute;
  4073 + bottom: -50px;
  4074 + width: 100%;
  4075 + text-align: center;
  4076 + z-index: 2;
  4077 + font-weight: bold;
  4078 + padding: 11px 0px 20px 0px;
  4079 + font-size: 16px;
  4080 + color: gray;
  4081 + background-color: rgb(255, 255, 255);
  4082 + cursor: pointer;
  4083 +}
  4084 +.video_posts .close_list_btn{
  4085 + position: absolute;
  4086 + bottom: -50px;
  4087 + width: 100%;
  4088 + text-align: center;
  4089 + z-index: 2;
  4090 + font-weight: bold;
  4091 + padding: 11px 0px 20px 0px;
  4092 + font-size: 16px;
  4093 + color: gray;
  4094 + background-color: rgb(255, 255, 255);
  4095 + cursor: pointer;
  4096 +}
4039 4097 \ No newline at end of file
... ...
www/js/main.js
... ... @@ -2256,3 +2256,16 @@ function Counter (time, id, lang_id) {
2256 2256  
2257 2257  
2258 2258 }
  2259 +
  2260 +/* */
  2261 +
  2262 +$(document).ready(function(){
  2263 + $(".open_list_btn").click(function(){
  2264 + $(this).parent().find('.white_list').toggleClass('hidden');
  2265 + $(this).parent().toggleClass('small');
  2266 + });
  2267 + $(".close_list_btn").click(function(){
  2268 + $(this).parent().find('.white_list').toggleClass('hidden');
  2269 + $(this).parent().toggleClass('small');
  2270 + });
  2271 +});
2259 2272 \ No newline at end of file
... ...