Add hooks.

This commit is contained in:
Hoang Huu
2019-11-08 08:41:22 +07:00
parent e387d976de
commit b244e8de6b
6 changed files with 43 additions and 25 deletions

View File

@@ -14,10 +14,14 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<header class="property-single-header">
<div class="property-single-info">
<div class="group-items">
<?php do_action( 'opalestate_before_single_property_title' ); ?>
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
<?php do_action( 'opalestate_after_single_property_title' ); ?>
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>
@@ -88,6 +92,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="property-tab-content">
<div class="property-meta-top">
<ul class="list-inline property-meta-top__list">
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
<?php if ( $property->get_sku() ) : ?>
<li class="list-inline__sku">
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
@@ -103,6 +109,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<li class="list-inline__favorite property-meta-top__button">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
</ul>
</div>

View File

@@ -13,6 +13,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="property-single-stick-bars keep-top-bars ">
<div class="container">
<ul class="list-inline">
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
<li class="list-inline__favorite">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
@@ -24,6 +26,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<li class="list-inline__request-viewing single-property-buttons">
<?php opalestate_property_request_viewing_button(); ?>
</li>
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
</ul>
</div>
</div>
@@ -38,10 +42,14 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="property-single-info">
<div class="single-price-content"><?php opalestate_property_loop_price(); ?></div>
<div class="group-items">
<?php do_action( 'opalestate_before_single_property_title' ); ?>
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
<?php do_action( 'opalestate_after_single_property_title' ); ?>
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>

View File

@@ -11,10 +11,14 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<header class="property-single-header">
<div class="property-single-info">
<div class="group-items">
<?php do_action( 'opalestate_before_single_property_title' ); ?>
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
<?php do_action( 'opalestate_after_single_property_title' ); ?>
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>
@@ -58,6 +62,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="summary entry-summary opalestate-rows">
<div class="property-meta-top">
<ul class="list-inline property-meta-top__list">
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
<?php if ( $property->get_sku() ) : ?>
<li class="list-inline__sku">
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
@@ -73,6 +79,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<li class="list-inline__favorite property-meta-top__button">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
</ul>
</div>

View File

@@ -51,10 +51,14 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="property-single-info">
<div class="single-price-content"><?php opalestate_property_loop_price(); ?></div>
<div class="group-items">
<?php do_action( 'opalestate_before_single_property_title' ); ?>
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
<?php do_action( 'opalestate_after_single_property_title' ); ?>
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>
@@ -91,6 +95,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="summary entry-summary opalestate-rows">
<div class="property-meta-top">
<ul class="list-inline property-meta-top__list">
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
<?php if ( $property->get_sku() ) : ?>
<li class="list-inline__sku">
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
@@ -103,6 +109,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<li class="list-inline__favorite property-meta-top__button">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
</ul>
</div>

View File

@@ -9,10 +9,14 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<header class="property-single-header">
<div class="property-single-info">
<div class="group-items">
<?php do_action( 'opalestate_before_single_property_title' ); ?>
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
<?php do_action( 'opalestate_after_single_property_title' ); ?>
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>
@@ -63,6 +67,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<div class="summary entry-summary opalestate-rows">
<div class="property-meta-top">
<ul class="list-inline property-meta-top__list">
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
<?php if ( $property->get_sku() ) : ?>
<li class="list-inline__sku">
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
@@ -78,6 +84,8 @@ $header = apply_filters( 'opalestate_single_show_heading', true );
<li class="list-inline__favorite property-meta-top__button">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
</ul>
</div>