';
break;
}
/**
* Filters the field content.
*
* @since 2.1.2.14 Added form and field ID modifiers.
*
* @param string $content The field content.
* @param array $field The Field Object.
* @param string $value The field value.
* @param int $lead['id'] The entry ID.
* @param int $form['id'] The form ID.
*/
$content = gf_apply_filters( array( 'gform_field_content', $form['id'], $field->id ), $content, $field, $value, $lead['id'], $form['id'] );
echo $content;
}
?>
';
/**
* A filter to allow you to modify the note apply button
*
* @param string $apply_button The Apply Button HTML
*/
echo apply_filters( 'gform_notes_apply_button', $apply_button );
?>
user_id ) {
$avatar = get_avatar( $note->user_id, 48 );
} else {
$avatar = '';
}
/**
* Allows filtering of the notes avatar
*
* @param array $note The Note object that is being filtered when modifying the avatar
*/
echo apply_filters( 'gform_notes_avatar', $avatar, $note ); ?>
user_name ) ?> user_email ): ?>user_email ) ?>
value ) ) ?>
';
/**
* Allows for modification of the "Add Note" button for Entry Notes
*
* @param string $note_button The HTML for the "Add Note" Button
*/
echo apply_filters( 'gform_addnote_button', $note_button );
if ( ! empty( $emails ) ) {
?>
';
}
break;
case 'captcha':
case 'html':
case 'password':
case 'page':
// Ignore captcha, html, password, page field.
break;
default :
// Ignore product fields as they will be grouped together at the end of the grid.
if ( GFCommon::is_product_field( $field->type ) ) {
$has_product_fields = true;
break;
}
$value = RGFormsModel::get_lead_field_value( $lead, $field );
if ( is_array( $field->fields ) ) {
// Ensure the top level repeater has the right nesting level so the label is not duplicated.
$field->nestingLevel = 0;
}
$display_value = GFCommon::get_lead_field_display( $field, $value, $lead['currency'] );
/**
* Filters a field value displayed within an entry.
*
* @since 1.5
*
* @param string $display_value The value to be displayed.
* @param GF_Field $field The Field Object.
* @param array $lead The Entry Object.
* @param array $form The Form Object.
*/
$display_value = apply_filters( 'gform_entry_field_value', $display_value, $field, $lead, $form );
if ( $display_empty_fields || ! empty( $display_value ) || $display_value === '0' ) {
$count ++;
$is_last = $count >= $field_count && ! $has_product_fields ? true : false;
$last_row = $is_last ? ' lastrow' : '';
$display_value = empty( $display_value ) && $display_value !== '0' ? ' ' : $display_value;
$content = '
' . esc_html( GFCommon::get_label( $field ) ) . '
' . $display_value . '
';
}
break;
}
/**
* Filters the field content.
*
* @since 2.1.2.14 Added form and field ID modifiers.
*
* @param string $content The field content.
* @param array $field The Field Object.
* @param string $value The field value.
* @param int $lead['id'] The entry ID.
* @param int $form['id'] The form ID.
*/
$content = gf_apply_filters( array( 'gform_field_content', $form['id'], $field->id ), $content, $field, $value, $lead['id'], $form['id'] );
echo $content;
}
$products = array();
if ( $has_product_fields ) {
$products = GFCommon::get_product_fields( $form, $lead, false, true );
$order_summary_markup = GF_Order_Summary::render( $form, $lead, 'order-summary', false, true );
if ( $order_summary_markup ) {
/**
* Filter the markup of the order summary which appears on the Entry Detail, the {all_fields} merge tag and the {pricing_fields} merge tag.
*
* @since 2.1.2.5
* @see https://docs.gravityforms.com/gform_order_summary/
*
* @var string $markup The order summary markup.
* @var array $form Current form object.
* @var array $lead Current entry object.
* @var array $products Current order summary object.
* @var string $format Format that should be used to display the summary ('html' or 'text').
*/
$order_summary_markup = gf_apply_filters( array( 'gform_order_summary', $form['id'] ), trim( $order_summary_markup ), $form, $lead, $products, 'html' );
echo $order_summary_markup;
}
}
?>
get_item_by_property( 'is_trial', true );
if ( $trial_item && $trial_item->description ) {
/**
* Filter through the way the trial description is rendered.
*
* @param string $trial_description The trial description.
* @param array $form The Form object to filter through
* @param array $entry The lead object to filter through
*/
$trial_description = apply_filters( 'gform_subscription_details_trial_description', $trial_item->description, $form, $entry );
if ( ! rgblank( $trial_description ) ) {
?>
';
/**
* A filter to allow the modification of the button to update an entry detail
*
* @param string $update_button The HTML Rendered for the Entry Detail update button
*/
echo apply_filters( 'gform_entrydetail_update_button', $update_button );
if ( $mode == 'edit' ) {
echo ' ';
}
}
?>