Opal-Estate-Pro/templates/user/agent/profile-agent.php

25 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<div class="property-submission-form">
2019-10-01 07:23:57 +02:00
<div class="opalestate-admin-box">
<div class="box-content">
<h3><?php esc_html_e( 'Edit Agent Profile', 'opalestate-pro' ); ?></h3>
<?php if ( isset( $metaboxes[ OPALESTATE_AGENT_PREFIX . 'front' ] ) ): ?>
<?php
do_action( 'opalestate_profile_agent_form_before' );
if ( function_exists( 'cmb2_get_metabox_form' ) ) {
echo cmb2_get_metabox_form( $metaboxes[ OPALESTATE_AGENT_PREFIX . 'front' ], $post_id, [
2019-10-02 04:45:09 +02:00
'form_format' => '<form action="//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data"><input type="hidden" name="object_id" value="%2$s">%3$s<button type="submit" name="submit-cmb" class="button-primary btn btn-primary">%4$s</button></form>',
2019-10-01 07:23:57 +02:00
'save_button' => esc_html__( 'Save Change', 'opalestate-pro' ),
] );
}
2019-09-10 06:27:33 +02:00
do_action( 'opalestate_profile_agency_form_after' );
2019-10-01 07:23:57 +02:00
?>
2019-09-10 06:27:33 +02:00
<?php else : ?>
2019-10-01 07:23:57 +02:00
<div class="alert alert-danger"><?php esc_html_e( 'Agent edit profile form is not avariable', 'opalestate-pro' ); ?></div>
<?php endif; ?>
</div>
</div>
2019-09-10 06:27:33 +02:00
</div>