Skip to:
Content

BuddyPress.org

Changeset 8927


Ignore:
Timestamp:
08/16/2014 11:49:07 AM (5 years ago)
Author:
djpaul
Message:

Templates: fix invalid HTML markup on step 2 of the "Create Group" form.

Unordered lists were made children of respective label elements; this change moves the lists to after the label element.

Fixes #5816, props mercime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r8678 r8927  
    5252
    5353                <div class="radio">
    54                     <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    55                         <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    56                         <ul>
    57                             <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    58                             <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    59                             <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    60                         </ul>
    61                     </label>
    62 
    63                     <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
     54                    <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong></label>
     55                    <ul>
     56                        <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
     57                        <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     58                        <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
     59                    </ul>
     60
     61
     62                    <label>
     63                        <input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    6464                        <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    65                         <ul>
    66                             <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    67                             <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    68                             <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    69                         </ul>
    70                     </label>
    71 
    72                     <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
     65                    </label>
     66                    <ul>
     67                        <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
     68                        <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     69                        <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     70                    </ul>
     71
     72
     73                    <label>
     74                        <input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    7375                        <strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
    74                         <ul>
    75                             <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    76                             <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    77                             <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    78                         </ul>
    79                     </label>
     76                    </label>
     77                    <ul>
     78                        <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
     79                        <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
     80                        <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     81                    </ul>
     82
    8083                </div>
    8184
Note: See TracChangeset for help on using the changeset viewer.