1
0
Fork 0

fixed some problem

optimize default theme
main
A1Gard 1 year ago
parent 11bcfe5d5a
commit 9bcfb990e6

@ -9,6 +9,7 @@ use App\Models\Setting;
use Conner\Tagging\Model\Tag;
use Illuminate\Http\Request;
use Xmen\StarterKit\Models\Category;
use Xmen\StarterKit\Models\MenuItem;
use Xmen\StarterKit\Models\Post;
class SettingController extends Controller
@ -124,4 +125,9 @@ class SettingController extends Controller
$query = trim($query);
return Post::where('title', 'LIKE', "%$query%")->limit(5)->get(['id', 'title'])->toArray();
}
public function remMenu($id){
MenuItem::where('menuable_id',$id)->delete();
return true;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

@ -10643,7 +10643,7 @@ tr.border-bottom td {
.long-box .item {
padding: 25px;
/*padding: 25px;*/
}
.fa-bg {
@ -10893,6 +10893,24 @@ tr.border-bottom td {
color: white ;
}
#blog{
padding: 2em 0;
background: #282c34;
color:white;
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}
h3.textt{
font-size: 22px;
font-weight: 200;
}
@charset "UTF-8";
:root {
--bg: hsl(223deg, 10%, 90%);
@ -11878,3 +11896,9 @@ a {
display: none;
}
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -12,7 +12,10 @@ jQuery(function () {
$("#menu-manage li").bind('dblclick', function () {
if (confirm('Are sure?')) {
$(this).remove();
let self = this;
axios.post($("#rem-menu").val() + '/' + $(this).data('menuableid')).then(function () {
$(self).slideUp();
});
}
});
// );

@ -9,9 +9,24 @@
" minutes ago": "دقیقه پیش",
" seconds ago": "ثانیه پیش",
" لطفا درگاه بانک را تعویض نمایید.": "",
"!": "",
"!bulk": "کار گروهی",
"!delete": "حذف",
"!destroy": "حذف",
"!manage": "مدیریت",
"!reply": "پاسخ",
"!show": "نمایش",
"!sort": "دیدن ترتیب",
"!sortStore": "ذخیره ترتیب",
"!statue": "تغییر وضعیت",
"!store": "ایجاد کردن",
"!update": "ویرایش کردن",
"!updatetitle": "ویرایش عنوان",
"!user": "کاربر",
"$log->action": "",
":app Dear customer Your :product signed for you.": ":app\nکاربر گرامی محصول «:product» برای شما ثبت شد.",
"A fresh verification link has been sent to your email address.": "یک لینک تاییده برای شما ایمیل شد",
"ACL": "سطح دسترسی",
"ANSWERED": "پاسخ‌ داده شده",
"Action": "عملیات",
"Actions": "عملیات",
@ -150,6 +165,7 @@
"Discounts list": "فهرست تخفیف‌ها",
"Do": "انجام",
"Double click on image to change index image": "دوبار کلیک کنید تا عکس اصلی انتخاب شود",
"Double click to remove": "برای حذف دابل کلیک کنید",
"Draft": "پیش‌نویس",
"Draft now": "پیش‌نویس کن",
"Drafted": "پیش‌نویس شده",
@ -428,6 +444,7 @@
"Shopping card": "سبد خرید",
"Short text": "متن کوتاه",
"Show": "نمایش",
"Show list": "دیدن فهرست",
"Signup or Login": "ورود یا ثبت‌نام",
"Single Select & multi search": "انتخاب تک و جستجوی چندگانه",
"Single multi select type": "نوع انتخاب تکی سرچ چندگانه",
@ -460,6 +477,7 @@
"Text": "متن",
"Text type": "نوع نوشته",
"The first and\/or second image will be index image": "اولی ویا دومین عکس به عنوان شاخص در نظر گرفته می‌شوند",
"The order is duplicate please check invoices list": "سفارش تکاری است لطفا لیست سفارشات خود را چک کنید",
"Thumbnail": "بند انگشتی",
"Thursday": "پنجشنبه",
"Ticket": "پشتیبانی",
@ -511,6 +529,7 @@
"You can choose one or more image together": "شما می‌توانید چندین عکس را با هم انتخاب کنید",
"You disliked ": "شما نپسندید اید",
"You don't have any credit": "شما اعتباری برای پرداخت ندارید",
"You dont't have acccess this acction": "شما تا زمان ورود امکان دسترسی به این بخش را ندارید",
"You have got :count products in your basket, Could you complete your purchase?": " شما در سبد خد محصولاتی دارید آیا مایل به پرداخت و پایان خرید هستید؟",
"You liked ": "شما پسند کرده",
"You liked ago ": "شما قبلا پسند کرده اید",
@ -530,6 +549,7 @@
"action": "عمل",
"adv": "تبلیغ",
"an hour ago": "یک ساعت پیش",
"attachment": "پیوست",
"body": "متن",
"by percent": "با درصد",
"by price": "با قیمت",
@ -539,16 +559,21 @@
"click here to request another": "کلیک برای ثبت درخواست دیگیر",
"clip": "کلیپ",
"clip or cover not uploaded...": "کلیپ یا کاور آن بارگزاری نشده",
"comment": "دیدگاه‌ها",
"contact": "تماس با ما",
"created successfully": "با موفقیت ساخته شد",
"customer": "مشتری",
"deleted successfully": "با موفقیت حذف شد",
"discount": "تخفیف",
"gallery": "گالری تصاویر",
"id": "آی‌دی",
"image": "تصاویر",
"image deleted successfully": "تصاویر حذف شدند",
"images uploaded successfully": "تصاویر بارگزاری دشند",
"invoice": "صورتحساب",
"invoice created successfully": "فاکتور شما با موفقیت اضافه شد",
"logs": "لاگ کاربران",
"menu": "منو",
"minute": "دقیقه",
"name \/ email": "نام | ایمیل",
"not Required": "غیر ضروری",
@ -563,36 +588,16 @@
"preview": "پیش نمایش",
"product": "محصول",
"props": "ویژگی متا",
"question": "پرسش‌ها",
"reply": "پاسخ",
"setting": "تنظیمات",
"slider": "اسلایدر",
"slider or cover not uploaded...": "تصاویر اسلایدر بارگزاری نشده...",
"ticket": "پشتیبانی",
"user": "کاربر",
"transport": "شیوه ارسال",
"transports deleted successfully": "روش ارسال با موفقیت حذف شد",
"updated successfully": "به روز شد",
"weight": "وزن",
"!show": "نمایش",
"!sortStore": "ذخیره ترتیب",
"!sort": "دیدن ترتیب",
"!delete": "حذف",
"!destroy": "حذف",
"!bulk": "کار گروهی",
"!store": "ایجاد کردن",
"!update": "ویرایش کردن",
"!manage": "مدیریت",
"!user": "کاربر",
"!statue": "تغییر وضعیت",
"!reply": "پاسخ",
"!updatetitle": "ویرایش عنوان",
"Show list": "دیدن فهرست",
"ACL": "سطح دسترسی",
"image": "تصاویر",
"menu": "منو",
"comment": "دیدگاه‌ها",
"logs": "لاگ کاربران",
"transport": "شیوه ارسال",
"question": "پرسش‌ها",
"ticket": "پشتیبانی",
"attachment": "پیوست",
"contact": "تماس با ما",
"setting": "تنظیمات",
"yesterday": "دیروز"
}

@ -674,7 +674,7 @@ tr.border-bottom td {
.long-box .item {
padding: 25px;
/*padding: 25px;*/
}
.fa-bg {
@ -913,3 +913,21 @@ tr.border-bottom td {
.btn-outline-primary:hover a{
color: white ;
}
#blog{
padding: 2em 0;
background: #282c34;
color:white;
}
.img-vh100-full-width img {
height: 100vh;
width: 100%;
-o-object-fit: cover;
object-fit: cover;
}
h3.textt{
font-size: 22px;
font-weight: 200;
}

@ -157,6 +157,16 @@ jQuery(function ($) {
items: 4,
// nav: true,
});
$('.owl-single-item').owlCarousel({
loop: true,
margin: 0,
responsiveClass: true,
autoplay: true,
autoplayTimeout: 5000,
autoplayHoverPause: true,
items: 1,
// nav: true,
});
$('#owlx1').owlCarousel({
loop: true,

@ -210,3 +210,11 @@ a{
}
}
.img-vh100-full-width{
img{
height: 100vh;
width: 100%;
object-fit: cover;
}
}

@ -5,6 +5,8 @@
@endsection
@section('content')
<div class="container">
@include('starter-kit::component.err')
<form action="{{route('admin.setting.update')}}" method="post" enctype="multipart/form-data">
@ -44,11 +46,13 @@
</div>
@break
@case('code')
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}" class="form-control"
<textarea dir="ltr" name="{{$set->key}}" id="{{$set->key}}"
class="form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('editor')
<textarea name="{{$set->key}}" id="{{$set->key}}" class="ckeditor form-control"
<textarea name="{{$set->key}}" id="{{$set->key}}"
class="ckeditor form-control"
rows="5">{{$set->value}}</textarea>
@break
@case('category')
@ -104,7 +108,8 @@
<label for="section">
{{__('Section')}}
</label>
<input name="section" type="text" class="form-control @error('section') is-invalid @enderror"
<input name="section" type="text"
class="form-control @error('section') is-invalid @enderror"
placeholder="{{__('Section')}}" value="{{old('section',$setting->section??null)}}"/>
</div>
</div>
@ -158,6 +163,8 @@
</div>
</div>
</form>
</div>
@endif
@endsection
@section('js-content')

@ -119,6 +119,9 @@
</ol>
</div>
<div class="col-md-6 p-3">
<div class="alert alert-info">
{{__("Double click to remove")}}
</div>
<form class="" method="post"
enctype="multipart/form-data"
@if (isset($menu))
@ -139,6 +142,7 @@
</div>
<input type="hidden" id="tag-search" value="{{route('admin.ckeditor.tagsearch','')}}"/>
<input type="hidden" id="news-search" value="{{route('admin.ckeditor.newssearch','')}}"/>
<input type="hidden" id="rem-menu" value="{{route('admin.setting.remMenu','')}}">
</div>
@endsection

@ -1,5 +1,14 @@
@extends('website.layout.layout')
@section('content')
<section>
<div class="owl-carousel owl-theme owl-single-item">
@foreach(\Xmen\StarterKit\Models\Slider::where('active',1)->limit(5)->get() as $sld)
<a class="item img-vh100-full-width" href="{{strip_tags($sld->body)}}">
<img src="{{$sld->imgUrl()}}" alt="">
</a>
@endforeach
</div>
</section>
<section id="index-top">
<div class="container">
<div class="grid">
@ -14,7 +23,8 @@
<div class="item">
<div class="box">
<a href="{{route('product',$p->slug)}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}" title="{{$p->name}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}"
title="{{$p->name}}">
<h4>
{{$p->name}}
</h4>
@ -22,7 +32,8 @@
<span>
{{$p->getPrice()}}
</span>
<a href="{{route('card.add',$p->slug)}}" class="add-to-card btn btn-primary btn-block mt-2 mb-2">
<a href="{{route('card.add',$p->slug)}}"
class="add-to-card btn btn-primary btn-block mt-2 mb-2">
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt=""> &nbsp;
افزودن به سبد خرید
</a>
@ -76,7 +87,7 @@
<h1 class="mb-4">
{{\App\Helpers\getSetting('sectext')}}
</h1>
<div id="owl1" class="owl-carousel owl-theme">
<div id="owl1" class="owl-carousel owl-theme owl1">
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('seccat'),'id','desc',10) as $p)
<div class="item ">
<div class="box">
@ -92,7 +103,8 @@
</span>
</a>
<div>
<a href="{{route('card.add',$p->slug)}}" class="add-to-card btn btn-primary btn-block mt-2 mb-2 corner">
<a href="{{route('card.add',$p->slug)}}"
class="add-to-card btn btn-primary btn-block mt-2 mb-2 corner">
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt=""> &nbsp;
افزودن به سبد خرید
</a>
@ -124,7 +136,8 @@
</div>
<div id="da-thumbs" class="da-thumbs">
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('3cat'),'stock_quantity','desc',12) as $p)
<div class="item custom @foreach($p->categories()->pluck('id')->toArray() as $c) cat{{$c}} @endforeach shad pad">
<div
class="item custom @foreach($p->categories()->pluck('id')->toArray() as $c) cat{{$c}} @endforeach shad pad">
<div class="box">
<a href="{{route('product',$p->slug)}}">
<img src="{{$p->thumbUrl()}}" class="img-fluid" alt="{{$p->name}}" title="{{$p->name}}">
@ -144,6 +157,51 @@
</div>
</div>
</section>
<section id="blog">
<div class="container">
<h1>
واپسین مطالب
</h1>
<hr>
<div class="row">
@foreach(\Xmen\StarterKit\Models\Post::where('status',1)->limit(4)->get() as $p)
<div class="col-md-3">
<a href="{{route('n.show',$p->slug)}}" class="text-dark text-decoration-none">
<div class="mb-4 card post-card">
<img src="{{$p->imgurl()}}" class="img-fluid" alt="{{$p->title}}" title="{{$p->title}}">
<div class="card-body">
<h3 class="textt">{{$p->title}}</h3>
<div class="mb-2">
@foreach($p->tags as $tag)
<a class="post-tag ms-2" href="{{route('n.tag',$tag->slug)}}">
{{$tag->name}}
</a>
@endforeach
</div>
<div class="mb-1 text-muted">
{{\App\Helpers\time2persian($p->created_at)}}
</div>
<p>
{{$p->subtitle}}
</p>
<div class="text-muted text-end text-xsmall">
<i class="fa fa-comments"></i>
دیدگاه‌:
{{$p->comments()->count()}}
</div>
</div>
</div>
</a>
</div>
@endforeach
</div>
<a href="{{route('posts')}}" class="btn btn-outline-light float-end">
همه مطالب
</a>
<br>
</div>
</section>
<section id="brand" class="pt-4 pb-4">
<div class="container">
<h1>

@ -155,6 +155,7 @@ Route::prefix(config('starter-kit.uri'))->name('admin.')->group(
Route::get('index', [\App\Http\Controllers\Admin\SettingController::class, "index"])->name('index');
Route::post('store', [\App\Http\Controllers\Admin\SettingController::class, "store"])->name('store');
Route::post('update', [\App\Http\Controllers\Admin\SettingController::class, "update"])->name('update');
Route::post('remMenu/{id}', [\App\Http\Controllers\Admin\SettingController::class, "remMenu"])->name('remMenu');
}
);

Loading…
Cancel
Save