Server IP : 104.21.38.3 / Your IP : 172.70.142.172 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/wpforms-lite/src/Emails/Templates/ |
Upload File : |
<?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' => [] ] ); } }