<?php

namespace email\templates;

use email\helpers\email_template;

class email_template_header
{
    use email_template;

    public function generate_text(): string
    {
        return "";
    }

    public function generate_html(): string
    {
        ob_start();
        # Start of the html
        ?>

        <!-- Header: centered logo with Outlook Classic support -->
        <table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin:0;padding:0;">
            <tr>
                <td align="center" style="padding:0 0 20px 0;">
                    <!--[if mso]>
                    <table role="presentation" width="600" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td align="center">
                    <![endif]-->
                    <img src="https://usercontent.one/wp/www.truckwash.dk/wp-content/uploads/2021/04/truckwash-banner-png.png"
                         alt="Truck Wash logo" width="600"
                         style="width:100%;max-width:600px;height:auto;display:block;line-height:0;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;">
                    <!--[if mso]>
                            </td>
                        </tr>
                    </table>
                    <![endif]-->
                </td>
            </tr>
        </table>

        <?php
        # End of the html
        return ob_get_clean();
    }
}