/**
 * Returns the CSS classes for each Achievement in the Directory
 *
 * @since 2.0
 * @return string
 */
function dpa_get_achievement_directory_class()
{
    $class = esc_attr("achievement achievement-" . dpa_get_achievement_slug());
    if (dpa_is_achievement_unlocked()) {
        $class .= " unlocked";
    }
    if (!dpa_get_achievement_is_active()) {
        $class .= " inactive";
    }
    if (dpa_get_achievement_is_hidden()) {
        $class .= " active-but-hidden";
    }
    return apply_filters('dpa_get_achievement_directory_class', $class);
}
    ?>
			<span class="highlight"><?php 
    _e('Award', 'dpa');
    ?>
</span>&nbsp;
		<?php 
}
?>

		<span class="highlight"><?php 
printf(_n("%s point", "%s points", bp_core_number_format(dpa_get_achievement_points()), 'dpa'), bp_core_number_format(dpa_get_achievement_points()));
?>
</span>&nbsp;

		<?php 
if (!dpa_get_achievement_is_active() && dpa_permission_can_user_edit()) {
    ?>
			<span class="highlight"><?php 
    _e('Inactive Achievement', 'dpa');
    ?>
</span>&nbsp;
		<?php 
}
?>

		<span class="activity"><?php 
printf(_n('Only %s person has unlocked this Achievement', '%s people have unlocked this Achievement', bp_core_number_format(dpa_get_achievement_unlocked_count()), 'dpa'), bp_core_number_format(dpa_get_achievement_unlocked_count()));
?>
</span>
	</p>
        ?>
</div>

				<?php 
        do_action('dpa_directory_achievements_item');
        ?>
			</div>

			<div class="action">
				<?php 
        do_action('dpa_directory_achievements_actions_top');
        ?>

				<div class="meta">
					<?php 
        if (!dpa_get_achievement_is_active()) {
            ?>
						<?php 
            _e('Inactive', 'dpa');
            ?>
					<?php 
        } else {
            ?>
						<?php 
            dpa_achievement_type();
            ?>
					<?php 
        }
        ?>

					<?php