Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DoniyorY committed Jul 11, 2024
1 parent d3a571e commit dfcb847
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function actionVerify()
Yii::$app->session->set('age_verified', 1);
} else {
return $this->redirect('https://google.com');
}
}
return $this->redirect(Yii::$app->request->referrer);
}

Expand Down
3 changes: 1 addition & 2 deletions frontend/views/menu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
<?= $m->{"desc_$lang"} ?>
</p>
</div>
<?php
if ($addtional): ?>
<?php if ($addtional): ?>
<div class="col-md-6 d-none d-md-block"></div>
<div class="col-6 text-center menu-addition">
<?php foreach ($addtional as $add): ?>
Expand Down
21 changes: 20 additions & 1 deletion frontend/web/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,26 @@ li.nav-item button.active {
.footer-schedule p {
margin-bottom: 0;
}

.owl-stage-outer{
width: 90%;
margin-left: 65px;
z-index: 1;
}
.owl-nav{
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
bottom: 15px;
z-index: 0;
}
.owl-nav .owl-prev{
margin-right: 10px;
}
.owl-stage .owl-item{
width: 310px;
margin-right: 20px;
}
@media (max-width: 568px) {
.navigation #brand img {
width: 230px;
Expand Down
Binary file added frontend/web/images/owl-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/web/images/owl-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions frontend/web/js/owl-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@ $(document).ready(function(){
})

menu_owl.owlCarousel({
loop:false,
loop:true,
margin:10,
nav:false,


responsive:{
0:{
items:2,
autoplay:true,
nav:false,
},
600:{
items:1
items:1,
nav:false,
},
1000:{
items:4,
autoplay:false,
navText:['<img src="/images/owl-left.png" alt="">','<img src="/images/owl-right.png" alt="">'],
nav:true,
}
}
})
Expand Down

0 comments on commit dfcb847

Please sign in to comment.