<?php
/**
 * Optional watermark image, repeated on every page (a fixed-position element in
 * dompdf repeats per page). Empty unless Pro sets $data['watermark'] to a data
 * URI. Included with $data in scope.
 *
 * @var array<string, mixed> $data
 */

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

// Template partial included in a render method; its locals are not globals.
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

if (empty($data['watermark'])) {
    return;
}
?>
<div style="position:fixed; top:37%; left:0; width:100%; text-align:center; z-index:-1;">
    <img src="<?php echo esc_attr($data['watermark']); ?>" style="max-width:58%; opacity:.08;" alt="">
</div>
