17 do_action(
'gravityview_list_body_before', $this );
20 if( ! $this->getTotalEntries() ) {
23 <div
class=
"gv-list-view gv-no-results">
24 <div
class=
"gv-list-view-title">
30 } elseif( $this->getContextFields() ) {
33 foreach ( $this->getEntries() as
$entry ) {
35 $this->setCurrentEntry( $entry );
40 <div
id=
"gv_list_<?php echo esc_attr( $entry_slug ); ?>" class=
"<?php echo esc_attr( apply_filters( 'gravityview_entry_class', 'gv-list-view', $entry, $this ) ); ?>">
49 do_action(
'gravityview_entry_before', $entry, $this );
53 <?php
if ( $this->getField(
'directory_list-title') || $this->getField(
'directory_list-subtitle') ) { ?>
62 do_action(
'gravityview_entry_title_before', $entry, $this );
65 <div
class=
"gv-list-view-title">
67 <?php
if ( $this->getField(
'directory_list-title') ) {
71 'form' => $this->getForm(),
72 'hide_empty' => $this->getAtts(
'hide_empty' ),
75 foreach ( $this->getField(
'directory_list-title' ) as
$field ) {
76 $title_args[
'field'] =
$field;
80 $title_args[
'markup'] =
'<h3 class="{{class}}">{{label}}{{value}}</h3>';
82 unset( $title_args[
'markup'] );
84 $title_args[
'wpautop'] =
true;
92 $this->renderZone(
'subtitle', array(
93 'markup' =>
'<h4 id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</h4>',
94 'wrapper_class' =>
'gv-list-view-subtitle',
106 do_action(
'gravityview_entry_title_after', $entry, $this );
113 ( $this->getFields(
'directory_list-image' ) || $this->getFields(
'directory_list-description' ) || $this->getFields(
'directory_list-content-attributes' ) )
114 || has_action(
'gravityview_entry_content_before' ) || has_action(
'gravityview_entry_content_after' )
117 <div
class=
"gv-grid gv-list-view-content">
127 do_action(
'gravityview_entry_content_before', $entry, $this );
129 $this->renderZone(
'image',
'wrapper_class="gv-grid-col-1-3 gv-list-view-content-image"' );
131 $this->renderZone(
'description', array(
132 'wrapper_class' =>
'gv-grid-col-2-3 gv-list-view-content-description',
133 'label_markup' =>
'<h4>{{label}}</h4>',
137 $this->renderZone(
'content-attributes', array(
138 'wrapper_class' =>
'gv-list-view-content-attributes',
139 'markup' =>
'<p id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</p>' 148 do_action(
'gravityview_entry_content_after', $entry, $this );
158 if ( $this->getField(
'directory_list-footer-left') || $this->getField(
'directory_list-footer-right') ) {
165 do_action(
'gravityview_entry_footer_before', $entry, $this );
169 <div
class=
"gv-grid gv-list-view-footer">
170 <div
class=
"gv-grid-col-1-2 gv-left">
171 <?php $this->renderZone(
'footer-left'); ?>
174 <div
class=
"gv-grid-col-1-2 gv-right">
175 <?php $this->renderZone(
'footer-right'); ?>
186 do_action(
'gravityview_entry_footer_after', $entry, $this );
196 do_action(
'gravityview_entry_after', $entry, $this );
210 do_action(
'gravityview_list_body_after', $this );
gv_no_results( $wpautop=true, $context=null)
static get_entry_slug( $id_or_string, $entry=array())
Get the entry slug for the entry.
gravityview_field_output( $passed_args, $context=null)
Output field based on a certain html markup.