start_controls_section( 'section_content', [ 'label' => esc_html__( 'Contact Form 7', 'borderless' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'contact_form_7', [ 'label' => esc_html__( 'Select Contact Form', 'borderless' ), 'description' => esc_html__('Contact form 7 - plugin must be installed and there must be some contact forms made with the contact form 7','borderless'), 'type' => Controls_Manager::SELECT2, 'multiple' => false, 'label_block' => 1, 'options' => get_contact_form_7_posts(), ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings(); if(!empty($settings['contact_form_7'])){ echo'