Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created June 19, 2014 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckpicker/a40c51999eff0b129e71 to your computer and use it in GitHub Desktop.
Save ckpicker/a40c51999eff0b129e71 to your computer and use it in GitHub Desktop.
<?php if ( !tribe_community_events_is_organizer_edit_screen() ) { ?>
<tr class="organizer">
<td>
<label for="OrganizerOrganizer" <?php if ( $event && $_POST && empty( $organizer_name ) ) echo 'class="error"'; ?>>
<?php _e( 'Organizer Name' , 'tribe-events-community' ); ?>:
</label>
</td>
<td>
<?php
//If user is logged in, then grab their info
if( is_user_logged_in() ) {
$user_info = get_userdata( get_current_user_id() );
}
?>
<input type="text" id="OrganizerOrganizer" name="organizer[Organizer]" size="25" value="<?php if( empty( $organizer_name ) ) { echo $user_info->display_name; } else { echo $organizer_name; } ?>" />
</td>
</tr><!-- .organizer -->
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment