GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
source_url.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Generate output for the Source URL field
4  * @package GravityView
5  * @subpackage GravityView/templates/fields
6  * @since 1.1.6
7  */
8 
10 
11 extract( $gravityview_view->getCurrentField() );
12 
13 // If linking to the source URL
14 if( !empty( $field_settings['link_to_source'] ) ) {
15 
16  // If customizing the anchor text
17  if( !empty( $field_settings['source_link_text'] ) ) {
18 
20 
21  } else {
22 
23  // Otherwise, it's just the URL
24  $link_text = esc_html( $value );
25 
26  }
27 
29 
30 } else {
31 
32  // Otherwise, it's just the URL
33  $output = esc_url_raw( $value );
34 
35 }
36 
37 echo $output;
static getInstance( $passed_post=NULL)
$gravityview_view
Definition: source_url.php:9
$field_settings['content']
Definition: custom.php:27
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
if(gravityview() ->plugin->is_GF_25()) $form
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