$23 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/ubukode.com/wp-content/plugins/contact-form-7/includes/

HOME
Current File : /home/bravrvjk/ubukode.com/wp-content/plugins/contact-form-7/includes//contact-form-template.php
<?php

class WPCF7_ContactFormTemplate {

	public static function get_default( $prop = 'form' ) {
		if ( 'form' === $prop ) {
			$template = self::form();
		} elseif ( 'mail' === $prop ) {
			$template = self::mail();
		} elseif ( 'mail_2' === $prop ) {
			$template = self::mail_2();
		} elseif ( 'messages' === $prop ) {
			$template = self::messages();
		} else {
			$template = null;
		}

		return apply_filters( 'wpcf7_default_template', $template, $prop );
	}

	public static function form() {
		$template = sprintf(
			'
<label> %2$s
    [text* your-name autocomplete:name] </label>

<label> %3$s
    [email* your-email autocomplete:email] </label>

<label> %4$s
    [text* your-subject] </label>

<label> %5$s %1$s
    [textarea your-message] </label>

[submit "%6$s"]',
			__( '(optional)', 'contact-form-7' ),
			__( 'Your name', 'contact-form-7' ),
			__( 'Your email', 'contact-form-7' ),
			__( 'Subject', 'contact-form-7' ),
			__( 'Your message', 'contact-form-7' ),
			__( 'Submit', 'contact-form-7' )
		);

		return trim( $template );
	}

	public static function mail() {
		$template = array(
			'subject' => sprintf(
				/* translators: 1: blog name, 2: [your-subject] */
				_x( '%1$s "%2$s"', 'mail subject', 'contact-form-7' ),
				'[_site_title]',
				'[your-subject]'
			),
			'sender' => sprintf(
				'%s <%s>',
				'[_site_title]',
				self::from_email()
			),
			'body' =>
				sprintf(
					/* translators: %s: [your-name] [your-email] */
					__( 'From: %s', 'contact-form-7' ),
					'[your-name] [your-email]'
				) . "\n"
				. sprintf(
					/* translators: %s: [your-subject] */
					__( 'Subject: %s', 'contact-form-7' ),
					'[your-subject]'
				) . "\n\n"
				. __( 'Message Body:', 'contact-form-7' )
				. "\n" . '[your-message]' . "\n\n"
				. '-- ' . "\n"
				. sprintf(
					/* translators: 1: blog name, 2: blog URL */
					__( 'This is a notification that a contact form was submitted on your website (%1$s %2$s).', 'contact-form-7' ),
					'[_site_title]',
					'[_site_url]'
				),
			'recipient' => '[_site_admin_email]',
			'additional_headers' => 'Reply-To: [your-email]',
			'attachments' => '',
			'use_html' => 0,
			'exclude_blank' => 0,
		);

		return $template;
	}

	public static function mail_2() {
		$template = array(
			'active' => false,
			'subject' => sprintf(
				/* translators: 1: blog name, 2: [your-subject] */
				_x( '%1$s "%2$s"', 'mail subject', 'contact-form-7' ),
				'[_site_title]',
				'[your-subject]'
			),
			'sender' => sprintf(
				'%s <%s>',
				'[_site_title]',
				self::from_email()
			),
			'body' =>
				__( 'Message Body:', 'contact-form-7' )
				. "\n" . '[your-message]' . "\n\n"
				. '-- ' . "\n"
				. sprintf(
					/* translators: 1: blog name, 2: blog URL */
					__( 'This email is a receipt for your contact form submission on our website (%1$s %2$s) in which your email address was used. If that was not you, please ignore this message.', 'contact-form-7' ),
					'[_site_title]',
					'[_site_url]'
				),
			'recipient' => '[your-email]',
			'additional_headers' => sprintf(
				'Reply-To: %s',
				'[_site_admin_email]'
			),
			'attachments' => '',
			'use_html' => 0,
			'exclude_blank' => 0,
		);

		return $template;
	}

	public static function from_email() {
		$admin_email = get_option( 'admin_email' );

		if ( wpcf7_is_localhost() ) {
			return $admin_email;
		}

		$sitename = wp_parse_url( network_home_url(), PHP_URL_HOST );
		$sitename = strtolower( $sitename );

		if ( 'www.' === substr( $sitename, 0, 4 ) ) {
			$sitename = substr( $sitename, 4 );
		}

		if ( strpbrk( $admin_email, '@' ) === '@' . $sitename ) {
			return $admin_email;
		}

		return 'wordpress@' . $sitename;
	}

	public static function messages() {
		$messages = array();

		foreach ( wpcf7_messages() as $key => $arr ) {
			$messages[$key] = $arr['default'];
		}

		return $messages;
	}
}

function wpcf7_messages() {
	$messages = array(
		'mail_sent_ok' => array(
			'description' => __( 'Sender&#8217;s message was sent successfully', 'contact-form-7' ),
			'default' => __( 'Thank you for your message. It has been sent.', 'contact-form-7' ),
		),

		'mail_sent_ng' => array(
			'description' => __( 'Sender&#8217;s message failed to send', 'contact-form-7' ),
			'default' => __( 'There was an error trying to send your message. Please try again later.', 'contact-form-7' ),
		),

		'validation_error' => array(
			'description' => __( 'Validation errors occurred', 'contact-form-7' ),
			'default' => __( 'One or more fields have an error. Please check and try again.', 'contact-form-7' ),
		),

		'spam' => array(
			'description' => __( 'Submission was referred to as spam', 'contact-form-7' ),
			'default' => __( 'There was an error trying to send your message. Please try again later.', 'contact-form-7' ),
		),

		'accept_terms' => array(
			'description' => __( 'There are terms that the sender must accept', 'contact-form-7' ),
			'default' => __( 'You must accept the terms and conditions before sending your message.', 'contact-form-7' ),
		),

		'invalid_required' => array(
			'description' => __( 'There is a field that the sender must fill in', 'contact-form-7' ),
			'default' => __( 'Please fill out this field.', 'contact-form-7' ),
		),

		'invalid_too_long' => array(
			'description' => __( 'There is a field with input that is longer than the maximum allowed length', 'contact-form-7' ),
			'default' => __( 'This field has a too long input.', 'contact-form-7' ),
		),

		'invalid_too_short' => array(
			'description' => __( 'There is a field with input that is shorter than the minimum allowed length', 'contact-form-7' ),
			'default' => __( 'This field has a too short input.', 'contact-form-7' ),
		),
	);

	return apply_filters( 'wpcf7_messages', $messages );
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
block-editor
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
config-validator
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
css
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
js
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
swv
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
capabilities.php
0.814 KB
26 Nov 2018 11.08 PM
bravrvjk / bravrvjk
0644
contact-form-functions.php
10.265 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
contact-form-template.php
5.643 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
contact-form.php
30.744 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
controller.php
3.162 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
file.php
10.126 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
filesystem.php
2.997 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
form-tag.php
14.286 KB
29 Oct 2025 12.57 PM
bravrvjk / bravrvjk
0644
form-tags-manager.php
14.567 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
formatting.php
14.474 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
functions.php
16.978 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
html-formatter.php
20.657 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
integration.php
8.759 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
l10n.php
3.374 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
mail-tag.php
4.097 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
mail.php
15.147 KB
8 Feb 2026 2.28 PM
bravrvjk / bravrvjk
0644
pipe.php
2.618 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
pocket-holder.php
0.317 KB
10 Dec 2022 12.43 PM
bravrvjk / bravrvjk
0644
rest-api.php
12.99 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
shortcodes.php
2.662 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
special-mail-tags.php
6.528 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
submission.php
20.232 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
upgrade.php
3.099 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
validation-functions.php
6.667 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
validation.php
3.256 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF