Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/22/2009 06:01:55 PM (16 years ago)
Author:
apeatling
Message:

Added new css classes to profile edit fields also.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r1919 r1920  
    201201
    202202
    203 function bp_field_css_class() {
    204     echo bp_get_field_css_class();
    205 }
    206     function bp_get_field_css_class() {
     203function bp_field_css_class( $class = false ) {
     204    echo bp_get_field_css_class( $class );
     205}
     206    function bp_get_field_css_class( $class = false ) {
    207207        global $profile_template;
    208208   
    209209        $css_classes = array();
     210       
     211        if ( $class )
     212            $css_classes[] = sanitize_title( attribute_escape( $class ) );
    210213       
    211214        /* Set a class with the field ID */
Note: See TracChangeset for help on using the changeset viewer.