add subscripts pages

This commit is contained in:
2023-05-13 00:33:13 +03:00
parent aa220a02e0
commit 83a2fcaa32
6 changed files with 127 additions and 42 deletions

View File

@@ -4,7 +4,7 @@
<div class="right_title"><?=vij_lang('email_title', LANG_VERSION)?></div> <div class="right_title"><?=vij_lang('email_title', LANG_VERSION)?></div>
<div id="subscript-mail"> <div id="subscript-mail">
<form class="form-right" action="https://login.sendpulse.com/forms/simple/u/eyJ1c2VyX2lkIjo3NjMwNTYzLCJhZGRyZXNzX2Jvb2tfaWQiOjIyNjM5NCwibGFuZyI6InJ1In0=" method="post"> <form class="form-right" action="https://vetandlife.ru/subscript" method="post">
<input сlass="frm_mail" type="email" required="" name="email" placeholder="<?=vij_lang('your_mail', LANG_VERSION)?>"> <input сlass="frm_mail" type="email" required="" name="email" placeholder="<?=vij_lang('your_mail', LANG_VERSION)?>">
<input type="hidden" name="sender" value="info@vetandlife.ru"> <input type="hidden" name="sender" value="info@vetandlife.ru">
<button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION)?></button> <button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION)?></button>

View File

@@ -32,7 +32,7 @@ if( $posts ):
<div class="moread_card" id="moread_<?=$nr?>"> <div class="moread_card" id="moread_<?=$nr?>">
<?$imgurl = IMGSERVER.'news/512x340/'.str_replace('https://vetandlife.ru/wp-content/uploads/', '', get_the_post_thumbnail_url($post, 'full'))?> <?$imgurl = IMGSERVER.'news/512x340/'.str_replace('https://vetandlife.ru/wp-content/uploads/', '', get_the_post_thumbnail_url($post, 'full'))?>
<img src="<?php echo $imgurl;?>" alt="<?the_title();?>"> <img src="<?php echo $imgurl;?>?ver=1" alt="<?the_title();?>">
<div class="moread_title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></div> <div class="moread_title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></div>
<div class="moread_date"><?the_time('j F Y, G:i');?></div> <div class="moread_date"><?the_time('j F Y, G:i');?></div>
</div> </div>

View File

