fixed ui bugs

pull/49/head
A1Gard 4 months ago
parent 981ffabf07
commit 63c021658e

@ -23,6 +23,10 @@ class ThemeController extends Controller
}
}
$response .= '}';
if (langIsRTL(app()->getLocale())) {
$response .= ' .slider-content, .tns-outer .item{ direction: rtl; }';
}
return response($response)->header('Content-Type', 'text/css; charset=utf-8');
}
}

@ -1,4 +1,5 @@
.tns-outer {
direction: ltr;
.tns-nav, button {
display: none;
}

@ -11,7 +11,7 @@
<div class="section-main">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product)
<div class="item">
<div class="item slider-content">
<div class="tree-product-box">
<a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" alt="{{$product->name}}">
@ -46,7 +46,7 @@
<div class="section-second">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryx') as $product)
<div class="item text-center">
<div class="item text-center slider-content">
<a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a>
@ -61,7 +61,7 @@
<div class="section-third">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryy') as $product)
<div class="item text-center">
<div class="item text-center slider-content">
<a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a>

@ -431,10 +431,10 @@ Route::get('/sitemap.xml', [ClientController::class, 'sitemap'])->name('sitemap'
// to developer test
Route::get('login/as/{mobile}', function ($mobile) {
if (auth()->check() && auth()->user()->hasRole('developer')) {
if ($mobile = 1){
if ($mobile = 1) {
return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::inRandomOrder()->first()->id);
}else{
} else {
return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::where('mobile', $mobile)->first()->id);
}
@ -463,10 +463,10 @@ Route::any('/payment/check/{invoice_hash}/{gateway}', \App\Http\Controllers\Paym
Route::any('{lang}/{any}', [ClientController::class, 'lang'])
->where('any', '.*')
->where('lang','[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]);
->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);
Route::any('{lang}', [ClientController::class, 'langIndex'])
->where('lang','[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]);
->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);

Loading…
Cancel
Save