correct single 3 footer
This commit is contained in:
49
blocks/arh_more.php
Normal file
49
blocks/arh_more.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$posts = get_posts( array(
|
||||||
|
'posts_per_page' => -1 ,
|
||||||
|
'category' => 3, // 19 - архив газеты,
|
||||||
|
'year' => $numbers_year,
|
||||||
|
'orderby' => 'date',
|
||||||
|
'post__not_in' => array (get_the_ID()),
|
||||||
|
'order' => 'DESC',
|
||||||
|
'post_type' => 'post',
|
||||||
|
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||||
|
) );
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<?if (count($posts) > 0):?>
|
||||||
|
|
||||||
|
<div class="numbers-year-title">Архив выпусков, <?=$numbers_year?></div>
|
||||||
|
|
||||||
|
<div class="mini-card-block">
|
||||||
|
|
||||||
|
<?foreach($posts as $post):
|
||||||
|
setup_postdata( $post );
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<?$curr_number = number_info(get_the_title());?>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="mini-card-number">
|
||||||
|
<?if ( has_post_thumbnail() ) :?>
|
||||||
|
<div class="mini-card-img">
|
||||||
|
<a href="<?the_permalink();?>"><img class="mini-card-number-img" width="147" style="width: 147px;" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>"></a>
|
||||||
|
<?if( has_tag( 'видео' ) ):?>
|
||||||
|
<span class="play-card"></span>
|
||||||
|
<?endif?>
|
||||||
|
</div>
|
||||||
|
<?endif?>
|
||||||
|
<h2 class="mini-card-number-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php endforeach;?>
|
||||||
|
|
||||||
|
</div> <!--//end minicard block -->
|
||||||
|
|
||||||
|
<?endif?>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
||||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=82">
|
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=83">
|
||||||
<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">
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
||||||
|
|||||||
29
single-3.php
29
single-3.php
@@ -45,34 +45,17 @@ get_header();?>
|
|||||||
<?endif?>
|
<?endif?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="promo-agregators">
|
|
||||||
<p>Свежие отраслевые новости на нашем канале в <span class="promo-telega"><a href="https://t.me/ViZHuvizh" target="_blank">Telegram</a></span></p>
|
|
||||||
<p>Добавьте «Ветеринарию и жизнь» в избранное в <a href="https://yandex.ru/news/?favid=254162793" target="_blank"><span style="color:red; font-weight: bold;">Я</span><span style="font-weight: bold; color:black;">НДЕКС.НОВОСТИ</span></a></p>
|
|
||||||
</div>
|
|
||||||
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
|
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
|
||||||
<?//endwhile;?>
|
<?//endwhile;?>
|
||||||
|
|
||||||
<?php include get_template_directory().'/blocks/yets.php';?>
|
<?php
|
||||||
|
$numbers_year = 2021;
|
||||||
<div id="tags">
|
include get_template_directory().'/blocks/arh_more.php';
|
||||||
<?php the_tags();?>
|
?>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="post_panel_info">
|
|
||||||
<div class="post_panel_info_sub">
|
|
||||||
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <?php the_time('j F Y, G:i');?>
|
|
||||||
</div>
|
|
||||||
<div class="post_panel_info_sub">
|
|
||||||
<!--Поделиться <i class="fas fa-share-square btn_soc_post"></i>--> <?php include get_template_directory().'/blocks/social-share.php';?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include get_template_directory().'/blocks/moread.php';?>
|
|
||||||
|
|
||||||
<div class="publ-to-main">
|
<div class="publ-to-main">
|
||||||
<button class="more_button" onclick="location.href='<?=get_site_url()?>/page/2'" type="button">
|
<button class="more_button" onclick="location.href='<?=get_site_url()?>/category/arkhiv'" type="button">
|
||||||
На главную</button>
|
Архив номеров</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
13
style.css
13
style.css
@@ -460,6 +460,7 @@ a{
|
|||||||
background: #F5F5F5;
|
background: #F5F5F5;
|
||||||
width: 768px;
|
width: 768px;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.number_number{
|
.number_number{
|
||||||
@@ -1998,6 +1999,7 @@ img-fluid{
|
|||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
@@ -2111,6 +2113,11 @@ img-fluid{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.number-img {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2213,6 +2220,12 @@ and (max-device-width : 667px) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.number-img {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user