KaiserEMP
5/28/2018 - 8:14 AM

2-Column Mail template

2-Column Mail template

    <?php
    /*
     * $template->post_title();
     *
     */
 

    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php print $template->post_title(); ?></title>
                <!-- POST ID: <?php print $post_id ?> -->
     <style type="text/css">
        p {
            color: #595958;
        }
        #post-content p strong{
            color: #1a2352;
        }
        #post-content p:first-child {
            margin-top: 0;
        }
        a {
            color:#ed6852;
            text-decoration: none;
        }
        blockquote {
            border-left:0 !important;
            border-color: #fff !important;
            background: transparent !important;  
        }
        .buttonConfirm {
            border-top: 10px solid #fff;
            border-bottom: 10px solid #fff;
        }
        #side-content a {
            color:#ed6852;
        }
       .icon-table {
          text-align: center !important;
          margin: 0 auto;
       }
       @media (max-width:860px) {
        table{
            width: 100% !important;
        }
        table.buttonConfirm {
             width: auto !important;
        }
        .side-half,
        .main-half {
            width: 100% !important;
            display: block !important;
        }
        .info-text {
            text-align: center;
        }
       }
        @media (max-width:580px) {
           #image-columns img {
              max-width: 100%;
           }
           #image-columns td:nth-child(even) {
              width:4px;
           }
        }
       @media (max-width: 414px) {
          .header-table td {
              vertical-align: middle;
          }
         .header-table img {
              max-width: 150px;
          }
           .view-browser {
              font-size: 10px !important;
               line-height: 13px;
           }
       }
       @media (max-width:320px) {
          .header-table img {
              max-width: 100px;
          }
        }
     </style>
    </head>
    <body bgcolor="#fff" style="color: #1a2352; font-family: arial,sans-serif;width:100%; margin: 0;font-weight:400;">
        <center style="background: white;">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                <tr>
                    <td align="center" valign="top" style="font-size: 12px; line-height: 125%;font-family: Arial;">
                        <table border="0" cellpadding="0" cellspacing="0" id="cw" style="border: none; width: 840px;">
                            <tr>
                                <td height="40" align="center" valign="top" style="line-height:8px;height:40px"></td>
                            </tr>
                            <tr>
                                <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                <td>
                                    <table class="header-table" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="489" valign="top" align="left" style="font-family: Arial;font-size: 12px; color: #ed6852; text-align: left;">
                                                <a href="<?php echo home_url(); ?>" >
                                                    <img width="222" src="https://www.eklips.se/electrolux/img/logo.png" style="line-height:8px;border: none;vertical-align:middle; text-align:left;" alt="logo" />
                                                    <!-- http://www.eklips.se -->
                                                </a>
                                            </td>
                                            <td class="view-browser" width="376" valign="center" align="right" style="font-family: Arial; color:#1a2352; font-size: 12px; text-align: right; margin:0;"> <?php if($post_id): ?>Is the content not displaying correctly? <a style="color:#ed6852; text-decoration: none;" href="*|WEBLINK|*" target="_blank">View it in your browser</a><?php endif; ?></td>
                                        </tr>
                                    </table>
                                </td>
                                <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                            </tr>
                            <tr>
                                <td height="20" align="center" valign="top" style="line-height:8px;height:20px"></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <?php if(!$post_id): ?>
                <tr>
                    <td height="80" width="15" align="center" valign="top" style="line-height:8px;height:80px; width: 15px;"></td>
                </tr>
                <?php endif; ?>
            </table>
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <?php if($post_id): ?>
                      <th class="side-half" width="190" style="width: 190px; font-family: Arial;font-size: 12px; background: white; vertical-align: top; ">
                          <table align="center" border="0" cellpadding="0" cellspacing="0" style="height: 100%;" width="100%" id="sideTable">
                                <tr>
                                    <td align="center" id="bodyCell" style="text-align: left !important">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0"  style="" width="100%" >
                                                            <tr>
                                                                <td height="34" align="center" valign="top" style="line-height:8px;height:34px"></td>
                                                            </tr>
                                                        <tr id="side-content">
                                                            <td height="10" width="15" align="center" valign="top" style="line-height:8px;height:10px; width: 15px;"></td>

                                                            <td style="color: #1a2352; line-height: 150%;font-family: Arial;">
                                                           <h2 style="font-size: 18px; margin:0; line-height: 1;line-height: 150%;">Press Release</h2><br>
                                                           <span style="font-size: 14px; margin:0; line-height: 1;line-height: 120%; font-weight: 400;">
                                                              For further information, please contact:<br>
                                                              <br>Electrolux Press Hotline
                                                              +46 8 657 65 07 
                                                           </span>
                                                            </td>

                                                            <td height="10" width="15" align="center" valign="top" style="line-height:8px;height:10px; width: 15px;"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                      </th>
                  <?php endif; ?>
                    <?php if($post_id): ?>
                    <th class="main-half" width="650" style="width: 650px; font-family: Arial; font-size: 12px; background: white;">
                    <?php else: ?>
                    <th class="main-half" width="840" style="width: 840px; font-family: Arial; font-size: 12px; background: white;">
                    <?php endif; ?>
                        <table align="center" border="0" cellpadding="0" cellspacing="0" style="height: 100%;" width="100%" id="bodyTable">
                            <tr>
                                <td align="center" id="bodyCell" style="text-align: left !important"><!-- text-align-comment -->
                                    <table border="0" cellpadding="0" cellspacing="0" id="cw" style="width: 100%;">
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0" cellspacing="0"  style="width: 100%;" width="100%" >
                                                     <?php if(!$template->confirmation): ?>
                                                    <tr>
                                                        <td height="30" align="center" valign="top" style="line-height:8px;height:30px"></td>
                                                    </tr>
                                                    <?php endif; ?>
                                                    <tr>
                                                        <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                                        <td style="font-family: Arial , sans-serif;">
                                                            <h1 style="font-family: Arial, sans-serif; margin: 0; padding: 0; font-size: 28px; line-height: 32px; color:#1a2352; font-weight: bold;"><?php print $template->post_title(); ?></h1>
                                                        </td>
                                                        <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
 
                                                    </tr>
                                                    <?php if(!$template->confirmation): ?>
                                                    <tr>
                                                        <td height="16" align="center" valign="top" style="line-height:8px;height:16px"></td>
                                                    </tr>

                                                    <tr>
                                                        <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                                        <td style="font-family: Arial , sans-serif;">
                                                            <h2 style="font-family:arial; font-weight: 400; margin: 0; padding: 0; font-size: 14px; color:#1a2352; line-height: 20px;"><?php print $template->post_date(); ?>
                                                            </h2>
                                                        </td>
                                                        <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                                    
                                                    </tr>
                                                    
                                                    <tr>
                                                        <td height="20" align="center" valign="top" style="line-height:8px;height:20px"></td>
                                                    </tr>
                                                    <?php endif; ?>
                                                    <?php if($template->post_content()): ?>
                                                        <tr id="post-content">
                                                            <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                                            <td style="font-size: 14px; line-height: 150%;font-family: Arial; padding-bottom: 15px;font-weight:400;">
                                                                <?php print $template->post_content('#ed6852'); ?>
                                                            </td>
                                                            <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                                        </tr>
                                                    <?php endif; ?>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <?php if($post_id): ?>

                    <?php if($template->post_related_documents()): ?>
