function sf_campaign_info() { global $post; $campaign = new ATCF_Campaign($post->ID); $categories = get_the_term_list($post->ID, 'download_category', '', ', ', ''); $author = get_user_by('id', $post->post_author); ?> <div class="author-info-wrap clearfix"> <div class="author-avatar"><?php if (function_exists('get_avatar')) { echo get_avatar(get_the_author_meta('ID'), '140'); } ?> </div> <div class="author-bio"> <div class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><h3><a itemprop="name" href="<?php echo get_author_posts_url($author->ID, $author->user_nicename); ?> "><?php the_author_meta('display_name'); ?> </a> </h3></div> <div class="author-bio-text"> <?php the_author_meta('description'); ?> </div> <?php if ($campaign->contact_email() != "") { ?> <a href="mailto:<?php echo sanitize_email($campaign->contact_email()); ?> " class="sf-button contact-author accent"><?php _e('Contact Author', 'swiftframework'); ?> </a> <?php } ?> </div> </div> <div class="campaign-info post-info clearfix"> <?php if ($categories) { ?> <div class="categories-wrap"><?php _e("Categories:", "swiftframework"); ?> <span class="categories"><?php echo esc_attr($categories); ?> </span></div> <?php } ?> <?php if (has_tag()) { ?> <div class="tags-wrap"><?php _e("Tags:", "swiftframework"); ?> <span class="tags"><?php the_tags(''); ?> </span></div> <?php } ?> <div class="comments-likes"> <?php if (comments_open()) { ?> <div class="comments-wrapper"><a href="#comments" class="smooth-scroll-link"> <?php echo apply_filters('sf_comments_icon', '<i class="ss-chat"></i>'); ?> <span><?php comments_number(__('0 Comments', 'swiftframework'), __('1 Comment', 'swiftframework'), __('% Comments', 'swiftframework')); ?> </span></a> </div> <?php } ?> <?php if (function_exists('lip_love_it_link')) { lip_love_it_link(get_the_ID(), true, 'text'); } ?> </div> </div> <?php }