From bf983190c5150373e2b49a111cc52ede584def8b Mon Sep 17 00:00:00 2001 From: TheMrNomis Date: Thu, 21 Apr 2016 12:03:17 +0200 Subject: [PATCH] CSS de event.php --- event.css | 1 - event.php | 61 +++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 46 insertions(+), 16 deletions(-) diff --git a/event.css b/event.css index 73a9cfd..9dfbec4 100755 --- a/event.css +++ b/event.css @@ -40,7 +40,6 @@ h1 img #map { width: 100%; height: 500px; - margin-bottom: -30px; background-image: url("images/OSM.svg"); background-repeat: no-repeat; background-position: center; diff --git a/event.php b/event.php index 7a4ac62..b735b25 100755 --- a/event.php +++ b/event.php @@ -45,22 +45,53 @@ $dtend = strtotime($event['event_dtend']); $lng = $obj[0]["lon"]; $urlFrame = 'https://www.openstreetmap.org/export/embed.html?bbox='.$lng.','.$lat.','.$lng.','.$lat.'&layer=mapnik&floor&marker='.$lat.','.$lng; ?> - ; +

Description

'; - if(isset($event["event_urlImage"])) - echo '
'; - if(isset($event["event_description"])) - echo '
'.$event["event_description"].'
'; - - if(isset($event["event_site"]) || isset($event["event_contact"])) - echo '

Informations

'; - if(isset($event["event_site"])) - echo '
URL : '.$event["event_site"].'
'; - if(isset($event["event_contact"])) - echo '
Contact : '.$event["event_contact"].'
'; - ?> + if(!empty($event["event_urlImage"]) || !empty($event['event_description']) || !empty($event['event_site']) || !empty($event['event_contact'])) + { +?> +

Description

+ +
+ " width="100%"> +
+ +
+ +
+ +

Informations

+ +
+ URL : "> +
+ +
+ Contact : "> +
+