Skip to:
Content

BuddyPress.org

Changeset 4883


Ignore:
Timestamp:
07/28/2011 02:33:05 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove title restriction on primary XProfile group in profile-loop.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/profile/profile-loop.php

    r4287 r4883  
    1 <?php do_action( 'bp_before_profile_loop_content' ) ?>
     1<?php do_action( 'bp_before_profile_loop_content' ); ?>
    22
    33<?php if ( bp_has_profile() ) : ?>
    … …  
    77                <?php if ( bp_profile_group_has_fields() ) : ?>
    88
    9                         <?php do_action( 'bp_before_profile_field_content' ) ?>
     9                        <?php do_action( 'bp_before_profile_field_content' ); ?>
    1010
    11                         <div class="bp-widget <?php bp_the_profile_group_slug() ?>">
    12                                 <?php if ( 1 != bp_get_the_profile_group_id() ) : ?>
    13                                         <h4><?php bp_the_profile_group_name() ?></h4>
    14                                 <?php endif; ?>
     11                        <div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
     12
     13                                <h4><?php bp_the_profile_group_name(); ?></h4>
    1514
    1615                                <table class="profile-fields">
     16
    1717                                        <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    1818
    1919                                                <?php if ( bp_field_has_data() ) : ?>
    20                                                         <tr<?php bp_field_css_class() ?>>
    2120
    22                                                                 <td class="label">
    23                                                                         <?php bp_the_profile_field_name() ?>
    24                                                                 </td>
     21                                                        <tr<?php bp_field_css_class(); ?>>
    2522
    26                                                                 <td class="data">
    27                                                                         <?php bp_the_profile_field_value() ?>
    28                                                                 </td>
     23                                                                <td class="label"><?php bp_the_profile_field_name(); ?></td>
     24
     25                                                                <td class="data"><?php bp_the_profile_field_value(); ?></td>
    2926
    3027                                                        </tr>
     28
    3129                                                <?php endif; ?>
    3230
    33                                                 <?php do_action( 'bp_profile_field_item' ) ?>
     31                                                <?php do_action( 'bp_profile_field_item' ); ?>
    3432
    3533                                        <?php endwhile; ?>
     34
    3635                                </table>
    3736                        </div>
    3837
    39                         <?php do_action( 'bp_after_profile_field_content' ) ?>
     38                        <?php do_action( 'bp_after_profile_field_content' ); ?>
    4039
    4140                <?php endif; ?>
    … …  
    4342        <?php endwhile; ?>
    4443
    45         <?php do_action( 'bp_profile_field_buttons' ) ?>
     44        <?php do_action( 'bp_profile_field_buttons' ); ?>
    4645
    4746<?php endif; ?>
    4847
    49 <?php do_action( 'bp_after_profile_loop_content' ) ?>
     48<?php do_action( 'bp_after_profile_loop_content' ); ?>
Note: See TracChangeset for help on using the changeset viewer.