function get_html_users($users)
{
$html = '';
foreach ($users as $user) {
$full_bio = get_the_author_meta( 'full_description', $user[curr_user_id] );
if( $full_bio == '' ){
$user_url = '/account/?user='.$user[curr_user_id];
} else{
$user_url = $user[LC_url];
}
$html .= '<div class="col-md-3 col-sm-6 col-xs-12 col_md_padding_bottom_20">
<a href="' . $user_url . '" class="a_padding_bottom">
<img src="' . $user['photo_url'] . '" class="img-user" alt="photo">
<span class="user_name_span">' .
$user['first_name'] . '</span>
</a>
</div>';
}
return $html;
}
<div class="row line_c customs" id="true_loadmore_moder_wrapp">
<?php
echo get_html_users($moders);
?>
</div>