ID, '_favorite_posts', true); $favorites = false; if ( !empty($current_user_favorites) ) { $favorites = new WP_Query(array( 'post_type' => 'any', 'post__in' => $current_user_favorites, )); } $current_users_comments = get_comments(array( 'user_id' => $current_user->ID, )); $current_users_comments_number = count($current_users_comments); $has_comments = $current_users_comments_number > 0; $comment_item_args = array( 'avatar_size' => 150, ); $comment_item_depth = 0; $edit_data_attributes = ' data-edit="' . __('Bearbeiten', 'sandbox') . '" data-save="' . __('Speichern', 'sandbox') . '" data-saving="' . __('Speichert', 'sandbox') . '" data-saved="' . __('Gespeichert', 'sandbox') . '" data-generate="' . __('Passwort generieren', 'sandbox') . '"'; $edit_box = '
' . __('Bearbeiten', 'sandbox') . '
%s
'; $input_pattern = ' pattern="[A-Za-z0-9 ]{3,32}"'; $input_title = ' title="' . __('Nur Buchstaben oder Zahlen erlaubt') . '"'; $input_pattern_nickname = ' pattern="[a-zA-Z0-9-_ ]{3,32}"'; $input_title_nickname = ' title="' . __('Nur Buchstaben, Zahlen, Binde- und Unterstriche erlaubt') . '"'; $input_pattern_password = ' pattern="^[^\\\\]*$"'; $input_title_password = ' title="' . __('Alle Zeichen außer "\" sind erlaubt.') . '"'; /** * Taken from WordPress * https://github.com/WordPress/WordPress/blob/master/wp-admin/user-edit.php#L462 */ $display_names = array(); $display_names['display_nickname'] = $current_user->nickname; $display_names['display_username'] = $current_user->user_login; if ( !empty($current_user->first_name) ) { $display_names['display_firstname'] = $current_user->first_name; } if ( !empty($current_user->last_name) ) { $display_names['display_lastname'] = $current_user->last_name; } if ( !empty($current_user->first_name) && !empty($current_user->last_name) ) { $display_names['display_firstlast'] = $current_user->first_name . ' ' . $current_user->last_name; $display_names['display_lastfirst'] = $current_user->last_name . ' ' . $current_user->first_name; } if ( !in_array( $current_user->display_name, $display_names) ) { // Only add this if it isn't duplicated elsewhere. $display_names = array('display_displayname' => $current_user->display_name) + $display_names; } $display_names = array_map('trim', $display_names); $display_names = array_unique($display_names); } // echo var_dump($current_user->first_name); ?>
>
ID); ?>

data->display_name; ?>

user_login; ?>
>
placeholder="first_name; ?>" disabled />
first_name; ?>
>
placeholder="last_name; ?>" disabled />
last_name; ?>
>
placeholder="nickname; ?>" disabled />
nickname; ?>
>
display_name; ?>
>
/>
*****
:
have_posts() ) { ?>

ein Lernmaterial', '%s Lernmaterialien', $favorites->post_count, 'sandbox'), number_format_i18n($favorites->post_count));?>

    have_posts() ) { $favorites->the_post(); $favoriteMeta = get_post_custom(); $favorite_id = get_the_ID(); $file_url = $favoriteMeta['_alpha_file_url'][0]; $file_size = $favoriteMeta['_alpha_file_size'][0]; $file_count = !empty($favoriteMeta['_alpha_file_count'][0]) ? intval($favoriteMeta['_alpha_file_count'][0]) : 0; $file_options = unserialize($favoriteMeta['_alpha_file_options'][0]); $description = $favoriteMeta['_download-description'][0]; $exercise = $favoriteMeta['_download-challenge'][0]; $author = $favoriteMeta['_download-author'][0]; $license = $favoriteMeta['_download-license'][0]; $favorite_post_type = get_post_type(); ?>
  1. >

eine Bewertung', '%s Bewertungen', $current_users_comments_number, 'sandbox'), number_format_i18n($current_users_comments_number));?>

    comment_post_ID); ?>
  1. has_children ? 'parent' : '', $comment ); ?>>

    comment_post_ID); ?>

    comment_approved ) : ?>

    comment_content, $comment, $args); ?>
' . __('Pages:', 'sandbox') . '&after=') ?>