settings
This commit is contained in:
parent
7f734fae9e
commit
4c783f2fb7
|
|
@ -34,7 +34,7 @@ class postsController extends Controller
|
|||
'typePost' => input('typePost'),
|
||||
'postGroup' => input('group'),
|
||||
'published' => true,
|
||||
'select' => ['id','title','slug','published_at', 'more_photo', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
|
||||
'select' => ['id','title','slug','published_at', 'more_photo','afisha_phone', 'afisha_address', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
|
||||
];
|
||||
|
||||
if(request()->has('featured')){
|
||||
|
|
@ -55,7 +55,7 @@ class postsController extends Controller
|
|||
//posts item
|
||||
public function show($locale,$id){
|
||||
|
||||
$post = $this->Post::find($id,['id','content_html','author','slug']);
|
||||
$post = $this->Post::find($id,['id','content_html','author','slug', 'afisha_phone', 'afisha_address']);
|
||||
|
||||
if(!is_null($post)) {
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,9 @@ columns:
|
|||
type: text
|
||||
searchable: true
|
||||
sortable: true
|
||||
type:
|
||||
label: Type
|
||||
updated_at:
|
||||
label: 'updated at'
|
||||
type: text
|
||||
type:
|
||||
label: type
|
||||
type: text
|
||||
searchable: true
|
||||
sortable: true
|
||||
|
|
|
|||
|
|
@ -11,11 +11,12 @@
|
|||
<div class="swiper-slide">
|
||||
<div class="banner">
|
||||
<!-- <img src="{{record.media|media}}" alt="" /> -->
|
||||
<a href="{{ record.url }}" target="_blank">
|
||||
<picture>
|
||||
<source media="(min-width:700px)" srcset="{{record.media|media_cdn}}">
|
||||
<img src="{{record.web_media_mobile|default(record.media)|media_cdn}}" alt="{{record.title}}" >
|
||||
</picture>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
|
|
@ -32,12 +33,12 @@
|
|||
<div class="swiper-slide">
|
||||
<div class="banner">
|
||||
<!-- <img src="{{record.media|media}}" alt="" /> -->
|
||||
|
||||
<a href="{{ record.url }}" target="_blank">
|
||||
<picture>
|
||||
<source media="(min-width:700px)" srcset="{{record.media|media_cdn}}">
|
||||
<img src="{{record.web_media_mobile|default(record.media)|media_cdn}}" alt="{{record.title}}" >
|
||||
</picture>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
{% for record in records if record.group_id == id %}
|
||||
|
||||
{% if record.id == 96 %}
|
||||
<a href="#">
|
||||
<a href="{{ record.url }}" target="_blank">
|
||||
<img src="{{record.media|media}}" alt="" />
|
||||
</a>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
{% for record in records if record.group_id == id and record.active == 1 %}
|
||||
|
||||
<div class="swiper-slide">
|
||||
<a href="#">
|
||||
<a href="{{ record.url }}" target="_blank">
|
||||
<!-- <img src="{{record.media|media}}" alt="" /> -->
|
||||
|
||||
<picture>
|
||||
|
|
|
|||
Loading…
Reference in New Issue