<commit_before><?php

/**
 * @package anno
 * This file is part of the Annotum theme for WordPress
 * Built on the Carrington theme framework <http://carringtontheme.com>
 *
 * Copyright 2008-2011 Crowd Favorite, Ltd. All rights reserved. <http://crowdfavorite.com>
 * 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_name'));
$user = get_user_by('login', $author);

get_header();

global $wp_query;
$wp_query = new WP_Query(array(
	'post_type' => array('article', 'post'),
	'meta_query' => array(
		array( 
			'key' => '_anno_author_'.$user->ID,
		),
	),
));

?>
<div id="main-body" class="clearfix">
	<?php 

		if (is_object($user)):
			global $anno_user_meta;
			foreach ($anno_user_meta as $key => $value) {
				$property = str_replace('_anno_', '', $key);
				$user->$property = get_user_meta($user->ID, $key, true);
			}
			?>
				<h2 class="section-title"><span>Author Profile</span></h2>
				<div class="author-header">
					<?php echo get_avatar($user->user_email, 140); ?>
					<h2 class="author-name"><?php echo anno_format_name(esc_html($user->prefix), esc_html($user->first_name), esc_html($user->last_name), esc_html($user->suffix)); ?></h2>
					<div class="author-link">
						<a href="<?php echo esc_html($user->user_url); ?>"><?php echo esc_html($user->user_url); ?></a>
					</div>
		
					<p class="author-degrees"><?php echo esc_html($user->degrees) ?></p>
					<p class="author-affiliations"><?php echo esc_html($user->affiliation); ?></p>
					<p class="author-bio"><?php echo esc_html($user->description); ?></p>
				</div><!-- .author-header -->
			
			<?php 
			
		endif;
		
		?>
		<h2 class="section-title"><span>Recent Posts</span></h2>	
		<?php
		cfct_loop();
		cfct_misc('nav-posts');
		?> 
</div><!-- #main-content -->
<div id="main-sidebar" class="clearfix">
	<?php get_sidebar(); ?>
</div><!-- #main-sidebar -->
<?php get_footer(); ?><commit_msg>gettext wrappers on author template<commit_after><?php

/**
 * @package anno
 * This file is part of the Annotum theme for WordPress
 * Built on the Carrington theme framework <http://carringtontheme.com>
 *
 * Copyright 2008-2011 Crowd Favorite, Ltd. All rights reserved. <http://crowdfavorite.com>
 * 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_name'));
$user = get_user_by('login', $author);

get_header();

global $wp_query;
$wp_query = new WP_Query(array(
	'post_type' => array('article', 'post'),
	'meta_query' => array(
		array( 
			'key' => '_anno_author_'.$user->ID,
		),
	),
));

?>
<div id="main-body" class="clearfix">
	<?php 

		if (is_object($user)):
			global $anno_user_meta;
			foreach ($anno_user_meta as $key => $value) {
				$property = str_replace('_anno_', '', $key);
				$user->$property = get_user_meta($user->ID, $key, true);
			}
			?>
				<h2 class="section-title"><span><?php _e('Author Profile', 'anno'); ?></span></h2>
				<div class="author-header">
					<?php echo get_avatar($user->user_email, 140); ?>
					<h2 class="author-name"><?php echo anno_format_name(esc_html($user->prefix), esc_html($user->first_name), esc_html($user->last_name), esc_html($user->suffix)); ?></h2>
					<div class="author-link">
						<a href="<?php echo esc_html($user->user_url); ?>"><?php echo esc_html($user->user_url); ?></a>
					</div>
		
					<p class="author-degrees"><?php echo esc_html($user->degrees) ?></p>
					<p class="author-affiliations"><?php echo esc_html($user->affiliation); ?></p>
					<p class="author-bio"><?php echo esc_html($user->description); ?></p>
				</div><!-- .author-header -->
			
			<?php 
			
		endif;
		
		?>
		<h2 class="section-title"><span><?php _e('Recent Posts', 'anno'); ?></span></h2>	
		<?php
		cfct_loop();
		cfct_misc('nav-posts');
		?> 
</div><!-- #main-content -->
<div id="main-sidebar" class="clearfix">
	<?php get_sidebar(); ?>
</div><!-- #main-sidebar -->
<?php get_footer(); ?>
{'fraction_non_alphanumeric': 0.2152744630071599, 'fraction_numerical': 0.008114558472553698, 'mean_word_length': 4.258469259723965, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7562209', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1500, 'n_words': 300}