From df28701ccd4f0db9798760f1e014a31a893500d8 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Wed, 10 Jun 2015 13:54:36 -0300 Subject: [PATCH 1/2] Fixing an fatal error when rendering list-single.php --- templates/list-single.php | 126 ++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/templates/list-single.php b/templates/list-single.php index 0babe91aed..185c4c9e49 100644 --- a/templates/list-single.php +++ b/templates/list-single.php @@ -11,88 +11,84 @@
- - - getEntries() as $entry ) { - + getEntries() as $entry ) { $this->setCurrentEntry( $entry ); ?>
- - getFields('single_table-columns') ) { ?> - getFields('single_list-title') || $this->getFields('single_list-subtitle') ) { ?> -
- - getFields('single_list-title') ) { - $i = 0; - $title_args = array( - 'entry' => $entry, - 'form' => $this->form, - 'hide_empty' => $this->atts['hide_empty'], - ); - foreach( $fields as $field ) { - $title_args['field'] = $field; - if( $i == 0 ) { - $title_args['markup'] = '

{{label}}{{value}}

'; - echo gravityview_field_output( $title_args ); - } else { - $title_args['wpautop'] = true; - echo gravityview_field_output( $title_args ); - } - $i++; - } + getFields( 'single_table-columns' ) ) { + if ( $this->getFields( 'single_list-title' ) || $this->getFields( 'single_list-subtitle' ) ) { ?> +
+ getFields( 'single_list-title' ) ) { + $i = 0; + $title_args = array( + 'entry' => $entry, + 'form' => $this->form, + 'hide_empty' => $this->atts['hide_empty'], + ); + foreach ( $fields as $field ) { + $title_args['field'] = $field; + if ( 0 === $i ) { + $title_args['markup'] = '

{{label}}{{value}}

'; + echo gravityview_field_output( $title_args ); + } else { + $title_args['wpautop'] = true; + echo gravityview_field_output( $title_args ); } + $i++; + } + } - $this->renderZone('subtitle', array( - 'wrapper_class' => 'gv-list-view-subtitle', - 'markup' => '

{{label}}{{value}}

' - )); - - ?> -
- - -
- renderZone('subtitle', array( + 'wrapper_class' => 'gv-list-view-subtitle', + 'markup' => '

{{label}}{{value}}

', + )); - $this->renderZone('image', array( - 'wrapper_class' => 'gv-list-view-content-image', - 'markup' => '

{{label}}{{value}}

' - )); + ?> +
+ - $this->renderZone('description', array( - 'wrapper_class' => 'gv-list-view-content-description', - 'label_markup' => '

{{label}}

', - 'wpautop' => true - )); +
+ renderZone('content-attributes', array( - 'wrapper_class' => 'gv-list-view-content-attributes', - 'markup' => '

{{label}}{{value}}

' - )); + $this->renderZone('image', array( + 'wrapper_class' => 'gv-list-view-content-image', + 'markup' => '

{{label}}{{value}}

', + )); - ?> -
+ $this->renderZone('description', array( + 'wrapper_class' => 'gv-list-view-content-description', + 'label_markup' => '

{{label}}

', + 'wpautop' => true, + )); - getFields('single_list-footer-left') || $this->getFields('single_list-footer-right') ) { ?> + $this->renderZone('content-attributes', array( + 'wrapper_class' => 'gv-list-view-content-attributes', + 'markup' => '

{{label}}{{value}}

', + )); - -
- renderZone('footer-right'); ?> -
+ getFields( 'single_list-footer-left' ) || $this->getFields( 'single_list-footer-right' ) ) { ?> + + -
+
getEntries() ?> From 5f66af287fc606b943065fa2f849c872ed10efa2 Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Wed, 10 Jun 2015 11:19:29 -0600 Subject: [PATCH 2/2] Version bump --- gravityview.php | 4 ++-- includes/class-admin-welcome.php | 6 ++++++ readme.txt | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gravityview.php b/gravityview.php index 4303bb8ad9..d77e589125 100644 --- a/gravityview.php +++ b/gravityview.php @@ -14,7 +14,7 @@ * Plugin Name: GravityView * Plugin URI: http://gravityview.co * Description: Create directories based on a Gravity Forms form, insert them using a shortcode, and modify how they output. - * Version: 1.8.1 + * Version: 1.8.2 * Author: Katz Web Services, Inc. * Author URI: http://www.katzwebservices.com * Text Domain: gravityview @@ -71,7 +71,7 @@ */ final class GravityView_Plugin { - const version = '1.8.1'; + const version = '1.8.2'; public static $theInstance; diff --git a/includes/class-admin-welcome.php b/includes/class-admin-welcome.php index 1b6138435d..add371123d 100644 --- a/includes/class-admin-welcome.php +++ b/includes/class-admin-welcome.php @@ -274,6 +274,12 @@ public function changelog_screen() {
+

1.8.2 on June 10

+ +
    +
  • Fixed: Error on list-single.php template
  • +
+

1.8.1 on June 9

    diff --git a/readme.txt b/readme.txt index ee61702161..1bb1e4eb9f 100644 --- a/readme.txt +++ b/readme.txt @@ -20,6 +20,9 @@ Beautifully display your Gravity Forms entries. Learn more on [GravityView.co](h == Changelog == += 1.8.2 = +* Fixed: Error on `list-single.php` template + = 1.8.1 on June 9 = * Added: New search filter for Date fields to allow searching over date ranges ("from X to Y") * Updated: The minimum required version of Gravity Forms is now 1.8.7. **GravityView will be requiring Gravity Forms 1.9 soon.** Please update Gravity Forms if you are running an older version!