Advertisement
BakerMan

Untitled

May 22nd, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.67 KB | None | 0 0
  1. <?php
  2.  
  3. // Don't load directly
  4. if ( !defined( 'ABSPATH' ) ) {
  5.     die('-1' );
  6. }
  7.  
  8. /**
  9.  * The Events Meta Box
  10.  * You can customize this view by putting a replacement file of the same name (events-meta-box.php) in the events/community/ directory of your theme.
  11.  *
  12.  * @package TribeCommunityEvents
  13.  * @since  1.0
  14.  * @author Modern Tribe Inc.
  15.  */
  16.  
  17. ?>
  18.  
  19. <?php //if( WP_DEBUG ) echo '<small>[DEBUG] Path to this template: '.__FILE__.'</small>'; ?>
  20.  
  21. <div id="eventIntro">
  22. <div id="tribe-events-post-error" class="tribe-events-error error"></div>
  23. <?php do_action( 'tribe_events_post_errors', $postId, true ) ?>
  24.  
  25. </div>
  26. <div id='eventDetails' class="inside eventForm bubble">
  27.    <?php do_action( 'tribe_events_detail_top', $postId, true ) ?>
  28.     <?php wp_nonce_field( TribeEvents::POSTTYPE, 'ecp_nonce' ); ?>
  29.     <table cellspacing="0" cellpadding="0" id="EventInfo">
  30.         <tr>
  31.             <td colspan="2" class="tribe_sectionheader"><h4 class="event-time"><?php _e( 'Time &amp; Date', 'tribe-events-community' ); ?></h4></td>
  32.         </tr>
  33.         <tr id="recurrence-changed-row">
  34.             <td colspan='2'><?php _e( 'You have changed the recurrence rules of this event. Saving the event will update all future events.  If you did not mean to change all events, then please refresh the page.', 'tribe-events-community' ) ?></td>
  35.         </tr>
  36.         <tr>
  37.             <td><?php _e( 'All day event?', 'tribe-events-community' ); ?></td>
  38.             <td><input tabindex="<?php $this->tabIndex(); ?>" type='checkbox' id='allDayCheckbox' name='EventAllDay' value='yes' <?php echo $isEventAllDay; ?> /></td>
  39.         </tr>
  40.         <tr>
  41.             <td style="width:125px;"><?php _e( 'Start Date / Time:','tribe-events-community' ); ?></td>
  42.             <td>
  43.                 <input autocomplete="off" tabindex="<?php $this->tabIndex(); ?>" type="text" class="datepicker" name="EventStartDate" id="EventStartDate"  value="<?php echo esc_attr( $EventStartDate ) ?>" />
  44.                 <span class="helper-text hide-if-js"><?php _e( 'YYYY-MM-DD', 'tribe-events-community' ) ?></span>
  45.                 <span class='timeofdayoptions'>
  46.                     <?php _e( '@','tribe-events-community' ); ?>
  47.                     <select tabindex="<?php $this->tabIndex(); ?>" name='EventStartHour'>
  48.                         <?php echo $startHourOptions; ?>
  49.                     </select>
  50.                     <select tabindex="<?php $this->tabIndex(); ?>" name='EventStartMinute'>
  51.                         <?php echo $startMinuteOptions; ?>
  52.                     </select>
  53.                     <?php if ( !strstr( get_option( 'time_format', TribeDateUtils::TIMEFORMAT ), 'H' ) ) : ?>
  54.                         <select tabindex="<?php $this->tabIndex(); ?>" name='EventStartMeridian'>
  55.                             <?php echo $startMeridianOptions; ?>
  56.                         </select>
  57.                     <?php endif; ?>
  58.                 </span>
  59.             </td>
  60.         </tr>
  61.         <tr>
  62.             <td><?php _e( 'End Date / Time:','tribe-events-community' ); ?></td>
  63.             <td>
  64.                 <input autocomplete="off" type="text" class="datepicker" name="EventEndDate" id="EventEndDate"  value="<?php echo esc_attr( $EventEndDate ); ?>" />
  65.                 <span class="helper-text hide-if-js"><?php _e( 'YYYY-MM-DD', 'tribe-events-community' ) ?></span>
  66.                 <span class='timeofdayoptions'>
  67.                     <?php _e( '@','tribe-events-community' ); ?>
  68.                     <select class="spEventsInput" tabindex="<?php $this->tabIndex(); ?>" name='EventEndHour'>
  69.                         <?php echo $endHourOptions; ?>
  70.                     </select>
  71.                     <select tabindex="<?php $this->tabIndex(); ?>" name='EventEndMinute'>
  72.                         <?php echo $endMinuteOptions; ?>
  73.                     </select>
  74.                     <?php if ( !strstr( get_option( 'time_format', TribeDateUtils::TIMEFORMAT ), 'H' ) ) : ?>
  75.                         <select tabindex="<?php $this->tabIndex(); ?>" name='EventEndMeridian'>
  76.                             <?php echo $endMeridianOptions; ?>
  77.                         </select>
  78.                     <?php endif; ?>
  79.                 </span>
  80.             </td>
  81.         </tr>
  82.         <?php do_action( 'tribe_events_date_display', $postId, true ) ?>
  83.     </table>
  84.     <div class="tribe_sectionheader" style="padding: 6px 6px 0 0; font-size: 11px; margin: 0 10px;"><h4><?php _e( 'Location Details', 'tribe-events-community' ); ?></h4></div>
  85.     <div style="float: left;">
  86.         <table id="event_venue" class="eventtable">
  87.             <?php
  88.             $venue_meta_box = $this->pluginPath . 'views/venue-meta-box.php';
  89.             $venue_meta_box = apply_filters( 'tribe_events_venue_meta_box_template', $venue_meta_box );
  90.             include( $venue_meta_box );
  91.             ?>
  92.         </table>
  93.     </div>
  94.    <?php do_action( 'tribe_after_location_details', $postId ); ?>
  95.     <table id="event_organizer" class="eventtable">
  96.             <tr>
  97.                 <td colspan="2" class="tribe_sectionheader"><h4><?php _e( 'Organizer Details', 'tribe-events-community' ); ?></h4></td>
  98.             </tr>
  99.          <?php do_action( 'tribe_organizer_table_top', $postId ); ?>
  100.             <?php
  101.             $organizer_meta_box = $this->pluginPath . 'views/organizer-meta-box.php';
  102.             $organizer_meta_box = apply_filters( 'tribe_events_organizer_meta_box_template', $organizer_meta_box );
  103.             include( $organizer_meta_box );
  104.             ?>
  105.     </table>
  106.     <?php do_action( 'tribe_events_details_table_bottom', $postId, true ) ?>
  107.     <table id="event_cost" class="eventtable">
  108.         <tr>
  109.             <td colspan="2" class="tribe_sectionheader"><h4><?php _e( 'Cost', 'tribe-events-community' ); ?></h4></td>
  110.         </tr>
  111.         <tr>
  112.             <td><?php _e( 'Cost:','tribe-events-community' ); ?></td>
  113.             <td><input tabindex="<?php $this->tabIndex(); ?>" type='text' id='EventCost' name='EventCost' size='6' value='<?php echo ( isset( $_POST['EventCost'] ) ) ? esc_attr( $_POST['EventCost'] ) : ( tribe_get_event_meta( $postId, '_EventCost', true ) ) ? tribe_get_cost( $postId ) : '0'; ?>' /></td>
  114.         </tr>
  115.         <tr>
  116.             <td></td>
  117.             <td><small><?php _e( 'Leave blank to hide the field. Enter a 0 for events that are free.', 'tribe-events-community' ); ?></small></td>
  118.         </tr>
  119.       <?php do_action( 'tribe_events_cost_table', $postId, true ) ?>
  120.     </table>
  121.     </div>
  122.    <?php do_action( 'tribe_events_above_donate', $postId, true ) ?>
  123.    <?php do_action( 'tribe_events_details_bottom', $postId, true ) ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement