function pods_twitter_follow() { $twitter = get_the_author_meta('twitter'); $name = get_author_meta('user_firstname'); ?> <a class="twitter-follow-button" data-show-count="false" href="<?php echo $twitter; ?> ">Follow <?php echo $name; ?> </a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <?php }
public static function list_history_post_be_rate($history) { if ($history['type'] !== 'post-be-rate') { return false; } ?> <li class="list-group-item"> <?php theme_custom_point::the_list_icon('thumbs-up'); ?> <?php theme_custom_point::the_point_sign($history['points']); ?> <span class="history-text"> <?php $post = theme_cache::get_post($history['post-id']); if (!$post) { echo ___('The post has been deleted.'); } else { echo sprintf(___('You post %1$s has been rated %2$d %3$s by %4$s.'), '<a href="' . theme_cache::get_permalink($history['post-id']) . '">' . theme_cache::get_the_title($history['post-id']) . '</a>', abs($history['points']), theme_custom_point::get_point_name(), esc_html(get_author_meta('display_name', $history['rater-id']))); } ?> </span> <?php theme_custom_point::the_time($history); ?> </li> <?php }
<!-- .author-avatar --> <div class="author-description"> <h3 class="author-title"> <span class="author-heading"><?php _e('Author:', 'hocwp-theme'); ?> </span> <?php echo esc_html(get_author()); ?> </h3> <p class="author-bio"> <?php author_meta('description'); ?> <a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_author_meta('ID'))); ?> " rel="author"> <?php printf(esc_html__('View all posts by %s', 'hocwp-theme'), esc_html(get_author())); ?> </a> </p><!-- .author-bio --> </div> <!-- .author-description --> </div><!-- .author-info --> <?php do_action('hocwp_after_author_box');