<?php
/**
 * Render Email Templates
 *
 * Echo form templates for visual styling in the browser
 *
 * @author Andrew Morgan <andrew.morgan@mtcmedia.co.uk>
 */

$path = '../../';
require($path . 'core/includes/header.inc.php');

$clean = [
    'full_name' => 'Andrew Morgan',
    'email' => 'andrew.morgan@mtcmedia.co.uk',
    'telephone' => '0844 804 2021',
    'message' => 'This is a test message on several lines so I can see if the text wraps.  The text should wrap with a decent line height so it does not bunch together in an unattractive way.',
];

$options = [
    'validated_inputs' => $clean
];

$header_style = "font-family: Helvetica,Arial,sans-serif;text-align:center;margin:40px 0 0;font-size:30px;";
?>
<h1 style="<?= $header_style ?>font-size:40px;margin-bottom:40px;">Core Email</h1>

<?php

$filepath = 'emails/contact_email/contact_email.twig';
echo "<h1 style='" . $header_style . "'>Contact Email</h1>";
echo "<pre style='text-align:center;'>" . $filepath . "</pre><hr/>";
echo $twig->render($filepath, $options);


$filepath = 'emails/password_reset_new_website/password_reset_new_website.twig';
echo "<h1 style='" . $header_style . "'>Reset Passord Email for Website Launch</h1>";
echo "<pre style='text-align:center;'>" . $filepath . "</pre><hr/>";
echo $twig->render($filepath, $options);