@@ -60,7 +60,7 @@
<div class="right_title"><?=vij_lang('email_title', LANG_VERSION);?></div> <div class="right_title"><?=vij_lang('email_title', LANG_VERSION);?></div>
<div id="subscript-mail"> <div id="subscript-mail">
<form class="form-right" action="https://login.sendpulse.com/forms/simple/u/eyJ1c2VyX2lkIjo3NjMwNTYzLCJhZGRyZXNzX2Jvb2tfaWQiOjIyNjM5NCwibGFuZyI6InJ1In0=" method="post"> <form class="form-right" action="https://vetandlife.ru/subscript" method="post">
<input сlass="frm_mail" type="email" required name="email" placeholder="<?=vij_lang('your_mail', LANG_VERSION);?>"> <input сlass="frm_mail" type="email" required name="email" placeholder="<?=vij_lang('your_mail', LANG_VERSION);?>">
<input type="hidden" name="sender" value="info@vetandlife.ru"> <input type="hidden" name="sender" value="info@vetandlife.ru">
<button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION);?></button> <button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION);?></button>
@@ -71,13 +71,13 @@
<?if (LANG_VERSION == 'ru'):?> <?if (LANG_VERSION == 'ru'):?>
<div class="right-info"> <div class="right-info">
<a href="https://vetandlife.ru/parthers/kliniko-diagnosticheskij-centr-fgbu-vgnki-okazyvaet-polnyj-spektr-uslug-po-podgotovke-pitomca-dlya-puteshestviya-za-granicu/"> <a href="https://vetandlife.ru/parthers/ispytatelnyj-centr-fgbu-vgnki-provodit-razlichnye-vidy-issledovanij-po-vyyavleniju-falsifikacii-molochnoj-produkcii?erid=LatgBbd7S">
<img src="https://vetandlife.ru/wp-content/uploads/2023/03/vgnki_240x400_march23.jpg" width="240" height="400" /> <img src="https://vetandlife.ru/wp-content/uploads/2023/05/vgnki_240x400_may23.jpg" width="240" height="400" />
</a> </a>
</div> </div>
<div class="right-info"> <div class="right-info">
<a href="https://roskachestvo.gov.ru/organic/contest/" target="_blank"> <a href="https://roskachestvo.gov.ru/organic/contest/?erid=LatgBhSgx" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" /> <img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" />
</a> </a>
</div> </div>
@@ -146,13 +146,13 @@
<div class="mobile-info"> <div class="mobile-info">
<a href="https://vetandlife.ru/parthers/kliniko-diagnosticheskij-centr-fgbu-vgnki-okazyvaet-polnyj-spektr-uslug-po-podgotovke-pitomca-dlya-puteshestviya-za-granicu/"> <a href="https://vetandlife.ru/parthers/ispytatelnyj-centr-fgbu-vgnki-provodit-razlichnye-vidy-issledovanij-po-vyyavleniju-falsifikacii-molochnoj-produkcii?erid=LatgBbd7S">
<img src="https://vetandlife.ru/wp-content/uploads/2023/03/vgnki_240x200_march23.jpg" width="240" height="200" /> <img src="https://vetandlife.ru/wp-content/uploads/2023/05/vgnki_240x200_may23.jpg" width="240" height="200" />
</a> </a>
</div> </div>
<div class="mobile-info"> <div class="mobile-info">
<a href="https://roskachestvo.gov.ru/organic/contest/" target="_blank"> <a href="https://roskachestvo.gov.ru/organic/contest/?erid=LatgBhSgx" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" /> <img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" />
</a> </a>
</div> </div>
@@ -254,38 +254,28 @@
<?=vij_lang('copyright_text', LANG_VERSION);?> <?=vij_lang('copyright_text', LANG_VERSION);?>
</div> </div>
<div><!--LiveInternet logo--><a href="https://www.liveinternet.ru/click"
target="_blank"><img src="https://counter.yadro.ru/logo?27.1"
title="LiveInternet: number of visitors and pageviews is shown"
alt="" style="border:0" width="88" height="120"/></a><!--/LiveInternet--></div>
<?if (is_page(20548)):?> <div><!--LiveInternet logo--><a href="https://www.liveinternet.ru/click"
<div style="margin-left: 12px;"> target="_blank"><img src="https://counter.yadro.ru/logo?12.1"
<!-- Yandex.Metrika informer --> title="LiveInternet: number of pageviews for 24 hours, of visitors for 24 hours and for today is shown"
alt="" style="border:0" width="88" height="31"/></a><!--/LiveInternet-->
</div>
<div style="margin-left: 12px;">
<!-- Yandex.Metrika informer -->
<a href="https://metrika.yandex.ru/stat/?id=56480275&amp;from=informer" <a href="https://metrika.yandex.ru/stat/?id=56480275&amp;from=informer"
target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/56480275/3_1_FFFFFFFF_EFEFEFFF_0_pageviews" target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/56480275/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="56480275" data-lang="ru" /></a> style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="56480275" data-lang="ru" /></a>
<!-- /Yandex.Metrika informer --></div> <!-- /Yandex.Metrika informer --></div>
<?endif?>
</div> </div>
</div>
</footer> </footer>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(56480275, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/56480275" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<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=19"></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>

View File

@@ -9,7 +9,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=355"> <link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=360">
<?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,7 +49,23 @@
</head> </head>
<body> <body>
<!--LiveInternet counter--><script> <!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(56480275, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/56480275" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<!--LiveInternet counter--><script>
new Image().src = "https://counter.yadro.ru/hit?r"+ new Image().src = "https://counter.yadro.ru/hit?r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"": escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
@@ -59,7 +75,6 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
<?if (defined('TESTMODE') and TESTMODE == 1):?> <?if (defined('TESTMODE') and TESTMODE == 1):?>
<style> <style>
@@ -90,11 +105,11 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
<?else:?> <?else:?>
<div id="mainbanner"> <div id="mainbanner">
<a href=" https://vetandlife.ru/reklama-special/"><img src ="https://vetandlife.ru/wp-content/uploads/2022/04/2000x125_64c.gif?ver=2" /></a> <a href=" https://vetandlife.ru/reklama-special?erid=LatgBVedN"><img src ="https://vetandlife.ru/wp-content/uploads/2022/04/2000x125_64c.gif?ver=2" /></a>
</div> </div>
<div id="mobmainbanner"> <div id="mobmainbanner">
<a href=" https://vetandlife.ru/reklama-specialу"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif?ver=2" /></a> <a href=" https://vetandlife.ru/reklama-special?erid=LatgBVedN"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif?ver=2" /></a>
</div> </div>

45
page-subscript.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
get_header();?>
<div id="content">
<h1 id="mainpage-title">Подписка на рассылку</h1>
<div id="fulltext">
<?if (isset($_POST['email'])) {
$email = trim($_POST['email']);
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
$hash = md5('775+'.$email);
$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')";
$result = $wpdb->get_results($add_sub_sql); ?>
<p>Спасибо, мы включили Ваш e-mail!</p>
<p>Наши письма могут оказаться в разделе "Рассылки" Вашего почтового приложения или сайта.</p>
<? } else { ?>
<p>Мы не можем добавить Вас в нашу рассылку.</p>
<p>Адрес электронной почты недействительный.</p>
<? }
}?>
</div>
</div>
<?php get_footer();

View File

@@ -556,6 +556,41 @@ a{
} }
.button-group {
display: flex;
justify-content: space-between;
align-items: center;
}
.button-group-button {
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
color: #fff;
border: none;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.yes-button {
}
.no-button {
}
.yes-button:hover, .no-button:hover {
opacity: 0.8;
}
Этот код создаст группу кнопок, которые будут размещены в одной линии, в соответствии с указанными стилями. Кнопки будут иметь разные фоновые цвета и эффект наведения.
.orange_block a{ .orange_block a{