add tag page
This commit is contained in:
@@ -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=115">
|
||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=116">
|
||||
<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/golos.js"></script>
|
||||
|
||||
@@ -987,6 +987,8 @@ a{
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#mainpage-title{
|
||||
margin-top: 42px;
|
||||
}
|
||||
@@ -2092,6 +2094,13 @@ span.rub_back_title{
|
||||
font-weight: 24px;
|
||||
}
|
||||
|
||||
.tag-h1{
|
||||
font-weight: 22px;
|
||||
text-transform: upeercase;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
|
||||
.page-title{
|
||||
font-weight: 24px;
|
||||
margin-top: 48px;
|
||||
|
||||
48
tag.php
Normal file
48
tag.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<div>
|
||||
<?php get_header(); ?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="<?=get_home_url()?>">Главная</a></li>
|
||||
<li> - #<?single_tag_title()?></li>
|
||||
</ul>
|
||||
|
||||
<h1 class="tag-h1">#<?single_tag_title()?></h1>
|
||||
|
||||
<?php if(have_posts()) :?>
|
||||
<div class="mini-card-block">
|
||||
|
||||
<?while(have_posts()) : the_post();?>
|
||||
|
||||
|
||||
<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, 'large'); ?>" alt="<?the_title();?>"></a>
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</div>
|
||||
<?endif?>
|
||||
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||
<div class="mini-card-body">
|
||||
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php endwhile;?>
|
||||
|
||||
</div>
|
||||
|
||||
<?else:?>
|
||||
|
||||
Публикации не найдены
|
||||
|
||||
<?php endif;?>
|
||||
<?get_template_part( '/blocks/paginator');?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user