<?php
/**
 * Email Signature Template
 *
 * Renders the email signature with site branding.
 *
 * @since 2.15.0
 * @package wc-affiliate
 * @var string $site_name Site name for signature
 */

/**
 * Filter the signature text
 *
 * @param string $signature_text The signature text with %s placeholder for site name
 * @param string $site_name The site name
 */
$signature_text = apply_filters( 'wc_affiliate_email_signature_text', 'Best regards,<br>The %s Team', $site_name );

/**
 * Filter the signature wrapper HTML
 *
 * @param string $wrapper_html The wrapper HTML with %s placeholder for signature content
 * @param string $site_name The site name
 * @param string $signature_text The signature text
 */
$wrapper_html = apply_filters( 'wc_affiliate_email_signature_wrapper', '<div class="signature"><p>%s</p></div>', $site_name, $signature_text );

printf( $wrapper_html, sprintf( $signature_text, esc_html( $site_name ) ) );
