mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Ajout des news & pictures & complementary activity
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
<div class="inner">
|
||||
<h2>Nouvelles</h2>
|
||||
<p>Aliquam ut ex ut interdum donec amet imperdiet eleifend</p>
|
||||
@if ($news->isEmpty())
|
||||
<h4 class="text-center">Aucune nouvelles</h4>
|
||||
@endif
|
||||
<div class="row">
|
||||
@foreach ($news as $new)
|
||||
<div class="col-md-4">
|
||||
@@ -18,6 +21,10 @@
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="m-3" role="group">
|
||||
{{ $news->links() }}
|
||||
</div>
|
||||
<a href="/" class="btn button primary">Retour</a>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
32
resources/views/public/allpicture.blade.php
Normal file
32
resources/views/public/allpicture.blade.php
Normal file
@@ -0,0 +1,32 @@
|
||||
@extends('layouts.public.main')
|
||||
|
||||
@section('content')
|
||||
<article id="main">
|
||||
<section class="wrapper style5">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h2>{{ App\Config::getData('text_public_picture_title')}}</h2>
|
||||
<p>{{ App\Config::getData('text_public_picture_desc')}}</p>
|
||||
</header>
|
||||
<ul class="features">
|
||||
@if ($pictures->isEmpty())
|
||||
<h4 class="text-center">Aucune Photo</h4>
|
||||
@endif
|
||||
@foreach ($pictures as $picture)
|
||||
<li>
|
||||
<a class="a-without-effect" href="/picture/{{$picture->id}}">
|
||||
<h3><img src="{{$picture->url}}" alt="{{$picture->title}}" width="100%"></h3>
|
||||
<p>{{$picture->desc}}</p>
|
||||
<span class="news-small">{{ $picture->created_at }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="m-3" role="group">
|
||||
{{ $pictures->links() }}
|
||||
</div>
|
||||
<a href="/" class="btn button primary">Retour</a>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
@endsection
|
||||
@@ -0,0 +1,29 @@
|
||||
@extends('layouts.public.main')
|
||||
|
||||
@section('content')
|
||||
<article id="main">
|
||||
<section class="wrapper style5">
|
||||
<div class="inner">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{{ $new->title }}</h2>
|
||||
<div class="row gtr-50 gtr-uniform">
|
||||
@foreach ($new->pictures as $picture)
|
||||
<div @if ($loop->first)
|
||||
class="col-12"
|
||||
@else
|
||||
class="col-4"
|
||||
@endif><span class="image fit"><a href="/picture/{{$picture->id}}"><img src="{{ $picture->url }}" alt="{{ $picture->title }}"></a></span></div>
|
||||
@endforeach
|
||||
</div>
|
||||
<p>
|
||||
{{ $new->body }}
|
||||
</p>
|
||||
<span class="news-small">{{ \App\User::find($new->user_id)->fullname()}}, {{ $new->created_at }}</span>
|
||||
<a href="{{ url()->previous() }}" class="btn button primary">Retour</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
@endsection
|
||||
@@ -0,0 +1,21 @@
|
||||
@extends('layouts.public.main')
|
||||
|
||||
@section('content')
|
||||
<article id="main">
|
||||
<section class="wrapper style5">
|
||||
<div class="inner">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{{ $picture->title }}</h2>
|
||||
<div><span class="image fit"><img src="{{ $picture->url }}" alt="{{ $picture->title }}"></span></div>
|
||||
<p>
|
||||
{{ $picture->desc }}
|
||||
</p>
|
||||
<span class="news-small">{{ $picture->created_at }}</span>
|
||||
<a href="{{ url()->previous() }}" class="btn button primary">Retour</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user