SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > wpforms-lite > src > Emails > > Templates


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/wpforms-lite/src/Emails//Templates

NameTypeSizeLast ModifiedActions
Classic.php File 296 bytes November 28 2023 16:59:36.
Compact.php File 307 bytes November 28 2023 16:59:36.
General.php File 9000 bytes November 28 2023 16:59:36.
Notifications.php File 2593 bytes January 16 2024 17:57:58.
Plain.php File 1549 bytes November 28 2023 16:59:36.
Summary.php File 2757 bytes April 23 2024 14:43:10.

Reading File: /home/codekrsu//ameliagraphics.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' => [] ] );
	}
}

SILENT KILLER Tool