GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
templates
deprecated
fields
post_id.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the post_id field type
4
*
5
* @package GravityView
6
* @subpackage GravityView/templates/fields
7
*/
8
9
$gravityview_view
=
GravityView_View::getInstance
();
10
11
extract(
$gravityview_view
->getCurrentField() );
12
13
// Link to the post URL?
14
if
(
$gravityview_view
->getCurrentFieldSetting(
'link_to_post'
) && !empty(
$entry
[
'post_id'
] ) ) {
15
16
echo
gravityview_get_link
( get_permalink(
$entry
[
'post_id'
] ), esc_attr(
$display_value
) );
17
18
}
else
{
19
20
echo
$display_value
;
21
22
}
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$display_value
$display_value
Definition:
field-address-csv.php:17
gravityview_get_link
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
Definition:
class-common.php:1931
$entry
$entry
Definition:
notes.php:27
$gravityview_view
$gravityview_view
Definition:
post_id.php:9