GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
__construct ( $entries=array(), $post_id=0, $form=array(), $link_format='', $after_link='', $context='', $template_context=null, $view_id=0) | |
get_output () | |
Get the HTML output. More... | |
output () | |
Echo the output generated by get_output() More... | |
set_after_link ( $after_link) | |
set_context ( $context) | |
Set the context in which this entry list is being displayed. More... | |
set_empty_message ( $empty_message) | |
Set the message when there are no entries to display. More... | |
set_item_tag ( $item_tag) | |
set_link_format ( $link_format) | |
set_post_id ( $post_id) | |
set_skip_current_entry ( $skip_current_entry) | |
set_wrapper_tag ( $wrapper_tag) | |
Data Fields | |
$template_context | |
$view_id = 0 | |
Private Member Functions | |
get_item_output ( $entry) | |
Get the output for a specific entry. More... | |
skip_entry ( $entry, $current_entry) | |
Should the current entry be skipped while showing the list of entries? More... | |
Private Attributes | |
$after_link = '' | |
$context = '' | |
$empty_message = '' | |
$entries = array() | |
$form = array() | |
$item_tag = 'li' | |
$link_format = '' | |
$post_id = 0 | |
$skip_current_entry = true | |
$wrapper_tag = 'ul' | |
If this file is called directly, abort.
Generate linked list output for a list of entries.
Definition at line 13 of file class-gravityview-entry-list.php.
__construct | ( | $entries = array() , |
|
$post_id = 0 , |
|||
$form = array() , |
|||
$link_format = '' , |
|||
$after_link = '' , |
|||
$context = '' , |
|||
$template_context = null , |
|||
$view_id = 0 |
|||
) |
array|GV |
Definition at line 98 of file class-gravityview-entry-list.php.
References $after_link, $context, $entries, $form, $link_format, $post_id, $template_context, $view_id, and gv_no_results().
|
private |
Get the output for a specific entry.
array | $entry | GF Entry array |
gravityview_get_link GravityView_API::entry_link GravityView_API::replace_variables
gravityview/entry-list/link
The link to this other entry now. string | $link | The link. |
array | $entry | The entry. |
\GravityView_Entry_List | $this | The current entry list object. |
gravityview/entry-list/after-link
Modify the content displayed after the entry link in an entry list string | $item_output | The HTML output for the after_link content |
array | $entry | Gravity Forms entry array |
GravityView_Entry_List | $this | The current class instance |
gravityview/entry-list/item
Modify each item's output in an entry list string | $item_output | The HTML output for the item |
array | $entry | Gravity Forms entry array |
GravityView_Entry_List | $this | The current class instance |
Definition at line 272 of file class-gravityview-entry-list.php.
References $after_link, $entry, $link, GravityView_API\entry_link(), gravityview_get_link(), and GravityView_API\replace_variables().
Referenced by get_output().
get_output | ( | ) |
Get the HTML output.
gravityview/widget/recent-entries/output
Modify the HTML of the Recent Entries widget output string | $output | HTML to be displayed |
GravityView_Entry_List | $this | The current class instance |
Definition at line 190 of file class-gravityview-entry-list.php.
References $entry, $output, get_item_output(), GravityView_View\getInstance(), and skip_entry().
Referenced by output().
output | ( | ) |
Echo the output generated by get_output()
Definition at line 176 of file class-gravityview-entry-list.php.
References $output, and get_output().
set_after_link | ( | $after_link | ) |
string | $after_link |
Definition at line 134 of file class-gravityview-entry-list.php.
References $after_link.
set_context | ( | $context | ) |
Set the context in which this entry list is being displayed.
string | $context |
Definition at line 150 of file class-gravityview-entry-list.php.
References $context.
set_empty_message | ( | $empty_message | ) |
Set the message when there are no entries to display.
string | $empty_message |
Definition at line 142 of file class-gravityview-entry-list.php.
References $empty_message.
set_item_tag | ( | $item_tag | ) |
string | $item_tag |
Definition at line 165 of file class-gravityview-entry-list.php.
References $item_tag.
set_link_format | ( | $link_format | ) |
string | $link_format |
Definition at line 120 of file class-gravityview-entry-list.php.
References $link_format.
set_post_id | ( | $post_id | ) |
int | $post_id |
Definition at line 113 of file class-gravityview-entry-list.php.
References $post_id.
set_skip_current_entry | ( | $skip_current_entry | ) |
boolean | $skip_current_entry |
Definition at line 127 of file class-gravityview-entry-list.php.
References $skip_current_entry.
set_wrapper_tag | ( | $wrapper_tag | ) |
string | $wrapper_tag |
Definition at line 157 of file class-gravityview-entry-list.php.
References $wrapper_tag.
|
private |
Should the current entry be skipped while showing the list of entries?
array | $entry | GF Entry array |
array | int | $current_entry | As returned by GravityView_View::getCurrentEntry() |
Definition at line 240 of file class-gravityview-entry-list.php.
References $entry.
Referenced by get_output().
|
private |
Definition at line 39 of file class-gravityview-entry-list.php.
Referenced by __construct(), get_item_output(), and set_after_link().
|
private |
Definition at line 57 of file class-gravityview-entry-list.php.
Referenced by __construct(), and set_context().
|
private |
Definition at line 45 of file class-gravityview-entry-list.php.
Referenced by set_empty_message().
|
private |
Definition at line 18 of file class-gravityview-entry-list.php.
Referenced by __construct().
|
private |
Definition at line 28 of file class-gravityview-entry-list.php.
Referenced by __construct().
|
private |
Definition at line 69 of file class-gravityview-entry-list.php.
Referenced by set_item_tag().
|
private |
Definition at line 33 of file class-gravityview-entry-list.php.
Referenced by __construct(), and set_link_format().
|
private |
Definition at line 23 of file class-gravityview-entry-list.php.
Referenced by __construct(), and set_post_id().
|
private |
Definition at line 51 of file class-gravityview-entry-list.php.
Referenced by set_skip_current_entry().
$template_context |
Definition at line 77 of file class-gravityview-entry-list.php.
Referenced by __construct().
$view_id = 0 |
Definition at line 84 of file class-gravityview-entry-list.php.
Referenced by __construct().
|
private |
Definition at line 63 of file class-gravityview-entry-list.php.
Referenced by set_wrapper_tag().