add mail page subscript

This commit is contained in:
2024-04-04 21:44:28 +03:00
parent 23ce0e4c37
commit e2bb0bd68f
13 changed files with 191 additions and 89 deletions

View File

@@ -25,7 +25,6 @@ else{
<?foreach ($menu_items as $item):?> <?foreach ($menu_items as $item):?>
<li><a href="<?=$item->url?>"><?=$item->title?></a></li> <li><a href="<?=$item->url?>"><?=$item->title?></a></li>
<?endforeach?> <?endforeach?>
</ul> </ul>
</div> </div>

View File

@@ -34,7 +34,7 @@
<ul class="header-social-pets"> <ul class="header-social-pets">
<li> <li>
<a href="https://t.me/pitomcy_vetandlife" target="_blank"> <a href="https://t.me/pitomcy_vetandlife" title="Telegram" target="_blank">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/> <circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/>
<path d="M18.1707 22.2269L17.8894 26.1357C18.2918 26.1357 18.466 25.9649 18.675 25.7598L20.5613 23.9783L24.47 26.807C25.1869 27.2018 25.6919 26.9939 25.8853 26.1553L28.451 14.275L28.4517 14.2743C28.679 13.2271 28.0684 12.8176 27.37 13.0745L12.2892 18.7802C11.26 19.175 11.2756 19.7419 12.1143 19.9988L15.9698 21.1839L24.9255 15.6463C25.347 15.3705 25.7302 15.5231 25.415 15.7989L18.1707 22.2269Z" fill="#7A7A7A"/> <path d="M18.1707 22.2269L17.8894 26.1357C18.2918 26.1357 18.466 25.9649 18.675 25.7598L20.5613 23.9783L24.47 26.807C25.1869 27.2018 25.6919 26.9939 25.8853 26.1553L28.451 14.275L28.4517 14.2743C28.679 13.2271 28.0684 12.8176 27.37 13.0745L12.2892 18.7802C11.26 19.175 11.2756 19.7419 12.1143 19.9988L15.9698 21.1839L24.9255 15.6463C25.347 15.3705 25.7302 15.5231 25.415 15.7989L18.1707 22.2269Z" fill="#7A7A7A"/>
@@ -42,7 +42,7 @@
</li> </li>
<li> <li>
<a href="https://vk.com/pitomcy_vetandlife" target="_blank"> <a href="https://vk.com/pitomcy_vetandlife" target="_blank" title="ВКонтакте">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/> <circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/>
<path d="M29.579 15.855C29.719 15.39 29.579 15.049 28.917 15.049H26.724C26.166 15.049 25.911 15.344 25.771 15.668C25.771 15.668 24.656 18.387 23.076 20.15C22.566 20.663 22.333 20.825 22.055 20.825C21.916 20.825 21.714 20.663 21.714 20.198V15.855C21.714 15.297 21.553 15.049 21.088 15.049H17.642C17.294 15.049 17.084 15.307 17.084 15.553C17.084 16.081 17.874 16.203 17.955 17.691V20.919C17.955 21.626 17.828 21.755 17.548 21.755C16.805 21.755 14.997 19.026 13.924 15.902C13.715 15.295 13.504 15.05 12.944 15.05H10.752C10.125 15.05 10 15.345 10 15.669C10 16.251 10.743 19.131 13.461 22.94C15.273 25.541 17.824 26.951 20.148 26.951C21.541 26.951 21.713 26.638 21.713 26.098V24.132C21.713 23.506 21.846 23.38 22.287 23.38C22.611 23.38 23.169 23.544 24.47 24.797C25.956 26.283 26.202 26.95 27.037 26.95H29.229C29.855 26.95 30.168 26.637 29.988 26.019C29.791 25.404 29.081 24.509 28.139 23.45C27.627 22.846 26.862 22.196 26.629 21.871C26.304 21.452 26.398 21.267 26.629 20.895C26.63 20.896 29.301 17.134 29.579 15.855Z" fill="#7A7A7A"/> <path d="M29.579 15.855C29.719 15.39 29.579 15.049 28.917 15.049H26.724C26.166 15.049 25.911 15.344 25.771 15.668C25.771 15.668 24.656 18.387 23.076 20.15C22.566 20.663 22.333 20.825 22.055 20.825C21.916 20.825 21.714 20.663 21.714 20.198V15.855C21.714 15.297 21.553 15.049 21.088 15.049H17.642C17.294 15.049 17.084 15.307 17.084 15.553C17.084 16.081 17.874 16.203 17.955 17.691V20.919C17.955 21.626 17.828 21.755 17.548 21.755C16.805 21.755 14.997 19.026 13.924 15.902C13.715 15.295 13.504 15.05 12.944 15.05H10.752C10.125 15.05 10 15.345 10 15.669C10 16.251 10.743 19.131 13.461 22.94C15.273 25.541 17.824 26.951 20.148 26.951C21.541 26.951 21.713 26.638 21.713 26.098V24.132C21.713 23.506 21.846 23.38 22.287 23.38C22.611 23.38 23.169 23.544 24.47 24.797C25.956 26.283 26.202 26.95 27.037 26.95H29.229C29.855 26.95 30.168 26.637 29.988 26.019C29.791 25.404 29.081 24.509 28.139 23.45C27.627 22.846 26.862 22.196 26.629 21.871C26.304 21.452 26.398 21.267 26.629 20.895C26.63 20.896 29.301 17.134 29.579 15.855Z" fill="#7A7A7A"/>
@@ -50,10 +50,30 @@
</li> </li>
<li class="youtube-vij"><a href="https://www.youtube.com/c/ВетеринарияиЖизнь" target="_blank"><svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <li>
<a href="https://ok.ru/pitomcy.vetandlife" title="Одноклассники" target="_blank">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/> <circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.0568 26.5864C11.7002 26.478 11.3748 26.2853 11.1081 26.0245C10.8415 25.7637 10.6413 25.4424 10.5245 25.0878C9.8572 23.2549 9.65948 15.6011 10.9446 14.0902C11.3724 13.5987 11.9763 13.2961 12.6252 13.248C16.0729 12.8765 26.725 12.926 27.9484 13.3719C28.2924 13.4838 28.6068 13.6722 28.8679 13.9232C29.129 14.1741 29.33 14.481 29.456 14.8209C30.185 16.7158 30.2097 23.6016 29.3571 25.4222C29.1309 25.8961 28.7522 26.28 28.282 26.5121C26.9968 27.1561 13.7621 27.1437 12.0568 26.5864ZM17.5311 22.9948L23.7098 19.7748L17.5311 16.53V22.9948Z" fill="#7A7A7A"/> <path fill="#7A7A7A" d="M20.2,11c-2.6,0-4.7,2.1-4.7,4.7s2.1,4.7,4.7,4.7s4.7-2.1,4.7-4.7l0,0C24.8,13.1,22.8,11,20.2,11z M20.2,17.6 c-1.1,0-1.9-0.9-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.9,1.9,1.9l0,0C22.1,16.7,21.3,17.6,20.2,17.6L20.2,17.6z M21.8,24 c1.1-0.2,2.1-0.7,3-1.3c0.6-0.4,0.6-1.2,0.2-1.8s-1.2-0.6-1.8-0.2l0,0c-0.9,0.6-2,0.9-3.2,0.9c-1.1,0-2.2-0.3-3.2-0.9 c-0.6-0.4-1.4-0.3-1.8,0.2c-0.4,0.6-0.3,1.4,0.2,1.8l0,0c0.9,0.7,2,1.1,3.1,1.3l-2.7,2.8c-0.5,0.5-0.5,1.3,0,1.8 c0.5,0.5,1.3,0.5,1.8,0c0,0,0,0,0-0.1l2.7-2.5l2.7,2.7c0.5,0.5,1.3,0.4,1.8-0.1s0.5-1.2,0-1.7L21.8,24z"/>
</svg></a></li> </svg></a>
</li>
<li>
<a href="https://dzen.ru/pitomcy_vetandlife?favid=254162793" title="Дзен" target="_blank">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="19.5" stroke="#7A7A7A"/>
<g id="_Слой_1-2">
<path fill="#7A7A7A" d="M20.2,11.8c0,3.3,0.3,5.2,1.5,6.5s3.1,1.5,6.5,1.5C28.1,15.4,24.6,11.9,20.2,11.8z"/>
<path fill="#7A7A7A" d="M18.2,18.2c1.2-1.3,1.5-3.1,1.5-6.5c-4.4,0.1-7.9,3.6-8,8C15.1,19.8,17,19.5,18.2,18.2z"/>
<path fill="#7A7A7A" d="M11.8,20.2c0.1,4.4,3.6,7.9,8,8c0-3.3-0.3-5.2-1.5-6.5S15.1,20.3,11.8,20.2z"/>
<path fill="#7A7A7A" d="M28.2,20.2c-3.3,0-5.2,0.3-6.5,1.5s-1.5,3.1-1.5,6.5C24.6,28.1,28.1,24.6,28.2,20.2L28.2,20.2z"/>
</g>
<path fill="#7A7A7A" d="M20,1c10.5,0,19,8.5,19,19s-8.5,19-19,19S1,30.5,1,20S9.5,1,20,1 M20,0C9,0,0,9,0,20s9,20,20,20s20-9,20-20 S31,0,20,0z"/>
</svg></a>
</li>

View File

@@ -3,11 +3,18 @@
<a href="https://vk.com/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-vk btn_soc"></i></a> <a href="https://vk.com/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-vk btn_soc"></i></a>
<a href="https://t.me/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-telegram-plane btn_soc"></i></a> <a href="https://t.me/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-telegram-plane btn_soc"></i></a>
<a href="https://www.youtube.com/channel/UCGRWr7wG8zxFBMMKdPzYPUQ" target="_blank"><i style="color: red;" class="fab fa-youtube btn_soc"></i></a> <a class="btn_soc_ru" href="https://ok.ru/pitomcy.vetandlife" title="Одноклассники" target="_blank">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="#FFA500" d="M20.2,11c-2.6,0-4.7,2.1-4.7,4.7s2.1,4.7,4.7,4.7s4.7-2.1,4.7-4.7l0,0C24.8,13.1,22.8,11,20.2,11z M20.2,17.6 c-1.1,0-1.9-0.9-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.9,1.9,1.9l0,0C22.1,16.7,21.3,17.6,20.2,17.6L20.2,17.6z M21.8,24 c1.1-0.2,2.1-0.7,3-1.3c0.6-0.4,0.6-1.2,0.2-1.8s-1.2-0.6-1.8-0.2l0,0c-0.9,0.6-2,0.9-3.2,0.9c-1.1,0-2.2-0.3-3.2-0.9 c-0.6-0.4-1.4-0.3-1.8,0.2c-0.4,0.6-0.3,1.4,0.2,1.8l0,0c0.9,0.7,2,1.1,3.1,1.3l-2.7,2.8c-0.5,0.5-0.5,1.3,0,1.8 c0.5,0.5,1.3,0.5,1.8,0c0,0,0,0,0-0.1l2.7-2.5l2.7,2.7c0.5,0.5,1.3,0.4,1.8-0.1s0.5-1.2,0-1.7L21.8,24z"/>
</svg></a>
<!-- <div class="btn soc_vk"></div> <a class="btn_soc_ru" href="https://dzen.ru/vetandlife?favid=254162793" title="Дзен" target="_blank">
<div class="soc_btn soc_fb"></div> <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<div class="soc_btn soc_telegram"></div> <g id="_Слой_1-2">
<div class="soc_btn soc_youtube"></div> <path fill="#000000" d="M20.2,11.8c0,3.3,0.3,5.2,1.5,6.5s3.1,1.5,6.5,1.5C28.1,15.4,24.6,11.9,20.2,11.8z"/>
<div class="soc_btn soc_instagram"></div> --> <path fill="#000000" d="M18.2,18.2c1.2-1.3,1.5-3.1,1.5-6.5c-4.4,0.1-7.9,3.6-8,8C15.1,19.8,17,19.5,18.2,18.2z"/>
<path fill="#000000" d="M11.8,20.2c0.1,4.4,3.6,7.9,8,8c0-3.3-0.3-5.2-1.5-6.5S15.1,20.3,11.8,20.2z"/>
<path fill="#000000" d="M28.2,20.2c-3.3,0-5.2,0.3-6.5,1.5s-1.5,3.1-1.5,6.5C24.6,28.1,28.1,24.6,28.2,20.2L28.2,20.2z"/>
</g>
</svg></a>
</div> </div>

View File

@@ -219,17 +219,17 @@ window.yaContextCb.push(()=>{
</div> --> </div> -->
<div class="footer-qrs-pets"> <div class="footer-qrs-pets">
<div class="footer-qr-pets"> <div class="footer-qr-pets qr-telega-pets">
<img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/zen-code.svg" width="80" height="80" /> <a href="https://t.me/pitomcy_vetandlife" target="_blank"><img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qt-te-pets.svg" width="80" height="80" /></a>
<p class="vazh">«ВиЖ»<br>Дзен</p> <p class="vazh">«Питомцы»<br>Telegram</p>
</div> </div>
<div class="footer-qr-pets qr_vk"> <div class="footer-qr-pets qr_vk">
<a href="https://vk.com/pitomcy_vetandlife" target="_blank"><img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-vk-pets.svg" width="80" height="80" /></a> <a href="https://vk.com/pitomcy_vetandlife" target="_blank"><img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-vk-pets.svg" width="80" height="80" /></a>
<p class="vazh">«Питомцы»<br>ВКонтакте</p> <p class="vazh">«Питомцы»<br>ВКонтакте</p>
</div> </div>
<div class="footer-qr-pets qr-telega-pets"> <div class="footer-qr-pets">
<a href="https://t.me/pitomcy_vetandlife" target="_blank"><img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qt-te-pets.svg" width="80" height="80" /></a> <a href="https://dzen.ru/pitomcy_vetandlife?favid=254162793" target="_blank"><img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/pitomcy_dzen.svg" width="80" height="80" /></a>
<p class="vazh">«Питомцы»<br>Telegram</p> <p class="vazh">«Питомцы»<br>Дзен</p>
</div> </div>
</div> </div>
@@ -245,11 +245,18 @@ window.yaContextCb.push(()=>{
<div class="socials-footer-pets"> <div class="socials-footer-pets">
<a href="https://www.youtube.com/c/ВетеринарияиЖизнь" target="_blank"><i style="color: red;" class="fab fa-youtube"></i></a>
<a href="https://vk.com/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-vk"></i></a> <a href="https://vk.com/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-vk"></i></a>
<a href="https://t.me/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-telegram-plane"></i></a> <a href="https://t.me/pitomcy_vetandlife" target="_blank"><i style="color: #3B83B5;" class="fab fa-telegram-plane"></i></a>
<a href="https://ok.ru/pitomcy.vetandlife" title="Одноклассники" target="_blank">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="#FFA500" d="M5.85,0C2.6,0,0,2.6,0,5.85S2.6,11.7,5.85,11.7c3.25,0,5.85-2.6,5.85-5.85C11.7,2.6,9.1,0,5.85,0z
M5.8,7.3C5.8,7.3,5.8,7.3,5.8,7.3C4.35,7.2,2.9,5.75,3,4.3c0.1-1.45,1.55-2.9,3-3c1.45,0.1,2.9,1.55,3,3C8.95,5.8,7.5,7.2,5.8,7.3z"/>
<path fill="#FFA500" d="M7.8,14.4c1.45-0.3,2.85-0.9,4.05-1.8c0.8-0.55,0.8-1.65,0.2-2.4c-0.6-0.8-1.8-0.9-2.4-0.3c0,0,0,0-0.1,0.1l0,0
c-1.3,0.9-2.85,1.35-4.35,1.3c-1.5,0-3-0.4-4.25-1.3c-0.7-0.55-1.75-0.45-2.4,0.3c-0.55,0.8-0.45,1.8,0.3,2.4l0,0
c1.2,0.9,2.6,1.5,4.05,1.8l-3.6,3.7c-0.55,0.55-0.55,1.45,0,2c0.55,0.55,1.45,0.55,2,0v-0.2l3.6-3.3l3.6,3.7
c0.55,0.45,1.35,0.4,2-0.1c0,0,0,0,0,0c0.5-0.45,0.55-1.3,0.1-1.8c-0.05-0.05-0.1-0.1-0.15-0.15L7.8,14.4z"/>
</svg>
</a>
</div> </div>
</div> </div>
@@ -299,7 +306,7 @@ style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" tit
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=19"></script> <script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=20"></script>
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/main-arrow.js?ver=1"></script> <script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/main-arrow.js?ver=1"></script>
</body> </body>

View File

@@ -93,9 +93,7 @@ window.yaContextCb.push(()=>{
<?if (LANG_VERSION == 'ru'):?> <?if (LANG_VERSION == 'ru'):?>
<div class="right-info"> <?echo do_shortcode('[custom_ad slot_id="1"]');?>
<? banners_conf_display( 'vgnki_240x400' ) ?>
</div>
<div class="right-info"> <div class="right-info">
@@ -166,9 +164,7 @@ window.yaContextCb.push(()=>{
<?if (LANG_VERSION == 'ru'):?> <?if (LANG_VERSION == 'ru'):?>
<div class="mobile-info"> <?echo do_shortcode('[custom_ad slot_id="3"]');?>
<? banners_conf_display( 'vgnki_240x200' ) ?>
</div>
<div class="mobile-info"> <div class="mobile-info">
<? banners_conf_display( 'right_240x200_1' ) ?> <? banners_conf_display( 'right_240x200_1' ) ?>
@@ -233,10 +229,6 @@ window.yaContextCb.push(()=>{
</div> --> </div> -->
<div id="footer_qr"> <div id="footer_qr">
<div class="footer_qr">
<img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/zen-code.svg" width="100" height="100" />
<p class="vazh">"ВиЖ"<br>Дзен</p>
</div>
<div class="footer_qr qr_vk"> <div class="footer_qr qr_vk">
<img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-vk.svg" width="100" height="100" /> <img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-vk.svg" width="100" height="100" />
<p class="vazh">"ВиЖ"<br>ВКонтакте</p> <p class="vazh">"ВиЖ"<br>ВКонтакте</p>

View File

@@ -59,18 +59,33 @@ add_post_type_support('post', 'page-attributes');
//require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php'; //require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
//[_site_admin_email]
/**
function vij_send_smtp_email( PHPMailer $phpmailer ) { function vij_send_smtp_email( PHPMailer $phpmailer ) {
$phpmailer->isSMTP(); $phpmailer->isSMTP();
$phpmailer->Host = 'smtp.yandex.ru'; $phpmailer->Host = 'smtp.yandex.ru';
$phpmailer->SMTPAuth = true; $phpmailer->SMTPAuth = true;
$phpmailer->Port = 465; $phpmailer->Port = 465;
$phpmailer->Username = 'info@vetandlife.ru'; $phpmailer->Username = 'info@vetandlife.ru';
$phpmailer->Password = 'B9c8P6y9'; $phpmailer->Password = 'uzpcwqbddekbwnms'; //'B9c8P6y9';
$phpmailer->SMTPSecure = 'ssl'; $phpmailer->SMTPSecure = 'ssl';
$phpmailer->From = 'info@vetandlife.ru'; $phpmailer->From = 'info@vetandlife.ru';
$phpmailer->FromName = 'Ветеринария и жизнь'; $phpmailer->FromName = 'Ветеринария и жизнь';
}*/
function vij_send_smtp_email( PHPMailer $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'mail.vetandlife.ru';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 465;
$phpmailer->Username = 'news@mail.vetandlife.ru';
$phpmailer->Password = 'hky~qupCAUYSn';
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->From = 'news@mail.vetandlife.ru';
$phpmailer->FromName = 'Ветеринария и жизнь';
} }
add_action( 'phpmailer_init', 'vij_send_smtp_email' ); add_action( 'phpmailer_init', 'vij_send_smtp_email' );
db_config(DB_NAME, 'mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWORD); db_config(DB_NAME, 'mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWORD);

View File

@@ -11,7 +11,7 @@
<?if (defined('TESTMODE') and TESTMODE == 1):?> <?if (defined('TESTMODE') and TESTMODE == 1):?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3"> <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3">
<?else:?> <?else:?>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=390"> <link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=400">
<?endif?> <?endif?>
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet"> <link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
<!--<link href="<?php echo get_stylesheet_directory_uri()?>/pub/fontawesome.css" rel="stylesheet">--> <!--<link href="<?php echo get_stylesheet_directory_uri()?>/pub/fontawesome.css" rel="stylesheet">-->
@@ -49,6 +49,32 @@
<!-- Yandex.RTB --> <!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script> <script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script> <script src="https://yandex.ru/ads/system/context.js" async></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5TZNL954');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5TZNL954"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- Top.Mail.Ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "3493038", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
if (d.getElementById(id)) return;
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
ts.src = "https://top-fwz1.mail.ru/js/code.js";
var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "tmr-code");
</script>
<noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3493038;js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
<!-- /Top.Mail.Ru counter -->
</head> </head>
<body> <body>

View File

@@ -7,27 +7,50 @@ get_header();?>
<h1 id="mainpage-title">Подписка на рассылку</h1> <h1 id="mainpage-title">Подписка на рассылку</h1>
<div id="fulltext"> <div id="fulltext">
<? // режим подтверждение подписки
if (isset( $_GET['id'] )){
<?if (isset($_POST['email'])) { $sanitized_id = sanitize_text_field( $_GET['id'] );
$sql_update = "UPDATE {$wpdb->prefix}subusers SET status = 1 WHERE hash = '$sanitized_id'";
$result = $wpdb->get_results( $sql_update );
echo '<p>Спасибо, мы включили Ваш e-mail!</p>
<p>Наши письма могут оказаться в разделе "Рассылки" Вашего почтового приложения или сайта.</p>';
} elseif (isset($_POST['email'])) {
$email = strtolower(trim($_POST['email'])); $email = strtolower(trim($_POST['email']));
$email = sanitize_text_field($email);
if (filter_var($email, FILTER_VALIDATE_EMAIL)) { if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
$hash = md5('775+'.$email); $hash = md5('775+'.$email);
$date_insert = date('Y-m-d H:i:s'); $date_insert = date('Y-m-d H:i:s');
$add_sub_sql = "INSERT INTO {$wpdb->prefix}subusers (mail, status, hash, date) VALUES ('$email', '1', '$hash', '$date_insert')"; $add_sub_sql = "INSERT INTO {$wpdb->prefix}subusers (mail, status, hash, date) VALUES ('$email', '0', '$hash', '$date_insert')";
$result = $wpdb->get_results($add_sub_sql);
$hash_link = home_url().'/subscript?id='.$hash;
$to = $email;
$subject = 'Подписка на рассылку ВиЖ';
$message = "
Здравствуйте!\n
Для подтверждения подписки на нашу рассылку перейдите по ссылке ниже\n
$hash_link.\n\n
Если вы не отправляли заявку просто проигнорируйте это письмо.";
$headers = array('Content-Type: text/plain; charset=UTF-8');
// Отправка письма
wp_mail($to, $subject, $message, $headers);
echo '<p>Благодарим за интерес к нашему изданию!</p>
<p>На Вашу почту отправлено письмо для подтверждения подписки.</p>';
$result = $wpdb->get_results($add_sub_sql); ?> } else { ?>
<p>Спасибо, мы включили Ваш e-mail!</p>
<p>Наши письма могут оказаться в разделе "Рассылки" Вашего почтового приложения или сайта.</p>
<? } else { ?>
<p>Мы не можем добавить Вас в нашу рассылку.</p> <p>Мы не можем добавить Вас в нашу рассылку.</p>
<p>Адрес электронной почты недействительный.</p> <p>Адрес электронной почты недействительный.</p>

View File

@@ -5,7 +5,7 @@ body {
.vij-header{ .vij-header{
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10%; gap: 5%;
max-width: 100%; max-width: 100%;
margin-left: 18px; margin-left: 18px;
padding: 4px 8px 0 2px; padding: 4px 8px 0 2px;
@@ -247,6 +247,14 @@ ul.pets-menu-left{
background: url(/wp-content/themes/vij/pub/icons/gumburger.svg) no-repeat; background: url(/wp-content/themes/vij/pub/icons/gumburger.svg) no-repeat;
width: 20px; width: 20px;
height: 20px; height: 20px;
cursor: pointer;
}
.toggle-btn-pets{
background: url(/wp-content/themes/vij/pub/icons/lupa.svg) no-repeat;
width: 20px;
height: 20px;
cursor: pointer;
} }

View File

@@ -17,6 +17,8 @@ var closed_mobile_rubrics_menu = document.getElementById('closed_mobile_rubrics_
var mobile_rubrics_menu = document.getElementById('mobile_rubrics_menu'); var mobile_rubrics_menu = document.getElementById('mobile_rubrics_menu');
var rubrics_back = document.getElementById('rubrics_back'); var rubrics_back = document.getElementById('rubrics_back');
var srch_pets = document.getElementById('toggle-btn-pets');
closed_menu.onclick = function() { closed_menu.onclick = function() {
mobile_main_menu.style.display = 'none'; mobile_main_menu.style.display = 'none';
@@ -40,3 +42,8 @@ rubrics_back.onclick = function() {
toggle_nav.onclick = function() { toggle_nav.onclick = function() {
mobile_main_menu.style.display = 'block'; mobile_main_menu.style.display = 'block';
}; };
srch_pets.onclick = function() {
window.location.href = 'https://vetandlife.ru?s'; // Замените на нужный URL
};

View File

@@ -74,27 +74,18 @@
<div style="margin-top: 12px;"class="aQKhHt2390"></div> <!-- Yandex.RTB R-A-4145099-6 -->
<div id="yandex_rtb_R-A-4145099-6"></div>
<script> <script>
window.k_init = window.k_init || []; window.yaContextCb.push(()=>{
k_init.push({ Ya.Context.AdvManager.render({
id: 'aQKhHt2390', "blockId": "R-A-4145099-6",
type: 'bn', "renderTo": "yandex_rtb_R-A-4145099-6"
domain: 'cchdbond.com', })
refresh: false, })
next: 0
});
var s = document.createElement('script');
s.setAttribute('async', true);
s.setAttribute('charset', 'utf-8');
s.setAttribute('data-cfasync', false);
s.src = 'https://cchdbond.com/qae0820f.js';
document.head && document.head.appendChild(s);
</script> </script>
<?php include get_template_directory().'/blocks/yets.php';?> <?php include get_template_directory().'/blocks/yets.php';?>
<div id="tags"> <div id="tags">

View File

@@ -82,9 +82,13 @@ if ( $pets_cat ){
<div id="fulltext"> <div id="fulltext">
<h1 class="post-h1"><?php wp_title('');?></h1> <h1 class="post-h1"><?php wp_title('');?></h1>
<?$author = get_the_author(); <?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?> if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):
$author_bio = get_the_author_meta('description', $author_id);?>
<div class="post_author"> <div class="post_author">
Автор: <?=the_author_posts_link()?> Автор: <?=the_author_posts_link()?>
<?if (!empty($author_bio)):?>
<div class="post_author_sub"><?=$author_bio?></div>
<?endif?>
</div> </div>
<?endif?> <?endif?>
@@ -124,29 +128,18 @@ if ( $pets_cat ){
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> --> <!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
<?//endwhile;?> <?//endwhile;?>
<!-- Yandex.RTB R-A-4145099-6 -->
<div id="yandex_rtb_R-A-4145099-6"></div>
<div style="margin-top: 12px;"class="aQKhHt2390"></div>
<script> <script>
window.k_init = window.k_init || []; window.yaContextCb.push(()=>{
k_init.push({ Ya.Context.AdvManager.render({
id: 'aQKhHt2390', "blockId": "R-A-4145099-6",
type: 'bn', "renderTo": "yandex_rtb_R-A-4145099-6"
domain: 'cchdbond.com', })
refresh: false, })
next: 0
});
var s = document.createElement('script');
s.setAttribute('async', true);
s.setAttribute('charset', 'utf-8');
s.setAttribute('data-cfasync', false);
s.src = 'https://cchdbond.com/qae0820f.js';
document.head && document.head.appendChild(s);
</script> </script>
<?php include get_template_directory().'/blocks/yets.php';?> <?php include get_template_directory().'/blocks/yets.php';?>
<div id="tags"> <div id="tags">

View File

@@ -1878,6 +1878,10 @@ a{
margin-bottom: 14px; margin-bottom: 14px;
} }
.post_author_sub{
font-style: italic;
}
#form_subscript{ #form_subscript{
margin-bottom: 32px; margin-bottom: 32px;
} }
@@ -2104,7 +2108,7 @@ a{
.btn_soc{ .btn_soc{
margin-right: 18px; margin-right: 18px;
padding: 10px; padding: 12px;
border-radius: 50%; border-radius: 50%;
border: 1px solid #D5D5D6; border: 1px solid #D5D5D6;
} }
@@ -2113,6 +2117,12 @@ a{
margin-left: 12px; margin-left: 12px;
} }
.btn_soc_ru{
margin-right: 18px;
border-radius: 50%;
border: 1px solid #D5D5D6;
}
/*.rating{ /*.rating{
border-radius: 50%; border-radius: 50%;
@@ -2150,7 +2160,7 @@ a{
.btn_soc{ .btn_soc{
margin-right: 18px; margin-right: 18px;
padding: 10px; padding: 12px;
border-radius: 50%; border-radius: 50%;
border: 1px solid #D5D5D6; border: 1px solid #D5D5D6;
} }
@@ -2400,6 +2410,10 @@ span.rub_back_title{
color: #2D9CDB; color: #2D9CDB;
} }
.promo-poll{
margin-bottom: 22px;
}
.promo-poll a{ .promo-poll a{
color: #2D9CDB; color: #2D9CDB;
} }