9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
34 case in_array(
$name_display, array(
'ID',
'user_login',
'display_name',
'user_email',
'user_registered' ),
true ):
38 case in_array(
$name_display, array(
'nickname',
'description',
'first_name',
'last_name' ) ):
42 case 'first_last_name':
43 echo esc_html( trim( sprintf(
'%s %s', get_user_meta(
$user->ID,
'first_name',
true ), get_user_meta(
$user->ID,
'last_name',
true ) ) ) );
45 case 'last_first_name':
46 echo esc_html( trim( sprintf(
'%s %s', get_user_meta(
$user->ID,
'last_name',
true ), get_user_meta(
$user->ID,
'first_name',
true ) ) ) );
if(! isset( $gravityview)||empty( $gravityview->template)) $value
The default created by field output template.
gravityview()
The main GravityView wrapper function.
if(! $user) $name_display