From 8d9003f460fa97612db5f8e766a8eab85c3fc9ae Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 31 May 2016 16:29:53 -0400 Subject: [PATCH] adding table style to email --- models/front/events/frontAdd.php | 7 +++++- views/front/events/ownerEmail.html | 34 ++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/models/front/events/frontAdd.php b/models/front/events/frontAdd.php index 6be8619..e7c3c4a 100644 --- a/models/front/events/frontAdd.php +++ b/models/front/events/frontAdd.php @@ -446,7 +446,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents ); $smarty = new smartyTemplateSupport(); - + $eventsList = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL ."?page=glm-members-admin-menu-events-index&glm_action=index"; $viewPath = GLM_MEMBERS_EVENTS_PLUGIN_PATH . '/views'; $smarty->template->setTemplateDir($viewPath); @@ -459,7 +459,12 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents $smarty->templateAssign('from_email', $fromEmail); $smarty->templateAssign('emailNotification', $emailNotification); $smarty->templateAssign('pendingEvents', $eventsList); + $smarty->templateAssign('name', $name); $smarty->templateAssign('startDate', $starting); + $smarty->templateAssign('endDate', $ending); + $smarty->templateAssign('startTime', $smilitaryTime); + $smarty->templateAssign('endTime', $emilitaryTime); + $eventsList = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL ."?page=glm-members-admin-menu-events-index&glm_action=index"; $smarty->templateAssign('items', $events); diff --git a/views/front/events/ownerEmail.html b/views/front/events/ownerEmail.html index c455c2e..768d2a2 100644 --- a/views/front/events/ownerEmail.html +++ b/views/front/events/ownerEmail.html @@ -3,17 +3,33 @@ - -

Event Submission Notification

-
-

Event Start Date: {$startDate}

- {if $emailNotification} -

{$emailNotification}

+ +

Event Submission Notification

+ + + + + + + {if $ending} + + {/if} + + + {if $startTime} + + {/if} + {if $endTime} + + {/if} + +
Event Name: {$name}
Event Start Date: {$starting} Event End Date: {$ending}
Event Start Time: {$tartTime}Event End Time: {$endTime}
+ {if $emailNotification} + {$emailNotification} {/if} -
-

A new Event has been added to your Website from your "Add Your Event" page.

-

To approve it, please go to the events page in your admin.

+

A new Event has been added to your Website from your "Add Your Event" page.

+

To approve it, please go to the events page in your admin.

\ No newline at end of file -- 2.17.1