Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/matelopsrp.com/wp-content/plugins/contact-form-7/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/matelopsrp.com/wp-content/plugins/contact-form-7/modules/reflection.php
<?php

add_action( 'wpcf7_init', 'wpcf7_add_form_tag_reflection', 10, 0 );

function wpcf7_add_form_tag_reflection() {
	wpcf7_add_form_tag( 'reflection',
		'wpcf7_reflection_form_tag_handler',
		array(
			'name-attr' => true,
			'display-block' => true,
			'not-for-mail' => true,
		)
	);
}

function wpcf7_reflection_form_tag_handler( $tag ) {
	if ( empty( $tag->name ) ) {
		return '';
	}

	$content = '';

	$values = (array) wpcf7_get_hangover( $tag->name );

	if ( $values and ! wpcf7_get_validation_error( $tag->name ) ) {
		$values = array_map(
			function ( $val ) use ( $tag ) {
				return sprintf(
					'<output name="%1$s">%2$s</output>',
					esc_attr( $tag->name ),
					esc_html( $val )
				);
			},
			$values
		);

		$content = implode( '', $values );
	}

	$html = sprintf(
		'<fieldset %1$s>%2$s</fieldset>',
		wpcf7_format_atts( array(
			'data-reflection-of' => $tag->name,
			'class' => $tag->get_class_option(
				wpcf7_form_controls_class( $tag->type )
			),
			'id' => $tag->get_id_option(),
		) ),
		$content
	);

	return $html;
}

ZeroDay Forums Mini