GravityView  1.19.4
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 = $value;
34 
35 }
36 
37 echo $output;
static replace_variables($text, $form=array(), $entry=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:102
$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.
static getInstance($passed_post=NULL)
$entry
Definition: notes.php:27