From 43cfb26a62922ff26fe2be66c132f1351f6c772e Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 16 Jun 2017 11:46:34 -0400 Subject: [PATCH] changing the eventsFrontPage template to collapse the image container if there is no image setting the events sidebar content to 100% width if there is no image, removing the space where the image would be. adding the width 100% style to the front.css file as well --- css/front.css | 3 +++ views/front/events/eventsFrontPage.html | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/css/front.css b/css/front.css index c1ce867..ef3be29 100755 --- a/css/front.css +++ b/css/front.css @@ -236,6 +236,9 @@ input[name='contact_fname'], input[name='contact_lname']{ left: 13%; z-index: 999; } +.sidebar-full-width{ + width: 100% !important; +} #glm-event-detail-cost:before { content: ""; background-image: url("../assets/cost-icon-24x24.png"); diff --git a/views/front/events/eventsFrontPage.html b/views/front/events/eventsFrontPage.html index 279f6aa..8f00c3f 100644 --- a/views/front/events/eventsFrontPage.html +++ b/views/front/events/eventsFrontPage.html @@ -8,19 +8,21 @@ {foreach $events as $event}
+ {if $event.image}
+ {/if}
-
+
{$event.name}
-
+
{$event.dates}
-
+
{$event.intro}
-- 2.17.1