correct mobile adv
This commit is contained in:
@@ -37,20 +37,8 @@ if( $posts ):
|
|||||||
|
|
||||||
endif;?>
|
endif;?>
|
||||||
|
|
||||||
|
|
||||||
<div class="mob-subscript">
|
<div class="mob-subscript">
|
||||||
|
<div class="mob-block-button">
|
||||||
<div class="mob-block-button">
|
|
||||||
<a class="mob-sub-button" href="https://vetandlife.ru/subscripts"><?=vij_lang('subscript_btn', LANG_VERSION)?></a>
|
<a class="mob-sub-button" href="https://vetandlife.ru/subscripts"><?=vij_lang('subscript_btn', LANG_VERSION)?></a>
|
||||||
</div>
|
</div>
|
||||||
|
</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>
|
|
||||||
14
blocks/mobile-subscript.php
Normal file
14
blocks/mobile-subscript.php
Normal 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>
|
||||||
22
footer.php
22
footer.php
@@ -109,6 +109,28 @@
|
|||||||
|
|
||||||
<?php include get_template_directory().'/blocks/mobile-gazeta.php';?>
|
<?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>
|
<footer>
|
||||||
|
|||||||
@@ -615,12 +615,14 @@ add_action( 'init', function () {
|
|||||||
|
|
||||||
add_action( 'pre_get_posts', function ($query) {
|
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', 23 );
|
||||||
$query->set( 'posts_per_page', 9 );
|
//if ( is_category( 'arkhiv' ) ) {
|
||||||
}
|
// $query->set( 'posts_per_page', 19 );
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,13 +74,6 @@ $nn = 0;?>
|
|||||||
<?get_template_part( '/blocks/citats', null, ['subclass' => 'mob-lite']);?>
|
<?get_template_part( '/blocks/citats', null, ['subclass' => 'mob-lite']);?>
|
||||||
<?get_template_part( '/blocks/mosts', 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 -->
|
</div> <!-- end content -->
|
||||||
|
|||||||
Reference in New Issue
Block a user