correct mobile adv

This commit is contained in:
2021-12-21 15:44:24 +03:00
parent d3f8de46ef
commit f4729c8193
5 changed files with 44 additions and 25 deletions

View File

@@ -37,20 +37,8 @@ if( $posts ):
endif;?>
<div class="mob-subscript">
<div class="mob-block-button">
<a class="mob-sub-button" href="https://vetandlife.ru/subscripts"><?=vij_lang('subscript_btn', LANG_VERSION)?></a>
</div>
<div class="right_title"><?=vij_lang('email_title', LANG_VERSION)?></div>
<div id="subscript-mail">
<form class="form-right" action="https://login.sendpulse.com/forms/simple/u/eyJ1c2VyX2lkIjo3NjMwNTYzLCJhZGRyZXNzX2Jvb2tfaWQiOjIyNjM5NCwibGFuZyI6InJ1In0=" method="post">
<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">
<button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION)?></button>
</form>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="mob-subscript">
<div class="right_title"><?=vij_lang('email_title', LANG_VERSION)?></div>
<div id="subscript-mail">
<form class="form-right" action="https://login.sendpulse.com/forms/simple/u/eyJ1c2VyX2lkIjo3NjMwNTYzLCJhZGRyZXNzX2Jvb2tfaWQiOjIyNjM5NCwibGFuZyI6InJ1In0=" method="post">
<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">
<button class="frm_submit"><?=vij_lang('email_btn', LANG_VERSION)?></button>
</form>
</div>
</div>

View File

@@ -110,6 +110,28 @@
<?php include get_template_directory().'/blocks/mobile-gazeta.php';?>
<div class="mobile-info">
<a href="https://www.youtube.com/channel/UCOXOjXmMNl8eVO4ldrv5c5Q" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/melano-live.png" width="240" height="200" />
</a>
</div>
<div class="mobile-info">
<a href="https://vetandlife.ru/category/sdelano-chestno/?utm_medium=banner&utm_campaign=mobile&utm_source=site" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/fair_240x200.jpg" width="240" height="200" />
</a>
</div>
<div class="mobile-info">
<a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_240x200.jpg" width="240" height="200" />
</a>
</div>
<?php include get_template_directory().'/blocks/mobile-subscript.php';?>
<footer>

View File

@@ -615,12 +615,14 @@ add_action( 'init', function () {
add_action( 'pre_get_posts', function ($query) {
if ( ! is_admin() && $query->is_main_query() ) {
if ( ! is_admin() && $query->is_main_query() && is_category() ) {
// не админка и основной цикл страницы
if ( is_category( 'arkhiv' ) ) {
$query->set( 'posts_per_page', 9 );
}
$query->set( 'posts_per_page', 23 );
//if ( is_category( 'arkhiv' ) ) {
// $query->set( 'posts_per_page', 19 );
// }
}

View File

@@ -74,13 +74,6 @@ $nn = 0;?>
<?get_template_part( '/blocks/citats', null, ['subclass' => 'mob-lite']);?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<div class="mobile-info">
<a href="https://www.youtube.com/channel/UCOXOjXmMNl8eVO4ldrv5c5Q" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/melano-live.png" width="240" height="200" />
</a>
</div>
</div> <!-- end content -->