From 92f5c2343944601352885c5b64b75b43f95b2282 Mon Sep 17 00:00:00 2001 From: Alpha Date: Mon, 3 Aug 2020 09:04:25 +0700 Subject: [PATCH] Update --- changelog.txt | 3 ++ .../class-metabox-property-submission.php | 34 ++++++++++++------- opal-estate-pro.php | 6 ++-- readme.txt | 5 ++- templates/single-property/attachments.php | 19 +++++++---- 5 files changed, 44 insertions(+), 23 deletions(-) diff --git a/changelog.txt b/changelog.txt index dd30d928..0c21d0b9 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 1.6.6 - 2020-08-03 = +* Fixes - Frontend submission form + = 1.6.5 - 2020-07-29 = * Fixes - Settings diff --git a/inc/submission/class-metabox-property-submission.php b/inc/submission/class-metabox-property-submission.php index e2ab42b5..43473ffc 100755 --- a/inc/submission/class-metabox-property-submission.php +++ b/inc/submission/class-metabox-property-submission.php @@ -144,26 +144,34 @@ class Opalestate_Property_MetaBox_Submission { 'description' => esc_html__( 'After Price Label (e.g. "per month")', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Statuses', 'opalestate-pro' ), + 'name' => esc_html__( 'Status', 'opalestate-pro' ), 'id' => $prefix . 'status', 'type' => 'taxonomy_select', 'taxonomy' => 'opalestate_status', 'class' => 'form-control', - 'attributes' => [ - 'required' => 'required', - ], 'before_row' => '
', // callback ], [ - 'name' => esc_html__( 'Types', 'opalestate-pro' ), - 'id' => $prefix . 'type', - 'type' => 'taxonomy_select', - 'taxonomy' => 'opalestate_types', - 'class' => 'form-control', - 'attributes' => [ - 'required' => 'required', - ], - 'after_row' => '

', // callback + 'name' => esc_html__( 'Label', 'opalestate-pro' ), + 'id' => $prefix . 'label', + 'type' => 'taxonomy_select', + 'taxonomy' => 'opalestate_label', + 'class' => 'form-control', + ], + [ + 'name' => esc_html__( 'Category', 'opalestate-pro' ), + 'id' => $prefix . 'category', + 'type' => 'taxonomy_select', + 'taxonomy' => 'property_category', + 'class' => 'form-control', + ], + [ + 'name' => esc_html__( 'Type', 'opalestate-pro' ), + 'id' => $prefix . 'type', + 'type' => 'taxonomy_select', + 'taxonomy' => 'opalestate_types', + 'class' => 'form-control', + 'after_row' => '
', // callback ], ]; diff --git a/opal-estate-pro.php b/opal-estate-pro.php index e8a110ec..d50c2c0e 100755 --- a/opal-estate-pro.php +++ b/opal-estate-pro.php @@ -3,7 +3,7 @@ * Plugin Name: Opal Estate Pro * Plugin URI: https://wpdocs.gitbook.io/opal-estate/ * Description: Opal Real Estate Plugin is an ideal solution and brilliant choice for you to set up a professional estate website. - * Version: 1.6.5 + * Version: 1.6.6 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -154,7 +154,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { */ public function __clone() { // Cloning instances of the class is forbidden - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.6.5' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.6.6' ); } /** @@ -163,7 +163,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.6.5' ); + define( 'OPALESTATE_VERSION', '1.6.6' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 35f23efd..b1207501 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wpdocs.gitbook.io/opal-estate/ Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace Requires at least: 4.9 Tested up to: 5.3.2 -Stable tag: 1.6.4 +Stable tag: 1.6.6 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -150,6 +150,9 @@ This section describes how to install the plugin and get it working. * System tickets support 24/7 available : [free support](https://themelexus.ticksy.com/ "Visit the Plugin support Page") == Changelog == += 1.6.6 - 2020-08-03 = +* Fixes - Frontend submission form + = 1.6.5 - 2020-07-29 = * Fixes - Settings diff --git a/templates/single-property/attachments.php b/templates/single-property/attachments.php index bff067ed..428ea35b 100755 --- a/templates/single-property/attachments.php +++ b/templates/single-property/attachments.php @@ -12,15 +12,22 @@ $attachments = $property->get_attachments();
- $attachment ) : - $attachment_title = get_the_title( $id ); - ?> + + $attachment ) : ?> +
+ + + +
+ + +
- - + +
- +