From: Anthony Talarico Date: Fri, 16 Jun 2017 15:46:34 +0000 (-0400) Subject: changing the eventsFrontPage template to collapse the image container if there is... X-Git-Tag: v1.6.46^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=43cfb26a62922ff26fe2be66c132f1351f6c772e;p=WP-Plugins%2Fglm-member-db-events.git 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 --- 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}