function tokopress_wcvendors_user_contactform() { $user = get_query_var('author_name') ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); if (WCV_Vendors::is_vendor($user->ID)) { $args = array(); if ($user->user_email) { $args['email'] = $user->user_email; $args['title'] = __('Contact this seller', 'tokopress'); echo tokopress_get_contact_form($args); } } }
if ($email) { $args['email'] = $email; } $subject = tokopress_get_post_meta('_toko_contact_subject', $current_page_id); if ($subject) { $args['subject'] = $subject; } $sendcopy = tokopress_get_post_meta('_toko_contact_sendcopy', $current_page_id); if ($sendcopy) { $args['sendcopy'] = $sendcopy; } $button_text = tokopress_get_post_meta('_toko_contact_button', $current_page_id); if ($button_text) { $args['button_text'] = $button_text; } echo tokopress_get_contact_form($args); ?> <!-- Contact Form --> <?php } else { ?> <?php get_template_part('content', 'not-found'); ?> <?php } ?>