query_vars['paged']);
?>
allcaps['administrator']);
$author_avatar = get_avatar(get_the_author_meta('user_email'),apply_filters('sumakweb_author_bio_avatar_size',60));
$author_description = nl2br(get_the_author_meta('description'));
if ((!$author_is_admin) && ((!empty($author_avatar)) || (!empty($author_description)))) {
?>
'
. $author_avatar
. '
'
;
}
if (!empty($author_description)) {
echo '' . get_the_author() . ''); ?>
'
//. '
'
;
}
$author_posts = $wpdb->get_var("select count(*) from $wpdb->posts where post_author = '" . get_the_author_meta('ID') . "' and post_type = 'post' and post_status = 'publish'");
if ((int)$author_posts > 0) {
echo '' . sprintf(__('About %s','sumakweb'),get_the_author()) . '
' . $author_description . ''
. '' . sprintf(__('Posts: %s',HYDRA_TXT),number_format_i18n($author_posts)) . ''
. '
'
;
}
$categories = $wpdb->get_results("SELECT DISTINCT(terms.term_id) as ID, terms.name, terms.slug"
. " FROM $wpdb->posts as posts"
. " LEFT JOIN $wpdb->term_relationships as relationships ON posts.ID = relationships.object_ID"
. " LEFT JOIN $wpdb->term_taxonomy as tax ON relationships.term_taxonomy_id = tax.term_taxonomy_id"
. " LEFT JOIN $wpdb->terms as terms ON tax.term_id = terms.term_id"
. " WHERE posts.post_status = 'publish' AND posts.post_author = '$author' AND tax.taxonomy = 'category'"
. " ORDER BY terms.name ASC");
$tags = $wpdb->get_results("SELECT DISTINCT(terms.term_id) as ID, terms.name, terms.slug"
. " FROM $wpdb->posts as posts"
. " LEFT JOIN $wpdb->term_relationships as relationships ON posts.ID = relationships.object_ID"
. " LEFT JOIN $wpdb->term_taxonomy as tax ON relationships.term_taxonomy_id = tax.term_taxonomy_id"
. " LEFT JOIN $wpdb->terms as terms ON tax.term_id = terms.term_id"
. " WHERE posts.post_status = 'publish' AND posts.post_author = '19' AND tax.taxonomy = 'post_tag'"
);
if (!empty($categories)) {
echo '' . __('Categories','sumakweb') . ':';
foreach($categories as $category) {
echo ' ' . $category->name . '';
}
echo '
';
}
if (!empty($tags)) {
echo '' . __('Tags','sumakweb') . ':';
foreach($tags as $tag) {
echo ' ' . $tag->name . '';
}
echo '
';
}
$subscribe_to = sprintf(__('Subscribe to posts by %s','sumakweb'),get_the_author());
echo ''
. ''
. '
'
. '
'
;
?>
![](' . get_template_directory_uri() . '/pix/rss.png' . ')
' . $subscribe_to . '
' . '' . '