GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
entry_link.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the entry_link field type
4  *
5  * @package GravityView
6  * @subpackage GravityView/templates/fields
7  */
8 
10 
11 extract( $gravityview_view->getCurrentField() );
12 
13 // Don't show on single entry
14 if( $gravityview_view->getContext() === 'single' ) { return; }
15 
16 $link_text = empty( $field_settings['entry_link_text'] ) ? __('View Details', 'gravityview') : $field_settings['entry_link_text'];
17 
18 $output = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ) );
19 
static replace_variables($text, $form=array(), $entry=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:102
$field_settings['content']
Definition: custom.php:27
$gravityview_view
Definition: entry_link.php:9
$output
Definition: entry_link.php:18
if($gravityview_view->getContext()=== 'single') $link_text
Definition: entry_link.php:16
static entry_link_html($entry=array(), $anchor_text= '', $passed_tag_atts=array(), $field_settings=array())
Generate an anchor tag that links to an entry.
Definition: class-api.php:362
static getInstance($passed_post=NULL)
$entry
Definition: notes.php:27