2014-12-29 15:51:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class UM_Profile {
|
|
|
|
|
|
|
|
|
|
function __construct() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function show_meta( $array ) {
|
2014-12-29 21:14:22 +02:00
|
|
|
global $ultimatemember;
|
2014-12-29 15:51:55 +02:00
|
|
|
$output = '';
|
|
|
|
|
|
|
|
|
|
foreach( $array as $k ) {
|
2014-12-29 21:14:22 +02:00
|
|
|
$data = '';
|
|
|
|
|
if ( $k && um_user( $k ) ) {
|
|
|
|
|
|
|
|
|
|
$value = um_user( $k );
|
|
|
|
|
$data = $ultimatemember->builtin->get_specific_field( $k );
|
|
|
|
|
$value = apply_filters("um_profile_field_filter_hook__", $value, $data );
|
|
|
|
|
|
|
|
|
|
$items[] = '<span>' . $value . '</span>';
|
2014-12-29 15:51:55 +02:00
|
|
|
$items[] = '<span class="b">•</span>';
|
2014-12-29 21:14:22 +02:00
|
|
|
|
2014-12-29 15:51:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( isset( $items ) ) {
|
|
|
|
|
array_pop($items);
|
|
|
|
|
foreach( $items as $item ) {
|
|
|
|
|
$output .= $item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $output;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|