<!--                         <tr>
                            <td height="10" align="center" valign="top" style="line-height:8px;height:10px; border-top: none;"></td>
                        </tr> -->
                        <tr id="related-documents" style="">
                            <td align="center">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%"  style="text-align: left !important">
                                    <tr>
                                        <!-- --> <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                        <td align="left" style="font-family: Arial, sans-serif; line-height:23px;" valign="top"><h1 style="font-size: 18px; font-family: Arial, sans-serif; font-weight: bold; margin:0; color:#1a2352;">Documents</h1></td>
                                        <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                    </tr>
                                    <tr>
                                            <td height="10" width="10" align="center" valign="top" style="line-height:8px;height:10px; width: 10px;"></td>
                                            <td height="10" valign="top" style="line-height:8px;height:10px"></td>
                                            <td height="10" width="10" align="center" valign="top" style="line-height:8px;height:10px; width: 10px;"></td>
                                        </tr>
                                        <tr>
                                            <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                            <td>
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 14px;" >
                                                    <?php print $template->post_related_documents('#ed6852', '14') ?>
                                                </table>
                                            </td>
                                            <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                        </tr>
                                        <tr>
                                            <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                            <td height="20" align="center" valign="top" style="line-height:8px;height:20px"></td>
                                            <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                        </tr>

                                    </table>
                                </td>
                            </tr>
                        <?php endif; ?>
                            <?php if($template->post_related_images()): ?>
