Advertisement
Guest User

Untitled

a guest
Mar 7th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.66 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Event Submission Form
  4.  * The wrapper template for the event submission form.
  5.  *
  6.  * Override this template in your own theme by creating a file at
  7.  * [your-theme]/tribe-events/community/edit-event.php
  8.  *
  9.  * @package TribeCommunityEvents
  10.  * @since  3.1
  11.  * @author Modern Tribe Inc.
  12.  *
  13.  */
  14.  
  15. if ( !defined('ABSPATH') ) { die('-1'); } ?>
  16.  
  17. <?php tribe_get_template_part( 'community/modules/header-links' ); ?>
  18. <h1>Add Event to Calendar</h1>
  19. <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>.
  20. </p>
  21.  
  22. <?php do_action( 'tribe_events_community_form_before_template' ); ?>
  23.  
  24. <form method="post" enctype="multipart/form-data">
  25.  
  26.     <?php wp_nonce_field( 'ecp_event_submission' ); ?>
  27.  
  28.     <!-- Event Title -->
  29.     <?php do_action( 'tribe_events_community_before_the_event_title' ) ?>
  30.  
  31.     <div class="events-community-post-title">
  32.         <?php // Validation
  33.         $class = ( $_POST && empty( $event->post_title ) ) ? 'error' : ''; ?>
  34.         <label for="post_title" class="<?php echo $class; ?>"><?php _e( 'Event Title:', 'tribe-events-community' ); ?><?php _e( '*', 'tribe-events-community' ); ?></label>
  35.         <?php tribe_community_events_form_title(); ?>
  36.     </div><!-- .events-community-post-title -->
  37.  
  38.     <?php do_action( 'tribe_events_community_after_the_event_title' ) ?>
  39.  
  40.  
  41.     <!-- Event Description -->
  42.     <?php do_action( 'tribe_events_community_before_the_content' ); ?>
  43.  
  44.     <div class="events-community-post-content">
  45.         <?php // Validation
  46.         $class = ( $_POST && empty($event->post_content ) ) ? 'error' : ''; ?>
  47.         <label for="post_content" class="<?php echo $class; ?>"><?php _e( 'Event Description:', 'tribe-events-community' ); ?><?php _e( '*', 'tribe-events-community' ); ?></label>
  48.         <?php tribe_community_events_form_content(); ?>
  49.     </div><!-- .tribe-events-community-post-content -->
  50.  
  51.     <?php do_action( 'tribe_events_community_after_the_content' ); ?>
  52.  
  53.  
  54.     <?php tribe_get_template_part( 'community/modules/taxonomy' ); ?>
  55.  
  56.     <?php tribe_get_template_part( 'community/modules/datepickers' ); ?>
  57.  
  58.     <?php tribe_get_template_part( 'community/modules/venue' ); ?>
  59.  
  60.     <?php tribe_get_template_part( 'community/modules/image' ); ?>
  61.    
  62.     <?php tribe_get_template_part( 'community/modules/organizer' ); ?>
  63.  
  64.     <?php tribe_get_template_part( 'community/modules/website' ); ?>
  65.  
  66.     <?php tribe_get_template_part( 'community/modules/cost' ); ?>
  67.    
  68.     <?php tribe_get_template_part( 'community/modules/custom' ); ?>
  69.  
  70.     <!-- Spam Control -->
  71.     <?php TribeCommunityEvents::instance()->formSpamControl(); ?>
  72.    
  73.     <br />
  74.     <span style="font-style:italic; font-size:12px;">* Required Fields</span>  
  75.     <!-- Form Submit -->
  76.    
  77.     <?php do_action( 'tribe_events_community_before_form_submit' ); ?>
  78.     <div class="tribe-events-community-footer">
  79.         <input type="submit" id="post" class="button submit events-community-submit" value="<?php
  80.  
  81.             if( isset( $post_id ) && $post_id )
  82.                 echo apply_filters( 'tribe_ce_event_update_button_text', __( 'Update Event', 'tribe-events-community' ) );
  83.             else
  84.                 echo apply_filters( 'tribe_ce_event_submit_button_text', __( 'Submit Event', 'tribe-events-community' ) );
  85.  
  86.             ?>" name="community-event" />
  87.     </div><!-- .tribe-events-community-footer -->
  88.     <?php do_action( 'tribe_events_community_after_form_submit' ); ?>
  89.  
  90. </form>
  91. <?php do_action( 'tribe_events_community_form_after_template' ); ?>
  92. <?php wp_reset_query(); ?>
  93. <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement