13 <div
class=
"<?php gv_container_class( 'gv-list-container gv-list-single-container' ); ?>">
16 if( $this->getContextFields() ) {
17 foreach ( $this->getEntries() as
$entry ) {
18 $this->setCurrentEntry( $entry );
23 <div
id=
"gv_list_<?php echo esc_attr( $entry_slug ); ?>" class=
"gv-list-view">
26 if ( $this->getFields(
'single_list-title' ) || $this->getFields(
'single_list-subtitle' ) ) { ?>
27 <div
class=
"gv-list-view-title">
29 if ( $fields = $this->getFields(
'single_list-title' ) ) {
33 'form' => $this->form,
34 'hide_empty' => $this->atts[
'hide_empty'],
36 foreach ( $fields as
$field ) {
37 $title_args[
'field'] =
$field;
39 $title_args[
'markup'] =
'<h3 id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</h3>';
42 $title_args[
'wpautop'] =
true;
49 $this->renderZone(
'subtitle', array(
50 'wrapper_class' =>
'gv-list-view-subtitle',
51 'markup' =>
'<h4 id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</h4>',
59 if ( $this->getFields(
'single_list-image' ) || $this->getFields(
'single_list-description' ) || $this->getFields(
'single_list-content-attributes' ) ) { ?>
60 <div
class=
"gv-list-view-content">
63 $this->renderZone(
'image', array(
64 'wrapper_class' =>
'gv-list-view-content-image gv-grid-col-1-3',
65 'markup' =>
'<h4 id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</h4>',
68 $this->renderZone(
'description', array(
69 'wrapper_class' =>
'gv-list-view-content-description',
70 'label_markup' =>
'<h4>{{label}}</h4>',
74 $this->renderZone(
'content-attributes', array(
75 'wrapper_class' =>
'gv-list-view-content-attributes',
76 'markup' =>
'<p id="{{ field_id }}" class="{{class}}">{{label}}{{value}}</p>',
83 if ( $this->getFields(
'single_list-footer-left' ) || $this->getFields(
'single_list-footer-right' ) ) { ?>
84 <div
class=
"gv-grid gv-list-view-footer">
85 <div
class=
"gv-grid-col-1-2 gv-left">
86 <?php $this->renderZone(
'footer-left' ); ?>
89 <div
class=
"gv-grid-col-1-2 gv-right">
90 <?php $this->renderZone(
'footer-right' ); ?>
gravityview_back_link( $context=null)
Generate HTML for the back link from single entry view.
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.