settings['multiple'] ) ? $this->settings['multiple'] : ''; // Note value is a string $return_format = isset( $this->settings['return_format'] ) ? $this->settings['return_format'] : ''; if ( $return_format == 'array' ) { if ( $multiple_values == '0' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name."['ID'] ); ?>\">var_name."['display_name'] ); ?>")."\n"; // get_author_posts_url() is used because $user['user_url'] was empty in testing echo $this->indent . htmlspecialchars("")."\n"; } if ( $multiple_values == '1' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name." as \$user ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" \">")."\n"; // get_author_posts_url() is used because $user['user_url'] was empty in testing echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } } if ( $return_format == 'object' ) { if ( $multiple_values == '0' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name."->ID ); ?>\">var_name."->display_name ); ?>")."\n"; // get_author_posts_url() is used because $user->user_url was empty in testing echo $this->indent . htmlspecialchars("")."\n"; } if ( $multiple_values == '1' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name." as \$user ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" ID ); ?>\">display_name ); ?>")."\n"; // get_author_posts_url() is used because $user->user_url was empty in testing echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } } if ( $return_format == 'id' ) { if ( $multiple_values == '0' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name." ); ?>")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" var_name." ); ?>\">display_name ); ?>")."\n"; // get_author_posts_url() is used because $user_data->user_url was empty in testing echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } if ( $multiple_values == '1' ) { echo $this->indent . htmlspecialchars("var_name. ' = ' . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name." as \$user_id ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" \">display_name ); ?>")."\n"; // get_author_posts_url() is used because $user_data->user_url was empty in testing echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } }