HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/www/wp-content/plugins/wpforms-pdf/templates/pdf/document-application.php
<?php
/**
 * PDF: Document Application template.
 *
 * @since 1.0.0
 *
 * @var array  $appearance Appearance options.
 * @var array  $theme      Theme data.
 * @var string $content    Content.
 * @var array  $texts      Text elements.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
?>
<style>
	body, table, h1, h2, h3, h4, h5, h6, p, td, th, a {
		font-family: <?php echo $appearance['font']; ?>;
	}

	.page-background {
		background: <?php echo $appearance['page_background_color']; ?>;
	}

	.container-background-fill {
		background: <?php echo $appearance['container_background_color']; ?>;
		border-style: <?php echo $appearance['container_border_style']; ?>;
		border-width: <?php echo $appearance['container_border_size']; ?>;
		border-radius: <?php echo $appearance['container_border_radius']; ?>;
		border-color: <?php echo $appearance['container_border_color']; ?>;
	}

	.header .divider {
		background-color: <?php echo $appearance['text_color']; ?>;
	}

	.header td.divider {
		color: <?php echo $theme['tertiary']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.header .business_address {
		color: <?php echo $texts['business_address_color']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.header .business_email {
		color: <?php echo $texts['business_email_color']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.header .business_phone {
		color: <?php echo $texts['business_phone_color']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.content, .content * {
		color: <?php echo $texts['content_color']; ?>;
		font-size: <?php echo $appearance['font_size']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.content a {
		color: <?php echo $theme['accent']; ?>;
	}

	.container-content .content td.field-name {
		color: <?php echo $appearance['text_color']; ?>;
		font-size: <?php echo $appearance['font_size']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.container-content .content td.field-value {
		background: <?php echo $theme['background_light']; ?>;
		font-size: <?php echo $appearance['font_size']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.container-content .content .field-address table td {
		background: <?php echo $theme['background_light']; ?>;
		font-size: <?php echo $appearance['font_size']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}

	.container-content .content .field-divider h2,
	.container-content .content .field-pagebreak h2 {
		color: <?php echo $theme['complementary']; ?>;
		font-family: <?php echo $appearance['font']; ?>;
	}
</style>

<?php

// PDF requires tuning for each page.
if ( empty( $is_preview ) ) {
	require WPFORMS_PDF_PATH . 'templates/pdf/tuning/document.php';
}

require WPFORMS_PDF_PATH . 'templates/pdf/elements/background.php';
?>

<div class="container-content">
	<div class="header" data-align="<?php echo $appearance['logo_position']; ?>">
		<div class="logo-container"
			data-size="<?php echo $appearance['logo_size']; ?>"
			data-logo="<?php echo $appearance['logo_url'] ? '1' : ''; ?>">
			<img class="logo" src="<?php echo $appearance['logo_url']; ?>" alt="Logo">
		</div>

		<table class="business-info">
			<tr>
				<td class="business_address">
					<?php echo $texts['business_address']; ?>
				</td>
				<td class="divider">|</td>
				<td class="business_email">
					<?php echo $texts['business_email']; ?>
				</td>
				<td class="divider">|</td>
				<td class="business_phone">
					<?php echo $texts['business_phone']; ?>
				</td>
			</tr>
		</table>

		<div class="divider"></div>
	</div>

	<div class="content">
		<?php echo $content; ?>
	</div>
</div>