GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
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 
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 }
static getInstance( $passed_post=NULL)
$gravityview_view
Definition: widget-poll.php:8
if(empty( $created_by)) $form_id