Skip to:
Content

BuddyPress.org

Changeset 8603


Ignore:
Timestamp:
07/12/2014 12:53:39 AM (11 years ago)
Author:
boonebgorges
Message:

Add the xprofile field visibility level as a CSS class for the field div

See #5238

Props sgr33n for an initial patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-template.php

    r8561 r8603  
    230230            $css_classes[] = 'optional-field';
    231231        }
     232
     233        // Add the field visibility level
     234        $css_classes[] = 'visibility-' . esc_attr( bp_get_the_profile_field_visibility_level() );
    232235
    233236        if ( $profile_template->current_field % 2 == 1 )
Note: See TracChangeset for help on using the changeset viewer.