fixded rtl bug

pull/36/head
A1Gard 11 months ago
parent 7e4d3442b0
commit 631a13ae4d

@ -46,7 +46,7 @@ SMS_USER=""
SMS_PASS=""
SMS_NUMBER=""
AWS_ACCESS_KEY_ID=
AWS_ACCESS_KEY_ID=O
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
@ -65,3 +65,4 @@ PAY_GATWAY=zarinpal
THUMBNAIL_SIZE=600x600
XLANG=false
XLANG_MAIN=en

@ -94,6 +94,7 @@ return [
'locale' => 'fa',
'xlang' => env('XLANG',false),
'xlang_main' => env('XLANG_MAIN','en'),
/*
|--------------------------------------------------------------------------

@ -24,7 +24,7 @@
$lang = \App\Models\Xlang::where('is_default',true)->first();
@endphp
var isRtl = false;
@if($lang !== null && $lang->rtl)
@if($lang !== null && $lang->rtl || config('app.xlang_main') == 'fa' || config('app.xlang_main') == 'ar')
isRtl = true;
@endif
</script>

Loading…
Cancel
Save