add yandex news and telega

This commit is contained in:
2021-11-10 21:21:00 +03:00
parent b38be219ca
commit 30b9d5c83c
6 changed files with 25 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ if ( $q->have_posts() ) :
<?if ( has_post_thumbnail() ) :?>
<div class="card-img-top">
<a href="<?the_permalink();?>"><img src="<?php echo get_the_post_thumbnail_url(null, 'moread'); ?>" alt="<?the_title();?>"></a>
<a href="<?the_permalink();?>"><img src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
</div>
<?endif?>

View File

@@ -10,8 +10,8 @@
<?php // include VIJ_CACHE.'leftmenu.html';?>
<?php get_template_part( '/blocks/leftmenu');?>
<?php // get_template_part( '/blocks/opinion', null, ['subclass' => '']);?>
<?php include VIJ_CACHE.'opinion.html';?>
<?php get_template_part( '/blocks/opinion', null, ['subclass' => '']);?>
<?php //include VIJ_CACHE.'opinion.html';?>
<?php //get_template_part( '/blocks/citata', null, ['subclass' => '']);?>
<?php get_template_part( '/blocks/events');?>
<?php //include VIJ_CACHE.'events.html';?>

View File

@@ -4,7 +4,7 @@
<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">
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=49">
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=52">
<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/burger-menu.js?ver=9"></script>

View File

@@ -48,7 +48,7 @@ $nn = 0;?>
<div class="mini-card">
<?if ( has_post_thumbnail() ) :?>
<div class="mini-card-img">
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'moread'); ?>" alt="<?the_title();?>"></a>
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
<?if( has_tag( 'видео' ) ):?>
<span class="play-card"></span>
<?endif?>
@@ -80,7 +80,7 @@ $nn = 0;?>
<?get_template_part( '/blocks/opinion', null, ['subclass' => 'mob-lite']);?>
<?get_template_part( '/blocks/citata', null, ['subclass' => 'mob-lite']);?>
<?//get_template_part( '/blocks/citata', null, ['subclass' => 'mob-lite']);?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>

View File

@@ -45,7 +45,11 @@
</div>
<div class="post_img_title"><?the_post_thumbnail_caption()?></div>
<?endif?>
<div class="fulltext"><?the_content();?></div>
<div class="fulltext">
<?the_content();?>
<p>Свежие отраслевые новости на нашем канале в <a href="https://t.me/ViZHuvizh" target="_blank">Telegram</a></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> -->
<?//endwhile;?>

View File

@@ -795,7 +795,7 @@ a{
}
.mini-card-img{
/** width: 372px;
/* width: 372px;
height: 216px; */
position: relative;
width: 100%;
@@ -1675,6 +1675,19 @@ img-fluid{
text-align: left;
margin: 0;
}
#mainpage-title{
display: none;
}
.main-card-title{
font-size: 18px;
text-align: left;
}
.main-card-text{
display: none;
}
}