<?php

function template($assunto, $conteudo, $url = NULL) {
    
    if ($url == NULL) {
    return $html = '
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type="text/css">body {
    margin: 0;
    padding: 0;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  table {
    border-spacing: 0;
  }
  .legenda-acesso {
  padding-bottom:5%
}
  .button {
    background-color: #01955e;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
  }
  h2{
    color: #fff;
  }
  h3{
    color: #eff217;
    font-size: 18px;
  }
  table td {
    border-collapse: collapse;
  }

  .ExternalClass {
    width: 100%;
  }

  .ExternalClass,
  .ExternalClass p,
  .ExternalClass span,
  .ExternalClass font,
  .ExternalClass td,
  .ExternalClass div {
    line-height: 100%;
  }

  .ReadMsgBody {
    width: 100%;
    background-color: #ebebeb;
  }

  table {
    mso-table-lspace: 0pt;
    mso-table-rspace: 0pt;
  }

  img {
    -ms-interpolation-mode: bicubic;
  }

  .yshortcuts a {
    border-bottom: none !important;
  }
  @media screen and (max-width: 400px) {
  .curso-acesso {
    margin-top: 83% !important;
   }
  .certificado-acesso {
    margin-top: 5% !important;
   }  
  }
  
@media screen and (max-width: 390px) {
  .curso-acesso {
    margin-top: 83% !important;
   }
  .certificado-acesso {
    margin-top: 5% !important;
   }  
  }
@media screen and (max-width: 350px) {
  .curso-acesso {
    display:none;
   }
    
  }  
  @media screen and (max-width: 599px) {
    .force-row,
    .container {
      width: 100% !important;
      max-width: 100% !important;
    }
    .legenda-acesso {
     width:100% !important;
    }
    .curso-acesso {
     display:none;
    }
    .certificado-acesso {
      margin-top: 3%;
      margin-left:0.3% !important;
      width:100% !important;
    }
  }
  @media screen and (max-width: 400px) {
    .container-padding {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }
  .ios-footer a {
    color: #aaaaaa !important;
    text-decoration: underline;
  }
  a[href^="x-apple-data-detectors:"],
  a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }
</style>
<!-- 100% background wrapper (grey background) -->
<table bgcolor="#F0F0F0" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
  <tbody>
    <tr>
      <td align="center" bgcolor="#FFF" style="background-color: #FFF;" valign="top"><!-- 600px container (white background) -->
      <table border="0" cellpadding="0" cellspacing="0" class="container" style="width:600px;max-width:600px" width="600">
        <tbody>
          <tr>
            <td align="left" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:13px;line-height:10px;color:#000;padding-left:24px;background-color: #2ba447; padding-right:24px"><br />
              <h2 align="center" style="font-size: 19pt;">'.alterar_caracteres('Amazônia Cursos').'</h2>
              <hr width="50%">
              <h3 align="center" style="color: white;font-size: 16pt;">Cursos Online</h3>
            &nbsp;</td>

          </tr>
          <tr>
            <td align="center" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:19px;line-height:20px;color:#000;padding-left:24px;background-color: #c9c9c9; padding-right:24px"><br />
                '.$assunto.'
                <br>
    &nbsp;</td>
          </tr>
          <tr>
            <td align="left" class="container-padding content" style="padding-left:24px;padding-right:24px;padding-top:12px;padding-bottom:12px;background-color:#ffffff">

            &nbsp;

            
            <div class="body-text" style="font-family:Helvetica, Arial, sans-serif;font-size:14px; line-height:20px;text-align:left;color:#2469A0; background-color: #fff">
            

            <p style="font-family:Helvetica, Arial, sans-serif; font-size:15px; color: black">
            '.$conteudo.'
            </p>
            <br>
            
            <center><a href="https://www.amazoniacursos.com.br/" class="button" target="_blank" type="button" style="background-color:white;border:solid 1px; color:#D0D0D0;"><span style="color:black">Acesse Agora!</span></a><br />
            &nbsp;</center>
            <p  style="font-family:Helvetica, Arial, sans-serif; font-size:15px; color: black">Atenciosamente, <br> Equipe '.alterar_caracteres('Amazônia Cursos').'</p>
            </div>
            </td>
            
          </tr>
          <tr>
            <td align="center" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:13px;line-height:16px;color:#000;padding-left:24px;background-color: #c9c9c9; padding-right:24px"><br />
            '.alterar_caracteres('Amazônia Cursos').' - Cursos Online<br />
            E-mail: atendimento@amazoniacursos.com.br<br />
            &nbsp;</td>
          </tr>
        </tbody>
      </table>
      <!--/600px container --></td>
    </tr>
  </tbody>
</table>
<!--/100% background wrapper-->

        ';
    } else {
        return $html = '
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type="text/css">body {
    margin: 0;
    padding: 0;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  table {
    border-spacing: 0;
  }
  .button {
    background-color: #01955e;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
  }
  h2{
    color: #fff;
  }
  h3{
    color: #eff217;
    font-size: 18px;
  }
  table td {
    border-collapse: collapse;
  }

  .ExternalClass {
    width: 100%;
  }

  .ExternalClass,
  .ExternalClass p,
  .ExternalClass span,
  .ExternalClass font,
  .ExternalClass td,
  .ExternalClass div {
    line-height: 100%;
  }

  .ReadMsgBody {
    width: 100%;
    background-color: #ebebeb;
  }

  table {
    mso-table-lspace: 0pt;
    mso-table-rspace: 0pt;
  }

  img {
    -ms-interpolation-mode: bicubic;
  }

  .yshortcuts a {
    border-bottom: none !important;
  }

  @media screen and (max-width: 599px) {
    .force-row,
    .container {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  @media screen and (max-width: 400px) {
    .container-padding {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }
  .ios-footer a {
    color: #aaaaaa !important;
    text-decoration: underline;
  }
  a[href^="x-apple-data-detectors:"],
  a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }
</style>
<!-- 100% background wrapper (grey background) -->
<table bgcolor="#F0F0F0" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
  <tbody>
    <tr>
      <td align="center" bgcolor="#FFF" style="background-color: #FFF;" valign="top"><!-- 600px container (white background) -->
      <table border="0" cellpadding="0" cellspacing="0" class="container" style="width:600px;max-width:600px" width="600">
        <tbody>
          <tr>
            <td align="left" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:13px;line-height:10px;color:#000;padding-left:24px;background-color: #01955e; padding-right:24px"><br />
              <h2 align="center" style="font-size: 19pt;">'.alterar_caracteres('Amazônia Cursos').'</h2>
              <hr width="50%">
              <h3 align="center" style="color: white;font-size: 16pt;">Cursos Online</h3>
            &nbsp;</td>

          </tr>
          <tr>
            <td align="center" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:19px;line-height:20px;color:#000;padding-left:24px;background-color: #c9c9c9; padding-right:24px"><br />
                '.$assunto.'
                <br>
    &nbsp;</td>
          </tr>
          <tr>
            <td align="left" class="container-padding content" style="padding-left:24px;padding-right:24px;padding-top:12px;padding-bottom:12px;background-color:#ffffff">

            &nbsp;

            
            <div class="body-text" style="font-family:Helvetica, Arial, sans-serif;font-size:14px; line-height:20px;text-align:left;color:#2469A0; background-color: #fff">
            

            <p style="font-family:Helvetica, Arial, sans-serif; font-size:15px; color: black">
            '.$conteudo.'
            </p>
            <br>
            
            <center><a href="'.$url.'" class="button" target="_blank" type="button" style="background-color:white;border:solid 1px; color:#D0D0D0;"><span style="color:black">Acesse Agora!</span></a><br />
            &nbsp;</center>
            <p  style="font-family:Helvetica, Arial, sans-serif; font-size:15px; color: black">Atenciosamente, <br> Equipe '.alterar_caracteres('Amazônia Cursos').'</p>
            </div>
            </td>
            
          </tr>
          <tr>
            <td align="center" class="container-padding footer-text" style="font-family:Helvetica, Arial, sans-serif;font-size:13px;line-height:16px;color:#000;padding-left:24px;background-color: #c9c9c9; padding-right:24px"><br />
            '.alterar_caracteres('Amazônia Cursos').' - Cursos Online<br />
            E-mail: atendimento@amazoniacursos.com.br<br />
            &nbsp;</td>
          </tr>
        </tbody>
      </table>
      <!--/600px container --></td>
    </tr>
  </tbody>
</table>
<!--/100% background wrapper-->

        ';    
    }
}
