Files
citrus-cms/resources/views/default.blade.php
T
2026-04-28 21:15:09 +03:00

41 lines
780 B
PHP

<?php use App\Contents; ?>
@if(isset($c))
@extends('layouts.app')
@section("title",__($c->title))
@section('content')
<?php $slug = str_slug($c->type); ?>
<?php
if($c->cover == "") {
$pic = url('assets/images/banner-bg.jpg');
} else {
$pic = url('cache/large/'.$c->cover);
}
$bc = str_replace("Menü / ","",$c->breadcrumb);
$bc = explode(" / ",$bc);
$ust = Contents::where("slug",$c->kid)->first();
$j = j($c->json);
?>
@if(View::exists("types.$slug"))
@include("types.$slug")
@elseif(View::exists("pages.".$c->slug))
@include("pages.".$c->slug)
@else
<div class="container" style="min-height:500px;">
<div class="row">
<div class="col-12">
<h1>{{$c->title}}</h1>
<?php echo $c->html ?>
</div>
</div>
</div>
@endif
@endsection
@else
@endif