fix partners
This commit is contained in:
58
category-parthers.php
Normal file
58
category-parthers.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* The main template file.
|
||||
*
|
||||
*/
|
||||
|
||||
get_header();
|
||||
$nn = 0;?>
|
||||
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</a></li>
|
||||
<li> - <?single_cat_title()?></li>
|
||||
</ul>
|
||||
|
||||
<h1 class="my-4"><?=single_cat_title()?></h1>
|
||||
|
||||
<?php if(have_posts()) :?>
|
||||
<div class="search-card-box">
|
||||
|
||||
<?php while(have_posts()) : the_post();?>
|
||||
|
||||
|
||||
|
||||
<div class="search-card">
|
||||
|
||||
<div class="search-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></div>
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<img class="search-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" width="180" alt="<?the_title();?>">
|
||||
<?endif?>
|
||||
<div><?the_excerpt();?></div>
|
||||
<div class="mini-card-body">
|
||||
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php endwhile;?>
|
||||
</div>
|
||||
|
||||
<?get_template_part( '/blocks/paginator');?>
|
||||
|
||||
|
||||
<?else:?>
|
||||
|
||||
Здесь пока нет публикаций
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -12,7 +12,7 @@ $nn = 0;?>
|
||||
<div id="content">
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</a></li>
|
||||
<li> - <?single_cat_title()?></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -10,15 +10,13 @@ $nn = 0;?>
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="<?=get_home_url()?>">Главная</li>
|
||||
<li><a href="<?=get_home_url()?>">Главная</a></li>
|
||||
<li> - <?single_cat_title()?></li>
|
||||
</ul>
|
||||
|
||||
<h1 class="my-4"><?=single_cat_title()?></h1>
|
||||
<h1 class="my-4"><?single_cat_title()?></h1>
|
||||
|
||||
<?php if(have_posts()) : while(have_posts()) : the_post();?>
|
||||
|
||||
|
||||
69
single-parthers.php
Normal file
69
single-parthers.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php get_header();?>
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
<?//while(have_posts()):?>
|
||||
<?the_post();?>
|
||||
|
||||
|
||||
<?php $category = get_the_category();
|
||||
$category_id = $category[0]->term_id;
|
||||
$category_link = get_category_link($category_id);
|
||||
?>
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
||||
<li>-<li>
|
||||
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
||||
<li>-<li>
|
||||
<li><?=mb_substr(get_the_title(), 0, 50);?>...</li>
|
||||
</ul>
|
||||
|
||||
<div class="post_info">
|
||||
<div class="post_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_info_sub post_info_social">
|
||||
<i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="post-h1"><?php wp_title('');?></h1>
|
||||
<?$author = get_the_author();
|
||||
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
|
||||
<div class="post_author">
|
||||
Автор: <?php the_author(); ?>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<div><?the_content();?></div>
|
||||
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
|
||||
<?//endwhile;?>
|
||||
|
||||
<?php include get_template_directory().'/blocks/yets.php';?>
|
||||
|
||||
<div id="tags">
|
||||
<?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>--> <i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include get_template_directory().'/blocks/moread.php';?>
|
||||
|
||||
<div class="publ-to-main"><a href="http://beta.vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_footer();?>
|
||||
Reference in New Issue
Block a user