<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title><?=$title?></title>
    </head> 
    <body>
    <table width="100%" style="border-collapse:collapse;margin:0;table-layout:fixed;text-align:center" cellspacing="0" cellpadding="0" border="0">
<tbody>
    <tr>
        <td align="center">
            <table width="600" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0" align="center">
                <tbody>
                    <tr>
                        <td>
                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td width="100%" style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" bgcolor="<<?=$background_logo?>">
                                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td width="20" style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" bgcolor="<?=$background_logo?>">&nbsp;</td>
                                                        <td style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" bgcolor="<?=$backgroud_logo?>">
                                                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" height="100%" cellspacing="0" cellpadding="0" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15" colspan="2">&nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="48%" style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="26" align="left">
                                                                        <a href="<?=$mainlink?>" target="_blank">
                                                                        <img width="210" style="margin:0;background-color:<?=$background_logo?>;border:0;font-size:0px;line-height:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;outline:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;text-decoration:none;width:100%;max-width:210px" src="<?=$logo?>" alt="<?=$logoname?>"> </a>
                                                                        </td>
                                                                        <td width="52%" valign="middle" style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="26" align="right">
                                                                            <table style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="background-color:<?=$background_logo?>;color:#fff;font-family:Arial,sans-serif;font-size:12px;letter-spacing:1px;line-height:14px;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="right">
                                                                                            <a style="color:#000000;font-family:Arial,sans-serif;font-size:14px;letter-spacing:1px;line-height:14px;text-decoration:none" href="<?=$mainlink?>" target="_blank"><b>ГЛАВНОЕ&nbsp;ЗА&nbsp;<?=$date?></b></a>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15" colspan="2">&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                        <td width="20" style="background-color:<?=$background_logo?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" bgcolor="<?=$background_logo?>">&nbsp;</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="20">&nbsp;
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed;min-width:600px" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td width="20" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">&nbsp;</td>
                                        <td width="100%" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">
                                        <?foreach($items as $item):?>
                                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td width="38%" valign="top" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="left">
                                                            <div style="max-width:<?=$news_img_w?>px;min-width:<?=$news_img_w?>px">
                                                            <?if (has_post_thumbnail($item['ID'])):?>
                                                                <a style="border:0;outline:0;text-decoration:none" href="<?=get_permalink($item['ID']);?>" target="_blank">
                                                                     <img width="<?=$news_img_w?>" height="<?=$news_img_h?>" tyle="margin:0;background-color:#eaeaea;border:0;font-family:Arial,sans-serif;font-size:13px;line-height:14px;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;outline:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;text-decoration:none;width:100%" src="<?=get_the_post_thumbnail_url($item['ID'], 'subscripts')?>" alt="<?=$item['post_title']?>">
                                                                </a>
                                                            <?endif?>    
                                                            </div>
                                                        </td>
                                                        <td width="62%" valign="top" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">
                                                                    <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td width="5" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" rowspan="3">&nbsp;</td>
                                                                                <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="left">
                                                                                    <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed;text-align:left" cellspacing="0" cellpadding="0" border="0">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td style="font-family:Arial,sans-serif;font-size:14px;line-height:20px;border:0;outline:0;text-decoration:none">
                                                                                    <a style="color:<?=$text_color?>;font-family:Arial,sans-serif;font-size:22px;line-height:120%;border:0;outline:0;text-decoration:none" href="<?=get_permalink($item['ID'])?>" target="_blank" ><?=$item['post_title']?></a>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15">&nbsp;</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="color:<?=$text_color?>;font-family:Arial,sans-serif;font-size:10px;line-height:14px;border:0;outline:0;text-decoration:none;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="left"><a style="width:110px;height:35px;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;border:0;outline:0;text-decoration:none;letter-spacing:0.8px" href="<?=get_permalink($item['ID'])?>" target="_blank">
                                                                                    <img width="110" style="display:block;border:0" src="<?=PUBLINK?>readmore.png" height="35" border="0"></a>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="10" colspan="2">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="1" colspan="2" bgcolor="#eaeaea">&nbsp;</td>
                                            </tr>
                                            <tr>
                                            <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="10" colspan="2">&nbsp;</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <?endforeach?>
                                </td>
                                <td width="20" style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">&nbsp;</td></tr></tbody></table>
                                <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                    <tr>
                                        <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                            <table width="200" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td style="font-family:Arial,sans-serif;font-size:10px;line-height:14px;color:<?=$styles['color_btn_more']?>;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;border:0;outline:0;text-decoration:none" height="40" bgcolor="<?=$styles['back_btn_more']?>" align="center">
                                                            <a style="font-family:Arial,sans-serif;font-size:15px;line-height:120%;color:<?=$styles['color_btn_more']?>;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;border:0;outline:0;text-decoration:none;letter-spacing:0.8px" href="<?=$mainlink?>" target="_blank" >БОЛЬШЕ&nbsp;НОВОСТЕЙ</a>
                                                        </td>
                                                        
     
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                    <tr>
                                        <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                            <table width="200" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td style="font-family:Arial,sans-serif;font-size:10px;line-height:14px;color:<?=$styles['color_btn_more']?>;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;border:0;outline:0;text-decoration:none" height="40" bgcolor="<?=$styles['back_btn_more']?>" align="center">
                                                            <a style="font-family:Arial,sans-serif;font-size:15px;line-height:120%;color:<?=$styles['color_btn_more']?>;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;border:0;outline:0;text-decoration:none;letter-spacing:0.8px" href="<?=$sublink?>" target="_blank">ПОДПИСАТЬСЯ</a>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                    <td style="font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="25">&nbsp;</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>


                    


                            
                            <table width="600" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" bgcolor="<?=$background_footer?>">
                                            <table width="100%" style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td style="background-color:#<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                                            <div style="color:#b2b2b2;font-family:Arial,sans-serif;font-size:13px;line-height:120%"><a href="https://yandex.ru/news/?favid=254162793"><img width="125" src="<?=PUBLINK?>yn.png"></a></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="5">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                                            <div style="color:#b2b2b2;font-family:Arial,sans-serif;font-size:13px;line-height:120%"><b><a style="border:0;outline:0;text-decoration:none;color:#666666;" href="https://yandex.ru/news/?favid=254162793">Подписывайтесь на наши новости</a></b></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="10">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                                            <table style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="10" style="background-color:#eaeaea;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">&nbsp;</td>
                                                            <?foreach ($soc as $s):?>
                                                                <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">
                                                                    <a style="border:0;outline:0;text-decoration:none" href="<?=$s['link']?>" target="_blank">
                                                                    <img width="36" height="36" style="margin:0;border:0;font-size:0px;line-height:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;outline:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;text-decoration:none" src="<?=$s['img']?>"></a>
                                                                </td>
                                                                <td width="10" style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">&nbsp;</td>
                                                            <?endforeach?>
                                                                
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                            </tr>
                                            <tr>
                                                <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="8">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="5">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                                    <table style="border-collapse:collapse;font-size:0px;line-height:0;table-layout:fixed" cellspacing="0" cellpadding="0" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td width="10" style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">&nbsp;</td>
                                                                <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0">
                                                                    <div style="color:#b2b2b2;font-family:Arial,sans-serif;font-size:13px;line-height:120%">
                                                                        <a style="border:0;color:#939393;font-family:Arial,sans-serif;font-size:13px;line-height:120%;outline:0;text-decoration:none" href="<?=$unsubscribe?>" target="_blank">
                                                                            <span style="color:#939393">Отписаться от рассылки</span>
                                                                        </a>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="5">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" align="center">
                                                        <div style="color:#b2b2b2;font-family:Arial,sans-serif;font-size:13px;line-height:120%"><?=$year?> © «Ветеринария и жизнь», <a style="color:#939393;text-decoration:none;"href="https://vetandlife.ru">vetandlife.ru</a></div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="background-color:<?=$background_footer?>;font-size:0px;line-height:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0" height="15">&nbsp;</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </td>
</tr>
</tbody>
</body>
</html>        
