<?php
declare(strict_types=1);

/**
 * Centered Service Network credit — last item in page footers.
 */
function sn_credit_html(): string
{
    $year = date('Y');
    $logo = APP_BASE . '/servicenetwork.gif';
    return '<div class="sn-credit">'
        . '<p class="sn-credit-copy">&copy; ' . $year . ' Service Network</p>'
        . '<a class="sn-credit-logo" href="https://servicenetwork.us" target="_blank" rel="noopener noreferrer" title="Service Network">'
        . '<img src="' . htmlspecialchars($logo) . '" alt="Service Network" width="180" height="40" loading="lazy">'
        . '</a>'
        . '</div>';
}

function sn_credit_render(): void
{
    echo sn_credit_html();
}
