85 lines
2.3 KiB
PHP
85 lines
2.3 KiB
PHP
<link rel="stylesheet" href="<?= get_template_directory_uri() ?>/assets/css/app.min.css" />
|
|
<link rel="stylesheet" href="<?= get_template_directory_uri() ?>/assets/css/app-desktop.min.css" />
|
|
<link rel="stylesheet" href="<?= get_template_directory_uri() ?>/assets/css/app-mobile.min.css" />
|
|
<div class="aside">
|
|
<div class="aside__img">
|
|
<a target="_blank" href="<?= the_permalink() ?>">
|
|
<img src="<?= the_post_thumbnail_url() ?>" alt="">
|
|
</a>
|
|
</div>
|
|
<div class="aside-article">
|
|
|
|
<?php
|
|
|
|
global $post;
|
|
|
|
$terms = get_the_terms($post->ID, 'industries');
|
|
|
|
foreach ($terms as $term) :
|
|
|
|
if($term->count > 3):
|
|
|
|
?>
|
|
<div class="aside-article__rubric">
|
|
<a target="_blank" href="<?= get_term_link( $term->term_id, $term->taxonomy ); ?>">
|
|
<?= $term->name; ?>
|
|
</a>
|
|
</div>
|
|
<?php
|
|
|
|
else:
|
|
|
|
?>
|
|
<div class="aside-article__rubric">
|
|
<span class="article__rubric">
|
|
<?= $term->name; ?>
|
|
</span>
|
|
</div>
|
|
<?php
|
|
|
|
endif;
|
|
|
|
endforeach;
|
|
|
|
?>
|
|
|
|
<div class="aside-article__title">
|
|
<a target="_blank" href="<?= the_permalink() ?>">
|
|
<?= the_title() ?>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="aside-article__author">
|
|
<?php
|
|
|
|
if (function_exists('get_coauthors')) :
|
|
|
|
$authors = get_coauthors();
|
|
|
|
foreach ( $authors as $author ) :
|
|
|
|
|
|
?>
|
|
<?php if(get_post_type() === "anew"): ?>
|
|
<a target="_blank" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>">
|
|
<?= $author->display_name; ?>
|
|
</a>
|
|
<?php else: ?>
|
|
<span>
|
|
<?= $author->display_name; ?>
|
|
</span>
|
|
<?php endif; ?>
|
|
<?php
|
|
|
|
endforeach;
|
|
|
|
endif;
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<?php
|
|
do_action( 'embed_content' );
|
|
?>
|