active_callback()) { $cf7 = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'wpcf7_contact_form' "); if ($cf7) { foreach ($cf7 as $cform) { $contact_forms[$cform->ID] = $cform->post_title; } } else { $contact_forms[0] = __('No contact forms found', 'illdy'); } } return $contact_forms; } public function render_content() { $Pixova_Lite_contact_forms = $this->illdy_get_cf7_forms(); if ( !empty($Pixova_Lite_contact_forms ) ) { ?> label); ?> '; } } } } /** * Custom Control: Text */ if( !class_exists( 'Illdy_Text_Custom_Control' ) ) { class Illdy_Text_Custom_Control extends WP_Customize_Control { public function render_content() { $output = ''; $output .= ''. esc_html( $this->label ) .''; $output .= ''. $this->description .''; echo $output; } } }