new format author and date
This commit is contained in:
18
single.php
18
single.php
@@ -13,8 +13,9 @@
|
||||
<?php
|
||||
$formatted_date = format_event_date();
|
||||
?>
|
||||
|
||||
<?= $formatted_date; ?>
|
||||
<time datetime="<?php echo get_the_date('c'); ?>">
|
||||
<?= $formatted_date; ?>
|
||||
</time>
|
||||
<? endif; ?>
|
||||
</div>
|
||||
<?php if (!in_category('partners')) : ?>
|
||||
@@ -29,15 +30,12 @@
|
||||
|
||||
<?php if (!in_category('partners')) : ?>
|
||||
<?php if ( $author AND $author->display_name !== 'agroexpert.press' AND $author->display_name !== 'Анна Купровская') : ?>
|
||||
<div class="article-author">
|
||||
<div class="article-author__name">
|
||||
<p class="byline">
|
||||
Автор <span class="article-author__name">
|
||||
<a href="<?= get_author_posts_url($author->ID); ?>">
|
||||
<?= $author->display_name; ?></a><br>
|
||||
<? if ( $author->description !== '' ):?>
|
||||
<?=$author->description?>
|
||||
<?endif?>
|
||||
</div>
|
||||
</div>
|
||||
<?=$author->display_name; ?></a>
|
||||
</span>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<div class="article-single__content">
|
||||
|
||||
Reference in New Issue
Block a user