IP : 18.222.219.97Hostname : server86.web-hosting.comKernel : Linux server86.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
servlmvm/
public_html/
wp-content/
plugins/
gravityforms/
print-entry.php/
/
<?php
/** * For backwards compatibility, load WordPress if it hasn't been loaded yet. * Will be used if this file is being called directly. */ if ( ! class_exists( 'GFForms' ) ) {
/** * @todo Review use of the form tag. The entry detail markup does not use inputs so they may no longer be needed. * * Previous comment: Separate each entry inside a form element so radio buttons don't get treated as a single group across multiple entries. */ echo '<form>';
GFEntryDetail::lead_detail_grid( $form, $entry );
echo '</form>';
$print_entry_notes = rgget( 'notes' ) === '1';
/** * Allows printing of entry notes to be overridden. * * @since 2.4.17 * * @param bool $print_entry_notes Indicates if printing of notes was enabled via the entry list or detail pages. * @param array $entry The entry currently being printed. * @param array $form The form which created the current entry. */ $print_entry_notes = apply_filters( 'gform_print_entry_notes', $print_entry_notes, $entry, $form );
// Add sorting direction to array. $sorting['direction'] = $direction;
}
// Initialize paging array. $paging = array();
/** * Allow the entry list search criteria to be overridden. * * @deprecated 2.3 Use "gform_search_criteria_entry_list" instead. * * @since 1.9.14.30 * * @param array $search_criteria An array containing the search criteria. * @param int $form_id The ID of the current form. */ $search_criteria = gf_apply_filters( array( 'gform_search_criteria_entry_list', $form_id ), $search_criteria, $form_id );
/** * Filter the arguments that will be used to fetch entries for display on the Entry List view. * * @since 2.2.3.4 * * @param array $args { * * Array of arguments that will be passed to GFAPI::get_entries() to fetch the entries to be displayed. * * @var int $form_id The form ID for which entries will be loaded. * @var array $search_criteria An array of search critiera that will be used to filter entries. * @var array $sorting An array containing properties that specify how the entries will be sorted. * @var array $paging An array containing properties that specify how the entries will be paginated. * } */ $args = gf_apply_filters( array( 'gform_get_entries_args_entry_list', $form_id ), compact( 'form_id', 'search_criteria', 'sorting', 'paging' ) );
// If no form ID or entry IDs are set, exit. if ( empty( $form_id ) || empty( $entry_ids ) ) { die( esc_html__( 'Form Id and Entry Id are required parameters.', 'gravityforms' ) ); }
/** * Determines if the Gravity Forms styles should be printed * * @since 1.7 * * @param bool false Set to true if style should be printed. * @param array $form The Form object */ $styles = apply_filters( 'gform_print_styles', false, $form );
// If styles were found, display them. if ( ! empty( $styles ) ) { wp_print_styles( $styles ); }
/** * Disable auto-print when the Print Entry view has fully loaded. * * @since 1.9.14.16 * * @param bool false Auto print is enabled by default. Set to true to disable. * @param array $form Current Form object. * * @see https://gist.github.com/spivurno/e7d1e4563986b3bc5ac4 */ $auto_print = gf_apply_filters( array( 'gform_print_entry_disable_auto_print', $form['id'] ), false, $form ) ? '' : 'onload="window.print();"';
// Loop through entry IDs. foreach ( $entry_ids as $entry_id ) {
// Get entry. $entry = GFAPI::get_entry( $entry_id );
/** * Adds actions to the entry printing view's header * * @since 1.5.2.8 * * @param array $form The Form object * @param array $entry The Entry object */ do_action( 'gform_print_entry_header', $form, $entry );
/** * Output content for the current entry when looping through entries on the Print Entry view. * * @since 1.9.14.16 * * @param array $form Current Form object. * @param array $entry Current Entry object. * @param array $entry_ids Array of entry IDs to be printed. * * @see https://gist.github.com/spivurno/d617ce30b47d8a8bc8a8 */ do_action( 'gform_print_entry_content', $form, $entry, $entry_ids );
/** * Adds actions to the Print Entry page footer * * @since 1.5.2.8 * * @param array $form The Form object * @param array $entry The Entry object */ do_action( 'gform_print_entry_footer', $form, $entry );