'; $gravity_flow = gravity_flow(); $current_step = $gravity_flow->get_current_step( $form, $entry ); // Check view permissions. $entry = GFAPI::get_entry( $entry_id ); require_once( $gravity_flow->get_base_path() . '/includes/pages/class-entry-detail.php' ); $permission_granted = Gravity_Flow_Entry_Detail::is_permission_granted( $entry, $form, $current_step ); /** * Allows the the permission check to be overridden for the workflow entry detail page. * * @param bool $permission_granted Whether permission is granted to open the entry. * @param array $entry The current entry. * @param array $form The form for the current entry. * @param Gravity_Flow_Step $current_step The current step. */ $permission_granted = apply_filters( 'gravityflow_permission_granted_entry_detail', $permission_granted, $entry, $form, $current_step ); if ( ! $permission_granted ) { esc_attr_e( "You don't have permission to view this entry.", 'gravityflow' ); continue; } Gravity_Flow_Entry_Detail::entry_detail_grid( $form, $entry, false, array(), $current_step ); echo ''; if ( rgget( 'timelines' ) ) { Gravity_Flow_Entry_Detail::timeline( $entry, $form ); } // Output entry divider/page break. if ( array_search( $entry_id, $entry_ids ) < count( $entry_ids ) - 1 ) { echo ''; } do_action( 'gravityflow_print_entry_footer', $form, $entry ); } ?>
'is_starred', 'value' => (bool) $star ); } if ( ! is_null( $read ) ) { $search_criteria['field_filters'][] = array( 'key' => 'is_read', 'value' => (bool) $read ); } $search_field_id = rgget( 'field_id' ); if ( isset( $_GET['field_id'] ) && $_GET['field_id'] !== '' ) { $key = $search_field_id; $val = rgget( 's' ); $strpos_row_key = strpos( $search_field_id, '|' ); if ( $strpos_row_key !== false ) { // Multi-row. $key_array = explode( '|', $search_field_id ); $key = $key_array[0]; $val = $key_array[1] . ':' . $val; } $search_criteria['field_filters'][] = array( 'key' => $key, 'operator' => rgempty( 'operator', $_GET ) ? 'is' : rgget( 'operator' ), 'value' => $val, ); } return $search_criteria; } /** * Output the print header. * * @param array $entry_ids The IDs of the entries to be included in this printout. */ public static function get_header( $entry_ids ) { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || isset( $_GET['gform_debug'] ) ? '' : '.min'; ?> <?php $entry_count = count( $entry_ids ); $title = $entry_count > 1 ? esc_html__( 'Bulk Print', 'gravityflow' ) : esc_html__( 'Entry # ', 'gravityflow' ) . absint( $entry_ids[0] ); $title = apply_filters( 'gravityflow_page_title_print_entry', $title, $entry_count ); echo esc_html( $title ); ?> get_user_status(); gravity_flow()->log_debug( __METHOD__ . '() - user status = ' . $user_status ); if ( ! $user_status ) { $user_roles = gravity_flow()->get_user_roles(); foreach ( $user_roles as $user_role ) { $user_status = $current_step->get_role_status( $user_role ); if ( $user_status ) { break; } } } } return $user_status; } }