-
-
Save ckpicker/a40c51999eff0b129e71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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