From: Anthony Talarico Date: Mon, 11 Dec 2017 19:44:17 +0000 (-0500) Subject: making changes to the table for the checkout page X-Git-Tag: v1.0.0^2~223^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d49dbf2a7c98086a63589730849e3cebaaf43446;p=WP-Plugins%2Fglm-member-db-registrations.git making changes to the table for the checkout page using smarty to assign variables to create class names for the tables in the checkout and cart pages --- diff --git a/css/front.css b/css/front.css index e176685..bc8c808 100644 --- a/css/front.css +++ b/css/front.css @@ -29,6 +29,27 @@ background-size: cover; position: relative; } +.glm-reg-date::before{ + /* top: 0px; */ + content: ""; + background-image: url(../assets/events/calendar-icon-24x24.png); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + left: -36px; +} +.glm-reg-time::before{ + content: ""; + background-image: url(../assets/events/calendar-icon-24x24.png); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + left: -36px; +} #glm-reg-map-container{ height: 0px; margin: 0; diff --git a/views/front/registrations/cartSummary.html b/views/front/registrations/cartSummary.html index a6491cc..b3305b6 100644 --- a/views/front/registrations/cartSummary.html +++ b/views/front/registrations/cartSummary.html @@ -3,9 +3,18 @@
{if $summaryType=="cart"} - + {/if} - {$event.event_name} + {if $summaryType=="checkout"} + {assign var="summaryClass2Col" value="glm-small-12 "} + {assign var="summaryClass3Col" value="glm-small-12 "} + {assign var="summaryClass4Col" value="glm-small-12 "} + {else if} + {assign var="summaryClass2Col" value="glm-small-12 glm-medium-2 "} + {assign var="summaryClass3Col" value="glm-small-12 glm-medium-3 "} + {assign var="summaryClass4Col" value="glm-small-12 glm-medium-4 "} + {/if} + {$event.event_name}
{foreach $event.classes as $class} @@ -27,16 +36,16 @@ {/if} {foreach $rate.registrants as $registrant}
-
+
{$registrant.fname} {$registrant.lname}
-
+
{$registrant.timeReformatted}
-
+
Cookies and Milk (temp test data)
-
+
{if $registrant.registrantRate > 0} ${$registrant.registrantRate|number_format:2} {else} diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 83548ad..1d9bff5 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -26,11 +26,11 @@
-
{$regEvent.last_datetime.timestamp|date_format:"%A, %B %e, %Y"}
+
{$regEvent.last_datetime.timestamp|date_format:"%A, %B %e, %Y"}
{if $regEvent.first_datetime.timestamp != $regEvent.last_datetime.timestamp} -
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"} - {$regEvent.last_datetime.timestamp|date_format:"%l:%M %p"}
+
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"} - {$regEvent.last_datetime.timestamp|date_format:"%l:%M %p"}
{else} -
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
+
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
{/if}
{$regEvent.locations.name}