get_settings_for_display( 'sample_email' ); if ( empty( $sample_email ) ) { return; } $display_content = preg_replace( '/\\[([^\\]]*)\\]/', '[$1]', $sample_email ); $display_content = wpautop( $display_content ); ?>
wp_kses_post( $sample_email ), ] ); ?>
start_controls_section( 'email_section', [ 'label' => esc_html__( 'Email Sample', 'copy-the-code' ), ] ); $this->add_control( 'sample_email', [ 'label' => esc_html__( 'Email Sample', 'copy-the-code' ), 'type' => Controls_Manager::TEXTAREA, 'default' => "Subject: Application for [Job Title] - [Your Name]\r\n\r\nDear [Hiring Manager's Name],\r\n\r\nI hope this email finds you well. I am writing to express my strong interest in the [Job Title] position at [Company Name], as advertised on your website. With my background in [Relevant Skill/Experience] and a passion for [Company's Mission or Industry], I believe I am a strong fit for your team.\r\n\r\nSincerely,\r\n[Your Name]\r\n[Your Contact Information]", 'rows' => 10, 'description' => esc_html__( 'Use [ ] to highlight the text.', 'copy-the-code' ), ] ); $this->end_controls_section(); Helpers::register_copy_button_section( $this ); Helpers::register_pro_sections( $this, ['Email Sample', 'Highlight Text'] ); Helpers::register_copy_button_style_section( $this ); } }