<!--                                      <tr>
                                         <td height="20" align="center" valign="top" style="line-height:8px;height:0px;"></td>
                                     </tr> -->
                                     <tr id="related-images" >
                                         <td align="center">
                                           <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                               <tr>
                                                    <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                                   <td align="left" style="font-family: Arial, sans-serif;line-height:23px;color:#1a2352;" valign="top"><h1 style="font-size: 18px; font-family: Arial, sans-serif; font-weight: bold; margin:0;">Images</h1></td>
                                                   <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                               </tr>
                                               <tr>
                                                   <td height="16" width="10" align="center" valign="top" style="line-height:8px;height:16px; width: 10px;"></td>
                                                   <td height="16" valign="top" style="line-height:8px;height:16px"></td>
                                                   <td height="16" width="10" align="center" valign="top" style="line-height:8px;height:16px; width: 10px;"></td>
                                               </tr>
                                               <tr>
                                                   <!-- --><td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                                   <td>
                                                       <table border="0" cellpadding="0" cellspacing="0" width="100%" id="image-columns" >
                                                           <?php print $template->post_related_images('149') ?>
                                                       </table>
                                                   </td>
                                                   <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                               </tr>
                                               <tr>
                                             <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                             <td height="20" align="center" valign="top" style="line-height:8px;height:20px;"></td>
                                             <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td> <!--  -->
                                         </tr>
                                     </table>
                                 </td>
                             </tr>
                         <?php endif; ?>
                         <?php if($template->post_related_links()): ?>
