GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
entry_approval.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Approval field output
4  *
5  * This field will only render for users with the `gravityview_moderate_entries` capability.
6  *
7  * @package GravityView
8  * @subpackage GravityView/templates/fields
9  * @since 1.19
10  */
11 
12 /**
13  * @action `gravityview/field/approval/load_scripts` Trigger loading the field approval javascript
14  * @see GravityView_Field_Approval::enqueue_and_localize_script
15  * @since 1.19
16  */
17 do_action( 'gravityview/field/approval/load_scripts' );
18 
19 $entry = GravityView_View::getInstance()->getCurrentEntry();
25 ?>
26 <a href="#" aria-role="button" aria-live="polite" aria-busy="false" class="gv-approval-toggle selected <?php echo $class; ?>" title="<?php echo esc_attr( $title ); ?>" data-current-status="<?php echo esc_attr( $current_status ); ?>" data-entry-slug="<?php echo esc_attr( $entry_slug ); ?>" data-form-id="<?php echo esc_attr( $entry['form_id'] ); ?>"><span class="screen-reader-text"><?php echo $anchor; ?></span></a>
static getInstance( $passed_post=NULL)
static get_title_attr( $approved_status)
Get the title attribute for a link, based on the current status.
$class
static get_css_class( $approved_status)
Get the CSS class for a link, based on the current status.
$current_status
static get_anchor_text( $approved_status='')
Get the anchor text for a link, based on the current status.
static get_entry_status( $entry, $value_or_label='label')
Get the approval status for an entry.
$entry_slug
static get_entry_slug( $id_or_string, $entry=array())
Get the entry slug for the entry.
Definition: class-api.php:550
$anchor
$entry
$title