<?php do_action('bp_before_profile_loop_content'); ?> <?php if (bp_has_profile()) { ?> <?php // lets get setup global $field; $obj_bp_ev = new Class_WP_ezClasses_BuddyPress_Editability_Visibility_1(); // what are the current visitors visibility permissions $arr_current_visitor_has_permissions = $obj_bp_ev->ez_bp_profile_current_visitor_visibility_permissions(); ?> <?php while (bp_profile_groups()) { bp_the_profile_group(); ?> <?php if (bp_profile_group_has_fields()) { $str_echo1 = ''; ?> <?php do_action('bp_before_profile_field_content'); $str_echo1 .= '<div class="bp-widget ' . bp_get_the_profile_group_slug() . '">'; $str_echo1 .= '<h4>' . bp_get_the_profile_group_name() . '</h4>';