Update
This commit is contained in:
parent
d12ef914b3
commit
c93c699a77
@ -19,26 +19,32 @@ switch ( $type ) {
|
|||||||
case 'agent' :
|
case 'agent' :
|
||||||
$agent_id = $property->get_metabox_value( 'agent' );
|
$agent_id = $property->get_metabox_value( 'agent' );
|
||||||
|
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
array( 'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agent_id,
|
'id' => $agent_id,
|
||||||
'prefix' => OPALESTATE_AGENT_PREFIX,
|
'prefix' => OPALESTATE_AGENT_PREFIX,
|
||||||
'picture' => '',
|
'picture' => '',
|
||||||
'type' => 'agent',
|
'type' => 'agent',
|
||||||
'hide_description' => true ) );
|
'hide_description' => true,
|
||||||
|
] );
|
||||||
break;
|
break;
|
||||||
case 'agency' :
|
case 'agency' :
|
||||||
$agency_id = $property->get_metabox_value( 'agency' );
|
$agency_id = $property->get_metabox_value( 'agency' );
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
array( 'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agency_id,
|
'id' => $agency_id,
|
||||||
'picture' => '',
|
'picture' => '',
|
||||||
'type' => 'agency',
|
'type' => 'agency',
|
||||||
'hide_description' => true ) );
|
'hide_description' => true,
|
||||||
|
] );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', [
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', array('author' => $data , 'hide_description' => true ), $layout );
|
'author' => $data,
|
||||||
|
'hide_description' => true,
|
||||||
|
],
|
||||||
|
$layout
|
||||||
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,7 @@ switch ( $type ) {
|
|||||||
case 'agent' :
|
case 'agent' :
|
||||||
$agent_id = $property->get_metabox_value( 'agent' );
|
$agent_id = $property->get_metabox_value( 'agent' );
|
||||||
|
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
[
|
|
||||||
'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agent_id,
|
'id' => $agent_id,
|
||||||
'prefix' => OPALESTATE_AGENT_PREFIX,
|
'prefix' => OPALESTATE_AGENT_PREFIX,
|
||||||
@ -26,8 +25,7 @@ switch ( $type ) {
|
|||||||
break;
|
break;
|
||||||
case 'agency' :
|
case 'agency' :
|
||||||
$agency_id = $property->get_metabox_value( 'agency' );
|
$agency_id = $property->get_metabox_value( 'agency' );
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
[
|
|
||||||
'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agency_id,
|
'id' => $agency_id,
|
||||||
'picture' => '',
|
'picture' => '',
|
||||||
@ -36,8 +34,12 @@ switch ( $type ) {
|
|||||||
] );
|
] );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', [
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', [ 'author' => $data, 'hide_description' => true ], $layout );
|
'author' => $data,
|
||||||
|
'hide_description' => true,
|
||||||
|
],
|
||||||
|
$layout
|
||||||
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,7 @@ switch ( $type ) {
|
|||||||
case 'agent' :
|
case 'agent' :
|
||||||
$agent_id = $property->get_metabox_value( 'agent' );
|
$agent_id = $property->get_metabox_value( 'agent' );
|
||||||
|
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
[
|
|
||||||
'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agent_id,
|
'id' => $agent_id,
|
||||||
'prefix' => OPALESTATE_AGENT_PREFIX,
|
'prefix' => OPALESTATE_AGENT_PREFIX,
|
||||||
@ -26,8 +25,7 @@ switch ( $type ) {
|
|||||||
break;
|
break;
|
||||||
case 'agency' :
|
case 'agency' :
|
||||||
$agency_id = $property->get_metabox_value( 'agency' );
|
$agency_id = $property->get_metabox_value( 'agency' );
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box',
|
$author_info = opalestate_load_template_path( 'single-property/user/author-member-box', [
|
||||||
[
|
|
||||||
'author' => $data,
|
'author' => $data,
|
||||||
'id' => $agency_id,
|
'id' => $agency_id,
|
||||||
'picture' => '',
|
'picture' => '',
|
||||||
@ -36,8 +34,12 @@ switch ( $type ) {
|
|||||||
] );
|
] );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', [
|
||||||
$author_info = opalestate_load_template_path( 'single-property/user/author-user-box', [ 'author' => $data, 'hide_description' => true ], $layout );
|
'author' => $data,
|
||||||
|
'hide_description' => true,
|
||||||
|
],
|
||||||
|
$layout
|
||||||
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user