From: Anthony Talarico Date: Fri, 22 Apr 2016 15:33:27 +0000 (-0400) Subject: fixed week of month, added confirmation page X-Git-Tag: v1.0.0^2~85 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1a88d99a52bc0236e58751ac2c08210b06975012;p=WP-Plugins%2Fglm-member-db-events.git fixed week of month, added confirmation page --- diff --git a/models/front/events/frontAdd.php b/models/front/events/frontAdd.php index 694390b..6931bf5 100644 --- a/models/front/events/frontAdd.php +++ b/models/front/events/frontAdd.php @@ -25,7 +25,6 @@ require_once(GLM_MEMBERS_PLUGIN_PATH.'/models/admin/ajax/imageUpload.php'); class GLmMembersFront_events_frontAdd extends GlmDataEvents { - /* getCityId * * Given a city name find and return the id of the city. @@ -65,6 +64,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents */ public function modelAction($actionData = false) { + $view = 'frontAdd'; // populate category dropdown $categories = new GlmDataEventsCategories($this->wpdb, $this->config); $cats = $categories->getList(); @@ -179,6 +179,11 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents foreach($_REQUEST['daysow'] as $check){ $daysOfWeek[] = $check; } +// foreach($_REQUEST['weekom'] as $check){ +// $weekOfMonth[] = $check; +// +// } +// print_r($weeksOfMonth); foreach($daysOfWeek as $key=>$value){ if(!empty($value)){ $days += $value; @@ -398,6 +403,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents // 'X-Mailer: PHP/' . phpversion(); // // mail($to, $subject, $message, $headers); + $view = 'confirmation'; } // echo '
', print_r($cats), '
'; @@ -418,7 +424,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents 'status' => $status, 'menuItemRedirect' => false, 'modelRedirect' => false, - 'view' => 'front/events/frontAdd.html', + 'view' => 'front/events/'.$view.'.html', 'data' => $templateData, 'settings' => $settings ); diff --git a/views/front/events/confirmation.html b/views/front/events/confirmation.html new file mode 100644 index 0000000..2cf985c --- /dev/null +++ b/views/front/events/confirmation.html @@ -0,0 +1,9 @@ + + +
+
+
Thank you for submitting your event
+

Your submission is currently pending, please allow up to 48 hours to be reviewed

+
+
+ diff --git a/views/front/events/frontAdd.html b/views/front/events/frontAdd.html index 0f4f12a..84087cd 100644 --- a/views/front/events/frontAdd.html +++ b/views/front/events/frontAdd.html @@ -110,13 +110,44 @@ + - +