update
This commit is contained in:
@@ -99,7 +99,7 @@ $id = time();
|
||||
<div class="opalestate-tab-content" id="tab-content-team">
|
||||
<div class="opalestate-box-content">
|
||||
<h4 class="outbox-title"><?php esc_html_e( 'Team', 'opalestate-pro' ); ?></h4>
|
||||
<?php echo $team; ?>
|
||||
<?php echo $team; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -109,7 +109,7 @@ $id = time();
|
||||
<div class="opalestate-box-content">
|
||||
<h4 class="outbox-title"><?php esc_html_e( 'Properties', 'opalestate-pro' ); ?></h4>
|
||||
<div class="opalestate-box">
|
||||
<?php echo $properties; ?>
|
||||
<?php echo opalestate_load_template_path( 'single-agency/properties' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -118,7 +118,11 @@ $id = time();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php comments_template(); ?>
|
||||
<?php
|
||||
if ( opalestate_get_option( 'enable_agency_reviews' ) ) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="content-bottom">
|
||||
<?php do_action( 'opalestate_single_agency_content_bottom' ); ?>
|
||||
|
||||
@@ -14,7 +14,11 @@ $id = time();
|
||||
<div class="col-md-8 col-sm-12">
|
||||
<ul class="list-inline opalestate-scroll-elements">
|
||||
<li><a href="#block-description" class="active"><?php esc_html_e( 'Description', 'opalestate-pro' ); ?></a></li>
|
||||
<li><a href="#reviews"><?php esc_html_e( 'Review', 'opalestate-pro' ); ?></a></li>
|
||||
|
||||
<?php if ( opalestate_get_option( 'enable_agent_reviews' ) ) : ?>
|
||||
<li><a href="#reviews"><?php esc_html_e( 'Review', 'opalestate-pro' ); ?></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li><a href="#block-my-properties"><?php esc_html_e( 'Properties', 'opalestate-pro' ); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -101,7 +105,11 @@ $id = time();
|
||||
<?php endif ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php comments_template(); ?>
|
||||
<?php
|
||||
if ( opalestate_get_option( 'enable_agent_reviews' ) ) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
|
||||
<meta itemprop="url" content="<?php the_permalink(); ?>"/>
|
||||
|
||||
|
||||
@@ -1,22 +1,36 @@
|
||||
<?php
|
||||
global $property, $post;
|
||||
|
||||
$amenities = $property->get_amenities();
|
||||
$amenities = $property->get_amenities();
|
||||
|
||||
?>
|
||||
<?php if ( $property->get_block_setting( 'amenities' ) && $amenities ): ?>
|
||||
<div class="property-amenities box-inner-summary">
|
||||
<h5 class="list-group-item-heading"><?php esc_html_e( "Amenities", "opalestate" ); ?></h5>
|
||||
<h5 class="list-group-item-heading"><?php esc_html_e( 'Amenities', 'opalestate-pro' ); ?></h5>
|
||||
<div class="list-group-item-text">
|
||||
<div class="opal-row">
|
||||
<?php foreach ( $amenities as $amenity ): ?>
|
||||
<div class="col-lg-4 col-sm-4 <?php if ( has_term( $amenity->term_id, 'opalestate_amenities', $post ) ) : ?>active<?php endif; ?>">
|
||||
<?php
|
||||
if ( $image_id = get_term_meta( $amenity->term_id, 'opalestate_amt_image_id', true )) {
|
||||
echo wp_get_attachment_image( $image_id );
|
||||
}
|
||||
?>
|
||||
<?php echo esc_html( $amenity->name ); ?> <i class="fa fa-check"></i>
|
||||
<?php
|
||||
if ( apply_filters( 'opalestate_hide_unset_amenity', false ) && ! has_term( $amenity->term_id, 'opalestate_amenities', $post ) ) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<div class="col-lg-4 col-sm-4">
|
||||
<div class="amenity-item <?php echo has_term( $amenity->term_id, 'opalestate_amenities', $post ) ? 'active' : ''; ?>">
|
||||
<?php
|
||||
if ( $icon = get_term_meta( $amenity->term_id, 'opalestate_amt_icon', true ) ) {
|
||||
echo '<span class="amenity-icon"><i class="' . esc_attr( $icon ) . '"></i></span>';
|
||||
} elseif ( $image_id = get_term_meta( $amenity->term_id, 'opalestate_amt_image_id', true ) ) {
|
||||
echo wp_get_attachment_image( $image_id );
|
||||
}
|
||||
?>
|
||||
<?php echo esc_html( $amenity->name ); ?>
|
||||
<?php if ( has_term( $amenity->term_id, 'opalestate_amenities', $post ) ) : ?>
|
||||
<?php echo apply_filters( 'opalestate_amenity_check_icon', '<i class="fa fa-check"></i>' ); ?>
|
||||
<?php else : ?>
|
||||
<?php echo apply_filters( 'opalestate_amenity_uncheck_icon', '<i class="fa fa-check"></i>' ); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
@@ -2,9 +2,13 @@
|
||||
global $property;
|
||||
|
||||
$infos = $property->get_meta_fullinfo();
|
||||
$taxs = $property->get_types_tax();
|
||||
$taxs = $property->get_types_tax();
|
||||
|
||||
if ( ! $infos && ! $taxs ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="property-information box-inner-summary">
|
||||
<h5><?php esc_html_e( 'Quick Information', 'opalestate-pro' ); ?></h5>
|
||||
<div class="box-content">
|
||||
@@ -33,4 +37,4 @@ $taxs = $property->get_types_tax();
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,15 +5,18 @@ if ( ! $property->get_block_setting( 'video' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$videoURL = $property->get_video_url();
|
||||
$video_url = $property->get_video_url();
|
||||
|
||||
if ( ! $video_url ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<?php if ( $videoURL ) : ?>
|
||||
|
||||
<div class="opalestate-box-content property-video-session">
|
||||
<h4 class="outbox-title" id="block-video"><?php esc_html_e( 'Video', 'opalestate-pro' ); ?></h4>
|
||||
<div class="opalestate-box">
|
||||
<div class="box-info">
|
||||
<?php echo wp_oembed_get( $videoURL ); ?>
|
||||
<?php echo wp_oembed_get( $video_url ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -1,15 +1,22 @@
|
||||
<?php
|
||||
global $property;
|
||||
|
||||
$virtualTour = $property->get_virtual_tour();
|
||||
if ( ! $property->get_block_setting( 'virtual_tour' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$virtual_tour = $property->get_virtual_tour();
|
||||
|
||||
if ( ! $virtual_tour ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<?php if( $virtualTour ) : ?>
|
||||
|
||||
<div class="opalestate-box-content property-360-virtual-session">
|
||||
<h4 class="outbox-title" id="block-tour360"><?php esc_html_e( '360° Virtual Tour', 'opalestate-pro' ); ?></h4>
|
||||
<h4 class="outbox-title" id="block-tour360"><?php esc_html_e( '360° Virtual Tour', 'opalestate-pro' ); ?></h4>
|
||||
<div class=" opalestate-box">
|
||||
<div class="box-info">
|
||||
<?php echo do_shortcode( $virtualTour ); ?>
|
||||
<?php echo do_shortcode( $virtual_tour ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -17,17 +17,12 @@ if ( ! class_exists( 'OpalEstate_User' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
get_header( 'no-sidebar' );
|
||||
$user_id = get_current_user_id();
|
||||
$current_user = wp_get_current_user();
|
||||
|
||||
$user_info = "<span class='display-name'>{$current_user->display_name}</span>";
|
||||
|
||||
if ( $current_user->display_name !== $current_user->user_login ) {
|
||||
$user_info .= "<span class='username'>{$current_user->user_login}</span>";
|
||||
}
|
||||
?>
|
||||
<?php if ( $user_id ): ?>
|
||||
<?php get_header( 'no-sidebar' ); ?>
|
||||
<div class="dashboard-navbar">
|
||||
<div class="clearfix">
|
||||
<div class="pull-left navbar-left">
|
||||
@@ -66,7 +61,7 @@ if ( $current_user->display_name !== $current_user->user_login ) {
|
||||
</div>
|
||||
|
||||
<div class="wrapper opalestate-user-management" id="opalestate-user-management">
|
||||
<div class="container-full" id="content">
|
||||
<div class="container" id="content">
|
||||
<div class="opal-row-inner">
|
||||
<div class=" user-dasboard-sidebar">
|
||||
<div class="navbar-brand">
|
||||
@@ -134,7 +129,9 @@ if ( $current_user->display_name !== $current_user->user_login ) {
|
||||
</div><!-- .row end -->
|
||||
</div><!-- Container end -->
|
||||
</div><!-- Wrapper end -->
|
||||
<?php get_footer( 'header/no-sidebar' ); ?>
|
||||
<?php else : ?>
|
||||
<?php get_header(); ?>
|
||||
<div class="wrapper opalestate-user-management" id="opalestate-user-management">
|
||||
<div class="container">
|
||||
<div class="opalestate-panel-myaccount">
|
||||
@@ -146,5 +143,5 @@ if ( $current_user->display_name !== $current_user->user_login ) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
<?php endif; ?>
|
||||
<?php get_footer( 'header/no-sidebar' ); ?>
|
||||
|
||||
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="opalestate-admin-box">
|
||||
<div class="opalestate-admin-box card-item inner">
|
||||
|
||||
<div class="box-content">
|
||||
<?php
|
||||
@@ -30,8 +30,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
$user_info = "<span class='username'>({$current_user->user_login})</span>";
|
||||
}
|
||||
?>
|
||||
<h3><?php esc_html_e( 'Edit User Profile', 'opalestate-pro' ); ?> <?php echo wp_kses_post( $user_info ); ?></h3>
|
||||
|
||||
<div class="heading">
|
||||
<i class="fa fa-user"></i>
|
||||
<span><?php esc_html_e( 'Edit User Profile', 'opalestate-pro' ); ?> <?php echo wp_kses_post( $user_info ); ?></span>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
do_action( 'opalestate_profile_form_before' );
|
||||
|
||||
@@ -47,10 +51,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="opalestate-admin-box">
|
||||
<div class="opalestate-admin-box card-item inner">
|
||||
<div class="box-content">
|
||||
<h3><?php esc_html_e( 'Change Password', 'opalestate-pro' ); ?></h3>
|
||||
<div class="heading">
|
||||
<i class="fa fa-lock-open"></i>
|
||||
<span><?php esc_html_e( 'Change Password', 'opalestate-pro' ); ?></span>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
do_action( 'opalestate_profile_form_before' );
|
||||
|
||||
Reference in New Issue
Block a user