@php($ext = strtolower(pathinfo(str_replace('_','.',$setting->key), PATHINFO_EXTENSION)))
@@ -99,9 +106,9 @@
@if (old($setting->key, $setting->value??'webp') == 'webp' ) selected @endif >{{__("webp")}}
@else
- ltr) dir="ltr" @endif>
+ ltr) dir="ltr" @endif>
@endif
@endswitch
diff --git a/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.blade.php b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.blade.php
new file mode 100755
index 0000000..2917c64
--- /dev/null
+++ b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.blade.php
@@ -0,0 +1,31 @@
+
+
+
+
+ {{getGroupBySetting($data->area->name.'_'.$data->part)->description}}
+
+
+ @foreach(getGroupPostsBySetting($data->area->name.'_'.$data->part, getSetting($data->area->name.'_'.$data->part.'_limit')) as $post)
+
+ @endforeach
+
+
+
+
diff --git a/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.js b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.js
new file mode 100755
index 0000000..e69de29
diff --git a/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.json b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.json
new file mode 100755
index 0000000..a7c8203
--- /dev/null
+++ b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.json
@@ -0,0 +1,10 @@
+{
+ "name": "PostsIconSimple",
+ "version": "1.0",
+ "author": "xStack",
+ "email": "xshop@xstack.ir",
+ "license": "GPL-3.0-or-later",
+ "url": "https:\/\/xstack.ir",
+ "author_url": "https:\/\/4xmen.ir",
+ "packages": []
+}
diff --git a/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.php b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.php
new file mode 100755
index 0000000..71eb453
--- /dev/null
+++ b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.php
@@ -0,0 +1,46 @@
+section = 'theme';
+ $setting->key = $part->area->name . '_' . $part->part;
+ $setting->value = Group::first()->id;
+ $setting->type = 'GROUP';
+ $setting->size = 6;
+ $setting->title = $part->area->name . ' ' . $part->part;
+ $setting->save();
+ $setting = new Setting();
+ $setting->section = 'theme';
+ $setting->key = $part->area->name . '_' . $part->part.'_limit';
+ $setting->value = 3;
+ $setting->size = 6;
+ $setting->type = 'NUMBER';
+ $setting->data = json_encode(['xmin' => 2, 'xmax' => 12]);
+ $setting->title = $part->area->name . ' ' . $part->part. ' limit';
+ $setting->save();
+ }
+
+ public static function onRemove(Part $part = null)
+ {
+// \Log::info(' --- onRemove rem --- '.$part->area->name . '_' . $part->part);
+
+// dd(Setting::where('key',$part->area->name . '_' . $part->part)->get());
+ Setting::where('key',$part->area->name . '_' . $part->part)->first()?->delete();
+ Setting::where('key',$part->area->name . '_' . $part->part.'_limit')->first()?->delete();
+ }
+
+ public static function onMount(Part $part = null)
+ {
+ return $part;
+ }
+}
diff --git a/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.scss b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.scss
new file mode 100755
index 0000000..0ca97f8
--- /dev/null
+++ b/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.scss
@@ -0,0 +1,20 @@
+.PostsIconSimple {
+ // scss
+
+ h1{
+ a{
+ color: $xshop-text ;
+ }
+ }
+ .row{
+ text-align: center;
+
+ i{
+ font-size: 75px;
+ color: var(--xshop-primary);
+ }
+ p{
+ text-align: justify;
+ }
+ }
+}
diff --git a/resources/views/segments/posts/PostsIconSimple/screenshot.png b/resources/views/segments/posts/PostsIconSimple/screenshot.png
new file mode 100755
index 0000000..094cdb7
Binary files /dev/null and b/resources/views/segments/posts/PostsIconSimple/screenshot.png differ
diff --git a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.blade.php b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.blade.php
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.js b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.js
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.json b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.json
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.php b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.php
old mode 100644
new mode 100755
index 5b501ed..f40b39a
--- a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.php
+++ b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.php
@@ -8,14 +8,12 @@ class PreloaderCircle
{
public static function onAdd(Part $part = null)
{
- \Log::info('added '.$part->part.' on '.$part->segment);
}
public static function onRemove(Part $part = null)
{
- \Log::info('remove '.$part->part.' on '.$part->segment);
}
public static function onMount(Part $part = null)
{
- \Log::info('monted '.$part->part.' on '.$part->segment);
+ return $part;
}
}
diff --git a/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.scss b/resources/views/segments/preloader/PreloaderCircle/PreloaderCircle.scss
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderCircle/screenshot.png b/resources/views/segments/preloader/PreloaderCircle/screenshot.png
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.blade.php b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.blade.php
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.js b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.js
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.json b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.json
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.php b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.php
old mode 100644
new mode 100755
index c9fb359..ffcbfc9
--- a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.php
+++ b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.php
@@ -10,7 +10,6 @@ class PreloaderImage
{
public static function onAdd(Part $part = null)
{
- \Log::info('added '.$part->part.' on '.$part->segment);
$setting = new Setting();
$setting->key = 'PreloaderImage_gif';
$setting->title = '';
@@ -21,12 +20,11 @@ class PreloaderImage
}
public static function onRemove(Part $part = null)
{
- \Log::info('remove '.$part->part.' on '.$part->segment);
Setting::where('key','PreloaderImage_gif')->delete();
File::delete(public_path('upload/images/').'PreloaderImage.gif');
}
public static function onMount(Part $part = null)
{
- \Log::info('monted '.$part->part.' on '.$part->segment);
+ return $part;
}
}
diff --git a/resources/views/segments/preloader/PreloaderImage/PreloaderImage.scss b/resources/views/segments/preloader/PreloaderImage/PreloaderImage.scss
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/assets/PreloaderImage.gif b/resources/views/segments/preloader/PreloaderImage/assets/PreloaderImage.gif
old mode 100644
new mode 100755
diff --git a/resources/views/segments/preloader/PreloaderImage/screenshot.png b/resources/views/segments/preloader/PreloaderImage/screenshot.png
old mode 100644
new mode 100755
diff --git a/resources/views/segments/slider/SliderSimple/SliderSimple.blade.php b/resources/views/segments/slider/SliderSimple/SliderSimple.blade.php
old mode 100644
new mode 100755
diff --git a/resources/views/segments/slider/SliderSimple/SliderSimple.js b/resources/views/segments/slider/SliderSimple/SliderSimple.js
old mode 100644
new mode 100755
diff --git a/resources/views/segments/slider/SliderSimple/SliderSimple.json b/resources/views/segments/slider/SliderSimple/SliderSimple.json
old mode 100644
new mode 100755
diff --git a/resources/views/segments/slider/SliderSimple/SliderSimple.php b/resources/views/segments/slider/SliderSimple/SliderSimple.php
old mode 100644
new mode 100755
index d0d96cf..259641c
--- a/resources/views/segments/slider/SliderSimple/SliderSimple.php
+++ b/resources/views/segments/slider/SliderSimple/SliderSimple.php
@@ -16,6 +16,6 @@ class SliderSimple
}
public static function onMount(Part $part = null)
{
-
+ return $part;
}
}
diff --git a/resources/views/segments/slider/SliderSimple/SliderSimple.scss b/resources/views/segments/slider/SliderSimple/SliderSimple.scss
old mode 100644
new mode 100755
diff --git a/resources/views/segments/slider/SliderSimple/screenshot.png b/resources/views/segments/slider/SliderSimple/screenshot.png
old mode 100644
new mode 100755
diff --git a/resources/views/segments/top/TopSimple/TopSimple.blade.php b/resources/views/segments/top/TopSimple/TopSimple.blade.php
old mode 100644
new mode 100755
diff --git a/resources/views/segments/top/TopSimple/TopSimple.js b/resources/views/segments/top/TopSimple/TopSimple.js
old mode 100644
new mode 100755
diff --git a/resources/views/segments/top/TopSimple/TopSimple.json b/resources/views/segments/top/TopSimple/TopSimple.json
old mode 100644
new mode 100755
diff --git a/resources/views/segments/top/TopSimple/TopSimple.php b/resources/views/segments/top/TopSimple/TopSimple.php
old mode 100644
new mode 100755
index 333ae3d..38af40b
--- a/resources/views/segments/top/TopSimple/TopSimple.php
+++ b/resources/views/segments/top/TopSimple/TopSimple.php
@@ -16,6 +16,6 @@ class TopSimple
}
public static function onMount(Part $part = null)
{
-
+ return $part;
}
}
diff --git a/resources/views/segments/top/TopSimple/TopSimple.scss b/resources/views/segments/top/TopSimple/TopSimple.scss
old mode 100644
new mode 100755
diff --git a/resources/views/segments/top/TopSimple/screenshot.png b/resources/views/segments/top/TopSimple/screenshot.png
old mode 100644
new mode 100755
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
index bdcc7e5..3e1596a 100644
--- a/resources/views/welcome.blade.php
+++ b/resources/views/welcome.blade.php
@@ -5,6 +5,7 @@
@endsection
@section('content')
@foreach(getParts('index') as $part)
- @include($part->getBlade())
+ @php($p = $part->getBladeWithData())
+ @include($p['blade'],['data' => $p['data']])
@endforeach
@endsection