<!--                             <tr>
                                 <td height="10" align="center" valign="top" style="line-height:8px;height:10px; border-top: none;"></td>
                             </tr> -->
                             <tr id="related-links" >
                                 <td align="center">
                                     <table border="0" cellpadding="0" cellspacing="0" width="100%"  style="text-align: left !important">
                                         <tr>
                                             <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                             <td align="left" style="font-family: Arial, sans-serif;line-height:23px;" valign="top"><h1 style="font-size: 18px;font-family: Arial, sans-serif; font-weight: bold; margin:0; color:#1a2352">Links</h1></td>
                                             <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                         </tr>
                                         <tr>
                                             <td height="10" width="10" align="center" valign="top" style="line-height:8px;height:10px; width: 10px;"></td>
                                             <td height="10" valign="top" style="line-height:8px;height:10px"></td>
                                             <td height="10" width="10" align="center" valign="top" style="line-height:8px;height:10px; width: 10px;"></td>
                                         </tr>
                                         <tr>
                                             <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                             <td>
                                                 <table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size: 14px;">
                                                     <?php print $template->post_related_links('#ed6852', '14') ?>
                                                 </table>
                                             </td>
                                             <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                         </tr>
                                         <tr>
                                        <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                                 <td height="20" align="center" valign="top" style="line-height:8px;height:20px;"></td>
                                                 <td height="20" width="10" align="center" valign="top" style="line-height:8px;height:20px; width: 10px;"></td>
                                             </tr>
                                         </table>
                                     </td>
                                 </tr>
                             <?php endif; ?>
                    <?php endif; ?>
                </table>
            </th>
        </tr>
        <!-- <tr>
            <td height="15" align="center" valign="top" style="line-height:8px;height:15px;"></td>
        </tr> -->
    </table>
    <?php if($post_id): ?>
    <table border="0" cellpadding="0" cellspacing="0" style="background:white; width: 840px; text-align: center;">
        <tr>
            <th class="side-half info-text" width="190" style="width: 190px; font-family: Arial;font-size: 12px; background: white; vertical-align: top; ">
                <table align="center" border="0" cellpadding="0" cellspacing="0" style="height: 100%;" width="100%" id="sideTable">
                    <tr>
                        <td align="center" id="bodyCell" style="text-align: left !important">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0"  style="" width="100%" >
                                                <tr>
                                                    <td height="27" align="center" valign="top" style="line-height:8px;height:27px"></td>
                                                </tr>
                                                    <tr id="side-content">
                                                        <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>

                                                        <td class="info-text" style="font-size: 12px; color: #1a2352; line-height: 150%;font-family: Arial; font-weight:400;">
                                                            <h2 style="font-size: 18px;margin:0; padding: 0; line-height: 150%; font-weight: bold;">AB Electrolux</h2>
                                                            <span style="font-weight:normal;"><br>
                                                            St. Göransgatan 143<br>
                                                            SE-105 45 Stockholm<br>
                                                            Sweden<br>
                                                            +46 8 738 60 00 phone<br>
                                                            www.electrolux.com<br>
                                                            Vat No: SE66300000098901<br>
                                                            Reg No: 556009-4178<br></span>
                                                        </td>

                                                        <td height="20" width="15" align="center" valign="top" style="line-height:8px;height:20px; width: 15px;"></td>
                                                    </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </th>

            <th class="main-half" width="650" style="width: 650px;">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="30" width="15" align="center" valign="top" style=" width: 15px; line-height:8px;height:30px"></td>
                        <td align="center" valign="top" style="font-size: 12px; line-height: 125%; color: #ffffff; font-family: Arial;">

                                <table border="0" cellpadding="0" cellspacing="0" id="cw" style="border: none;">
                                        <tr>
                                            <td height="30" align="center" valign="top" style="line-height:8px;height:30px"></td>
                                        </tr>
                                    <tr>
                                        <td valign="top" style="width:100%; font-family: Arial;font-size: 14px; line-height: 150%; color: #595958;font-weight: 400;">Electrolux shapes living for the better by reinventing taste, care and wellbeing experiences, making life more enjoyable and sustainable for millions of people. As a leading global appliance company, we place the consumer at the heart of everything we do. Through our brands, including Electrolux, AEG, Anova, Frigidaire, Westinghouse and Zanussi, we sell more than 60 million household and professional products in more than 150 markets every year. In 2017 Electrolux had sales of SEK 122 billion and employed 56,000 people around the world. For more information go to <a href="http://www.electroluxgroup.com" style="color:#ed6852;">www.electroluxgroup.com</a></td>

                                    </tr>
                                    <tr>
                                        <td height="37" align="center" valign="top" style="line-height:8px;height:37px;"></td>
                                    </tr>
                                    <tr>
                                        <td height="1" align="center" valign="top" style="line-height:8px; height: 1px; background: #ececec;"></td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="center" valign="top" style="line-height:8px;height:30px;"></td>
                                    </tr>
                                    <tr>

                                        <td width="815" valign="top" align="center" style="font-family: Arial;font-size: 14px; line-height: 20px;"><a style="color: #1a2352; text-decoration: none;     font-weight: 400;" href="*|UNSUBSCRIBE|*">Unsubscribe</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="color: #1a2352; text-decoration: none;font-weight: 400;" href="*|MODIFY|*">Settings</a></td>
                                    </tr>
                                    <tr>
                                        <td height="45" align="center" valign="top" style="line-height:8px;height:45px"></td>
                                    </tr>
                                </table>

                        </td>
                        <td height="30" width="15" align="center" valign="top" style="width: 15px; line-height:8px;height:30px"></td>
                    </tr>
                </table>
            <?php endif; ?>
            </th>
        </tr>
    </table>
    
</center>
</body>
</html>