Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Event Submission Form
- * The wrapper template for the event submission form.
- *
- * Override this template in your own theme by creating a file at
- * [your-theme]/tribe-events/community/edit-event.php
- *
- * @package TribeCommunityEvents
- * @since 3.1
- * @author Modern Tribe Inc.
- *
- */
- if ( !defined('ABSPATH') ) { die('-1'); } ?>
- <?php tribe_get_template_part( 'community/modules/header-links' ); ?>
- <h1>Add Event to Calendar</h1>
- <p>Please fill out the following form as completely as possible. Once you have submitted your event, please allow 1 to 2 business days for approval. If you need to make changes to an existing calendar listing, please e-mail your updated information to <a href="mailto:calendar@sciotomile.com?Subject=Event%20Calender%20Change" target="_top">calendar@sciotomile.com</a>.
- </p>
- <?php do_action( 'tribe_events_community_form_before_template' ); ?>
- <form method="post" enctype="multipart/form-data">
- <?php wp_nonce_field( 'ecp_event_submission' ); ?>
- <!-- Event Title -->
- <?php do_action( 'tribe_events_community_before_the_event_title' ) ?>
- <div class="events-community-post-title">
- <?php // Validation
- $class = ( $_POST && empty( $event->post_title ) ) ? 'error' : ''; ?>
- <label for="post_title" class="<?php echo $class; ?>"><?php _e( 'Event Title:', 'tribe-events-community' ); ?><?php _e( '*', 'tribe-events-community' ); ?></label>
- <?php tribe_community_events_form_title(); ?>
- </div><!-- .events-community-post-title -->
- <?php do_action( 'tribe_events_community_after_the_event_title' ) ?>
- <!-- Event Description -->
- <?php do_action( 'tribe_events_community_before_the_content' ); ?>
- <div class="events-community-post-content">
- <?php // Validation
- $class = ( $_POST && empty($event->post_content ) ) ? 'error' : ''; ?>
- <label for="post_content" class="<?php echo $class; ?>"><?php _e( 'Event Description:', 'tribe-events-community' ); ?><?php _e( '*', 'tribe-events-community' ); ?></label>
- <?php tribe_community_events_form_content(); ?>
- </div><!-- .tribe-events-community-post-content -->
- <?php do_action( 'tribe_events_community_after_the_content' ); ?>
- <?php tribe_get_template_part( 'community/modules/taxonomy' ); ?>
- <?php tribe_get_template_part( 'community/modules/datepickers' ); ?>
- <?php tribe_get_template_part( 'community/modules/venue' ); ?>
- <?php tribe_get_template_part( 'community/modules/image' ); ?>
- <?php tribe_get_template_part( 'community/modules/organizer' ); ?>
- <?php tribe_get_template_part( 'community/modules/website' ); ?>
- <?php tribe_get_template_part( 'community/modules/cost' ); ?>
- <?php tribe_get_template_part( 'community/modules/custom' ); ?>
- <!-- Spam Control -->
- <?php TribeCommunityEvents::instance()->formSpamControl(); ?>
- <br />
- <span style="font-style:italic; font-size:12px;">* Required Fields</span>
- <!-- Form Submit -->
- <?php do_action( 'tribe_events_community_before_form_submit' ); ?>
- <div class="tribe-events-community-footer">
- <input type="submit" id="post" class="button submit events-community-submit" value="<?php
- if( isset( $post_id ) && $post_id )
- echo apply_filters( 'tribe_ce_event_update_button_text', __( 'Update Event', 'tribe-events-community' ) );
- else
- echo apply_filters( 'tribe_ce_event_submit_button_text', __( 'Submit Event', 'tribe-events-community' ) );
- ?>" name="community-event" />
- </div><!-- .tribe-events-community-footer -->
- <?php do_action( 'tribe_events_community_after_form_submit' ); ?>
- </form>
- <?php do_action( 'tribe_events_community_form_after_template' ); ?>
- <?php wp_reset_query(); ?>
- <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement