$13 GRAYBYTE WORDPRESS FILE MANAGER $69

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/kigalix.com/wp-content/plugins/wpforms-lite/src/Emails/Templates/

HOME
Current File : /home/bravrvjk/kigalix.com/wp-content/plugins/wpforms-lite/src/Emails/Templates//Plain.php
<?php

namespace WPForms\Emails\Templates;

/**
 * Class Plain.
 * This template is used for the plain text email notifications.
 *
 * @since 1.8.5
 */
class Plain extends Notifications {

	/**
	 * Template slug.
	 *
	 * @since 1.8.5
	 *
	 * @var string
	 */
	const TEMPLATE_SLUG = 'plain';

	/**
	 * Initialize class.
	 *
	 * @since 1.8.5
	 *
	 * @param mixed ...$args Variable number of parameters to be passed to the parent class.
	 */
	public function __construct( ...$args ) {

		// Ensure preparation for initialization by calling the parent class constructor with all passed arguments.
		parent::__construct( ...$args );

		// We already know that this is a plain text template. No need for further evaluation.
		$this->plain_text = true;

		// Call the parent method after to set the correct header properties.
		$this->set_initial_args();
	}

	/**
	 * Maybe prepare the content for the preview.
	 *
	 * @since 1.8.5
	 *
	 * @param string $content Content with no styling applied.
	 */
	protected function save_styled( $content ) {

		// Leave early if we are not in preview mode.
		if ( ! $this->is_preview ) {
			// Call the parent method to handle the proper styling.
			parent::save_styled( $content );

			return;
		}

		// Leave if content is empty.
		if ( empty( $content ) ) {
			$this->content = '';

			return;
		}

		// Stop here as we don't need to apply any styling for the preview.
		// The only exception here is to keep the break tags to maintain the readability.
		$this->content = wp_kses( $content, [ 'br' => [] ] );
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 May 2025 2.02 AM
bravrvjk / bravrvjk
0755
Classic.php
0.289 KB
28 Nov 2023 4.59 PM
bravrvjk / bravrvjk
0644
Compact.php
0.3 KB
28 Nov 2023 4.59 PM
bravrvjk / bravrvjk
0644
General.php
8.789 KB
28 Nov 2023 4.59 PM
bravrvjk / bravrvjk
0644
Notifications.php
2.532 KB
16 Jan 2024 5.57 PM
bravrvjk / bravrvjk
0644
Plain.php
1.513 KB
28 Nov 2023 4.59 PM
bravrvjk / bravrvjk
0644
Summary.php
2.692 KB
23 Apr 2024 2.43 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF