GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
widgets
poll
templates
widget-poll.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the Poll widget
4
*
5
* @file ../class-gravityview-widget-poll.php
6
*/
7
8
$gravityview_view
=
GravityView_View::getInstance
();
9
10
foreach
(
$gravityview_view
->poll_fields as
$form_id
=> $poll_field ) {
11
12
/**
13
* Merge tag is already generated by the class.
14
* Access array of settings to generate your own using the $gravityview_view->poll_settings variable.
15
*/
16
$merge_tag =
$gravityview_view
->poll_merge_tag;
17
18
echo GFCommon::replace_variables( $merge_tag, GFAPI::get_form(
$form_id
), array(
'id'
=> 0 ) );
19
20
}
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$gravityview_view
$gravityview_view
Definition:
widget-poll.php:8
$form_id
if(empty( $created_by)) $form_id
Definition:
other_entries.php:20