You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/segments/posts/PostsIconSimple/PostsIconSimple.blade.php

32 lines
1.1 KiB
PHTML

<section class='PostsIconSimple py-4 live-setting' data-live="{{$data->area_name.'_'.$data->part}}">
<div class="{{gfx()['container']}}">
<h1>
<a href="{{getGroupBySetting($data->area_name.'_'.$data->part)?->webUrl()}}">
{{getGroupBySetting($data->area_name.'_'.$data->part)?->name}}
</a>
</h1>
<p>
{{getGroupBySetting($data->area_name.'_'.$data->part)?->description}}
</p>
<div class="row">
@foreach(getGroupPostsBySetting($data->area_name.'_'.$data->part, getSetting($data->area_name.'_'.$data->part.'_limit')) as $post)
<div class="col-md-4">
<i class="{{$post->icon}}"></i>
<h3>
{{$post->title}}
</h3>
<p>
{{$post->subtitle}}
</p>
<a href="{{$post?->webUrl()}}" class="btn btn-outline-primary w-100">
{{__("Read more")}}
</a>
</div>
@endforeach
</div>
</div>
</section>