Exemplo n.º 1
0
 public static function meta_boxes()
 {
     global $EM_Event;
     //decide if it's a master event, if not then hide the meta boxes
     if (!empty($EM_Event) && !EM_ML::is_original_event($EM_Event)) {
         remove_meta_box('em-event-when', EM_POST_TYPE_EVENT, 'side');
         remove_meta_box('em-event-where', EM_POST_TYPE_EVENT, 'normal');
         remove_meta_box('em-event-bookings', EM_POST_TYPE_EVENT, 'normal');
         remove_meta_box('em-event-bookings-stats', EM_POST_TYPE_EVENT, 'side');
         remove_meta_box('em-event-group', EM_POST_TYPE_EVENT, 'side');
         add_meta_box('em-event-translation', __('Translated Event Information', 'dbem'), array('EM_ML_Admin', 'meta_box_translated_event'), EM_POST_TYPE_EVENT, 'side', 'high');
         if ($EM_Event->event_rsvp) {
             add_meta_box('em-event-bookings-translation', __('Bookings/Registration', 'dbem'), array('EM_ML_Admin', 'meta_box_bookings_translation'), EM_POST_TYPE_EVENT, 'normal', 'high');
         }
     }
 }