10 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
11 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
22 $entries = $gravityview->field->field->get_entries( $gravityview );
26 if ( $gravityview->field->no_entries_hide ) {
30 if ( $gravityview->field->no_entries_text ) {
31 echo
'<div class="gv-no-results"><p>' . esc_html( $gravityview->field->no_entries_text );
40 $gravityview->request->is_view(
false ) ? $gravityview->view->ID : ( is_object( $GLOBALS[
'post'] ) ? $GLOBALS[
'post']->ID : 0 ),
41 $gravityview->view->form->form,
42 $gravityview->field->link_format,
43 $gravityview->field->after_link,
55 $deprecated = apply_filters(
'gravityview/field/other_entries/args', array(), null );
57 _deprecated_function(
'The "gravityview/field/other_entries/args" filter',
'GravityView 1.11',
'gravityview/field/other_entries/criteria' );
If this file is called directly, abort.
if(! isset( $gravityview)||empty( $gravityview->template)) $created_by
The default field output template displaying entries created by same author.
if(empty( $created_by)) $entries
There was no logged in user who created this entry.
if(empty( $entries)) $list
Don't show if no entries and the setting says so.
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.
gravityview()
The main GravityView wrapper function.