File: /home/aprilnet/public_html/sciohost.org/wp-content/themes/doris/inc/modules/vertical_2.php
<?php
if (!class_exists('doris_vertical_2')) {
class doris_vertical_2 {
function render($postAttr) {
ob_start();
global $post;
$postID = $postAttr['postID'];
$bk_permalink = get_permalink($postID);
$bk_post_title = get_the_title($postID);
if(isset($postAttr['catClass']) && ($postAttr['catClass'] != '')) {
$catClass = $postAttr['catClass'];
}else {
$catClass = '';
}
$authorCity = get_the_author_meta('city', $post->post_author);
?>
<article class="post post--vertical clearfix <?php if(!(atbs_core::bk_check_has_post_thumbnail($postID) && isset($postAttr['thumbSize']) && ($postAttr['thumbSize'] != ''))) : echo 'no-thumbnail-available'; endif;?>">
<div class="post--vertical__inner">
<div class="author-meta">
<?php
$bk_author_name = get_the_author_meta('display_name', $post->post_author);
$authorImgALT = $bk_author_name;
$authorArgs = array(
'class' => 'author__avatar',
);
echo get_avatar($post->post_author, '34', '', $authorImgALT, $authorArgs);
?>
<div class="author__text">
<?php echo ' <a class="author__name" title="'.esc_attr__('Posts by','doris').' '.esc_attr($bk_author_name).'" rel="author" href="'.get_author_posts_url($post->post_author).'">'.esc_attr($bk_author_name).'</a>';?>
<p class=""><?php echo esc_html($authorCity);?></p>
</div>
</div>
<div class="post__thumb">
<?php echo atbs_core::get_feature_image($postID, $postAttr['thumbSize'], true);?>
</div>
<div class="post__text">
<h3 class="post__title <?php echo esc_attr($postAttr['typescale']);?>"><?php echo atbs_core::bk_get_post_title_link($postAttr['postID']);?></h3>
</div>
</div>
<div class="post-meta">
<div class="meta__item">
<p class="title"><?php esc_html_e('Date', 'doris');?></p>
<?php echo atbs_core::bk_meta_cases('date_without_icon');?>
</div>
</div>
</article>
<?php return ob_get_clean();
}
}
}