From 89ba64c74873e6650065d1823cb90332d126db6b Mon Sep 17 00:00:00 2001 From: marian Date: Sat, 19 Mar 2016 16:46:45 +0200 Subject: [PATCH] Implemented schema.org for events, tickets and organizer - Implemented the name, start data, end date, description, image, location (name and address) for the event - Implemented the name, price currency, price and availability (if it has one compatible with schema.org) for the tickets - Implemented the name, logo and description for the organizer --- .../ViewEvent/Layouts/EventPage.blade.php | 2 +- .../Partials/EventDescriptionSection.blade.php | 6 +++--- .../Partials/EventHeaderSection.blade.php | 17 ++++++++++++++--- .../Partials/EventOrganiserSection.blade.php | 8 ++++---- .../Partials/EventTicketsSection.blade.php | 11 +++++++---- 5 files changed, 29 insertions(+), 15 deletions(-) diff --git a/resources/views/Public/ViewEvent/Layouts/EventPage.blade.php b/resources/views/Public/ViewEvent/Layouts/EventPage.blade.php index 7f262d43..d92c002c 100644 --- a/resources/views/Public/ViewEvent/Layouts/EventPage.blade.php +++ b/resources/views/Public/ViewEvent/Layouts/EventPage.blade.php @@ -65,7 +65,7 @@ -
+
@yield('content')
diff --git a/resources/views/Public/ViewEvent/Partials/EventDescriptionSection.blade.php b/resources/views/Public/ViewEvent/Partials/EventDescriptionSection.blade.php index aeda7d50..519619f0 100644 --- a/resources/views/Public/ViewEvent/Partials/EventDescriptionSection.blade.php +++ b/resources/views/Public/ViewEvent/Partials/EventDescriptionSection.blade.php @@ -7,18 +7,18 @@
@if($event->images->count())
-
+
{!! Markdown::parse($event->description) !!}
- {{$event->title}} + {{$event->title}}
@else
-
+
{!! Markdown::parse($event->description) !!}
diff --git a/resources/views/Public/ViewEvent/Partials/EventHeaderSection.blade.php b/resources/views/Public/ViewEvent/Partials/EventHeaderSection.blade.php index 4d07c926..e57c66e3 100644 --- a/resources/views/Public/ViewEvent/Partials/EventHeaderSection.blade.php +++ b/resources/views/Public/ViewEvent/Partials/EventHeaderSection.blade.php @@ -32,9 +32,20 @@
-

{{$event->title}}

-
{{ $event->start_date->toDayDateTimeString() }} - - {{ $event->end_date->format('H:i A') }} @ {{$event->venue_name}} +

{{$event->title}}

+
+ + {{ $event->start_date->toDayDateTimeString() }} + + - + + {{ $event->end_date->format('H:i A') }} + + @ + + {{$event->venue_name}} + +
diff --git a/resources/views/Public/ViewEvent/Partials/EventOrganiserSection.blade.php b/resources/views/Public/ViewEvent/Partials/EventOrganiserSection.blade.php index 3c0ec9d2..4218fbf4 100644 --- a/resources/views/Public/ViewEvent/Partials/EventOrganiserSection.blade.php +++ b/resources/views/Public/ViewEvent/Partials/EventOrganiserSection.blade.php @@ -1,15 +1,15 @@
-
+
-

+

{{$event->organiser->name}}

-

+

{{nl2br($event->organiser->about)}}

diff --git a/resources/views/Public/ViewEvent/Partials/EventTicketsSection.blade.php b/resources/views/Public/ViewEvent/Partials/EventTicketsSection.blade.php index 9037c8a6..8e77883b 100644 --- a/resources/views/Public/ViewEvent/Partials/EventTicketsSection.blade.php +++ b/resources/views/Public/ViewEvent/Partials/EventTicketsSection.blade.php @@ -20,12 +20,12 @@

@foreach($tickets as $ticket) - + @@ -35,6 +35,8 @@ FREE @else {{{money($ticket->total_price, $event->currency->code)}}} + + @endif @@ -48,7 +50,7 @@ @else @if($ticket->sale_status === config('attendize.ticket_status_sold_out')) - + Sold Out @elseif($ticket->sale_status === config('attendize.ticket_status_before_sale_date')) @@ -61,6 +63,7 @@ @else {!! Form::hidden('tickets[]', $ticket->id) !!} +
- + {{{$ticket->title}}} -

+

{{{$ticket->description}}}