post_type == 'advanced_form'){ _e('
'); if(!empty($_GET['post'])){ _e('

Copy this shortcode and paste it into your post, page, or text widget content:



'); } _e('
'); $this->aaiof_get_tab1_html($post); _e('
'); $this->aaiof_get_tab2_html($post); _e('
'); $this->aaiof_get_tab3_html($post); _e('
'); } } public function aaiof_get_mail_tags($post){ $field = get_post_meta( $post->ID, 'vcf_fields_data', true); $get_fields = unserialize($field); _e('

In the following fields, you can use these mail-tags : '); foreach($get_fields as $key=>$value){ if($value['type'] != 'recaptcha' && $value['type'] != 'submit'){ if($value['type'] == 'password' || $value['type'] == 'description'){ }else{ _e('['.$value['name'].']'); } } } _e('

'); } public function aaiof_get_tab1_html($post){ _e('
    '); $field = get_post_meta( $post->ID, 'vcf_fields_data', true); $get_fields = unserialize($field); $fieldsobj = new \AdvancedAllInOneForms\AAIOF_Customfields(); if(isset($get_fields)) { foreach($get_fields as $key=>$value) { $fields = $value['type']; if(method_exists(AAIOF_Customfields::class, $fields)){ $fieldsobj->$fields($value,$key); } } } _e('
'); _e('
'); } public function aaiof_get_tab2_html($post){ $mail_field = get_post_meta( $post->ID, 'vcf_mail_data', true); $mail_body = get_post_meta( $post->ID, 'vcf_body_data', true); $vcf_mail2 = get_post_meta( $post->ID, 'vcf_mail_data2', true); $mail_body2 = get_post_meta( $post->ID, 'vcf_mail_body2', true); $get_mail = unserialize($mail_field); $vcf_mail2 = unserialize($vcf_mail2); $body_html = htmlspecialchars($mail_body); $body_html2 = htmlspecialchars($mail_body2); _e(''); $this->aaiof_get_mail_tags($post); _e('

Mail (2)

'); } public function aaiof_get_tab3_html($post){ $message = unserialize(get_post_meta( $post->ID, 'vcf_success_sms', true)); _e('
'); } } }