GravityView  2.5
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-entry_link-html.php File Reference

Go to the source code of this file.

Variables

 $field_settings = $gravityview->field->as_configuration()
 
 $href = $gravityview->entry->get_permalink( $gravityview->view, $gravityview->request, $tag_atts )
 
 $link = gravityview_get_link( $href, $output, $tag_atts )
 
 $link_text = empty( $field_settings['entry_link_text'] ) ? __( 'View Details', 'gravityview' ) : $field_settings['entry_link_text']
 
 $output = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ), $gravityview )
 
if(! empty( $field_settings['new_window'])) global $post
 
 $tag_atts = array()
 
if(! isset( $gravityview)||empty( $gravityview->template)) if(! $gravityview->field->form_id||!( $form=GFAPI::get_form( $gravityview->field->form_id))) if( $gravityview->entry->is_multi()) else
 The default entry link field output template. More...
 

Variable Documentation

◆ $field_settings

$field_settings = $gravityview->field->as_configuration()

Definition at line 25 of file field-entry_link-html.php.

◆ $href

$href = $gravityview->entry->get_permalink( $gravityview->view, $gravityview->request, $tag_atts )

Definition at line 39 of file field-entry_link-html.php.

◆ $link

$link = gravityview_get_link( $href, $output, $tag_atts )

◆ $link_text

$link_text = empty( $field_settings['entry_link_text'] ) ? __( 'View Details', 'gravityview' ) : $field_settings['entry_link_text']

Definition at line 27 of file field-entry_link-html.php.

◆ $output

$output = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ), $gravityview )
Runs Filter:
gravityview_field_entry_link Modify the link HTML (here for backward compatibility)
Parameters
string$linkHTML output of the link
string$hrefURL of the link
array$entryThe GF entry array
array$field_settingsSettings for the particular GV field

Definition at line 29 of file field-entry_link-html.php.

◆ $post

if (! empty($field_settings[ 'new_window'])) global $post

Definition at line 33 of file field-entry_link-html.php.

◆ $tag_atts

$tag_atts = array()

Definition at line 31 of file field-entry_link-html.php.

◆ else

if (! isset($gravityview)||empty($gravityview->template)) if (! $gravityview->field->form_id||!($form=GFAPI::get_form($gravityview->field->form_id))) if ($gravityview->entry->is_multi()) else
Initial value:
{
$entry = $gravityview->entry->as_entry()
$entry
Definition: notes.php:27

The default entry link field output template.

$gravityview

Since
2.0

Definition at line 21 of file field-entry_link-html.php.