$fromEmail = trim(filter_var($emailInfo['from_email'], FILTER_VALIDATE_EMAIL));
// get the email notification message
- $emailNotification = $emailInfo['email_notification'];
+ $emailNotification = ( isset($emailInfo['email_notification']) ? $emailInfo['email_notification'] : '' );
$cats = $categories->getList();
foreach($cats as $cat){
if ( !isset( $_REQUEST['glm_event_from'] ) ) {
// use the first date for this month
$fromDate = date( 'm/d/Y', mktime( 0, 0, 0, date( 'n' ), 1, date( 'Y' ) ) );
+ } else {
+ $fromDate = $_REQUEST['glm_event_from'];
}
if ( !isset( $_REQUEST['glm_event_to'] ) ) {
$toDate = date( 'm/d/Y', mktime( 0, 0, 0, date( 'n' ), date( 't' ), date( 'Y' ) ) );
+ } else {
+ $toDate = $_REQUEST['glm_event_to'];
}
- echo '<pre>$fromDate: ' . print_r( $fromDate, true ) . '</pre>';
- echo '<pre>$toDate: ' . print_r( $toDate, true ) . '</pre>';
+// echo '<pre>$fromDate: ' . print_r( $fromDate, true ) . '</pre>';
+// echo '<pre>$toDate: ' . print_r( $toDate, true ) . '</pre>';
} else if ( in_array($action, array( 'event-list-name', 'nameSearch', 'featured' ) ) || $this->config['settings']['use_venue_locations'] ) {
$toDate = null;
} else {
$toDate = date('m/d/Y', strtotime( '+ ' . $weeks_to_check . ' ' . $week_string ));
}
}
+
if ( $fromDate && $toDate && !(isset($_REQUEST['event_name']) && $_REQUEST['event_name'])) {
$from = date('Y-m-d', strtotime($fromDate));
$to = date('Y-m-d', strtotime($toDate));
<html>
- <div class="row">
+ <div class="success-content row">
<div class='small-12 columns' id="success">
<h5> Thank you for submitting your event </h5>
<p> Your submission is currently pending, please allow up to 48 hours for it to be reviewed </p>
</div>
</div>
+ <script>
+ jQuery(document).ready(function($){
+ console.log("test");
+ });
+ </script>
</html>
+