GravityView  2.17
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', 'gk-gravityview') : $field_settings['entry_link_text'];
17 
18 $output = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ) );
19 
20 $tag_atts = array();
21 
22 if ( ! empty( $field_settings['new_window'] ) ) {
23  $tag_atts['target'] = '_blank';
24 }
25 
static getInstance( $passed_post=NULL)
$field_settings['content']
Definition: custom.php:27
if(gravityview() ->plugin->is_GF_25()) $form
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(), $base_id=null)
Generate an anchor tag that links to an entry.
Definition: class-api.php:259
$gravityview_view
Definition: entry_link.php:9
$output
Definition: entry_link.php:18
static replace_variables( $text, $form=array(), $entry=array(), $url_encode=false, $esc_html=true, $nl2br=true, $format='html', $aux_data=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:118
$entry
Definition: notes.php:27
$tag_atts
Definition: entry_link.php:20