* * Copyright 2008-2011 Crowd Favorite, Ltd. All rights reserved. * Released under the GPL license * http://www.opensource.org/licenses/gpl-license.php */ if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); } if (CFCT_DEBUG) { cfct_banner(__FILE__); } $author = esc_attr(get_query_var('author')); $user = get_user_by('id', $author); get_header(); // Override global $wp_query; // A second query because we wanted is_author to be true all the way up to here // Though the query should not force a lookup on post_author, but rather post meta described below if ($user) { $wp_query = new WP_Query(array( 'post_type' => array('article', 'post'), 'meta_query' => array( array( 'key' => '_anno_author_'.$user->ID, ), ), )); } ?>
$value) { $property = str_replace('_anno_', '', $key); $user->$property = get_user_meta($user->ID, $key, true); } ?>

user_email, 140); ?>

prefix), esc_html($user->first_name), esc_html($user->last_name), esc_html($user->suffix)); ?>

$label) { if (!empty($user->$key) && !in_array($key, array('_anno_prefix', '_anno_suffix'))) { echo '

'.esc_html($label).': '.$user->$key.'

'; } } ?>

description); ?>