Opal-Estate-Pro/templates/single-agent/form.php

25 lines
658 B
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<?php
$args = array( 'post_id' => get_the_ID() );
if( isset($author_id) && $author_id ){
$args = array(
'post_id' => get_the_ID(),
'id' => $author_id,
'email' => $email,
'message' => '',
'type' => 'user',
);
echo opalestate_load_template_path( 'messages/contact-form', $args );
}else {
$email = get_post_meta( get_the_ID(), OPALESTATE_AGENT_PREFIX . 'email', true );
$args = array(
'post_id' => get_the_ID(),
'id' => get_the_ID(),
'email' => $email,
'message' => '',
'type' => 'agent',
);
echo opalestate_load_template_path( 'messages/contact-form', $args );
}