<?php
/*
 * BP Profile Search - field value template 'bps-field-value'
 *
 * See http://dontdream.it/bp-profile-search/form-templates/ if you wish to modify this template or develop a new one.
 * A new or modified template should be moved to the 'buddypress/members' directory in your theme's root, otherwise it
 * will be overwritten during the next plugin update.
 *
 */

	list ($name, $value) = bps_template_args ();
?>
	<div class="item-meta">
		<span class="activity">
<?php
			if (!is_array ($value))
				/* translators: %1$s field name, %2$s value */
				printf (esc_html__('%1$s: %2$s', 'bp-profile-search'), $name, $value);
			else if ($value['units'] == 'km')
				/* translators: %1$s field name, %2$s location, %3$d distance */
				printf (esc_html__('%1$s: %2$s (%3$d km away)', 'bp-profile-search'), $name, $value['location'], $value['distance']);
			else if ($value['units'] == 'miles')
				/* translators: %1$s field name, %2$s location, %3$d distance */
				printf (esc_html__('%1$s: %2$s (%3$d miles away)', 'bp-profile-search'), $name, $value['location'], $value['distance']);
?>
		</span>
	</div>
<?php

// BP Profile Search - end of template
