Skip to:
Content

BuddyPress.org

Ticket #7211: 7211.01.patch

File 7211.01.patch, 4.2 KB (added by dcavins, 5 years ago)

Remove unnecessary unordered list from settings panel. Compensate.

  • src/bp-groups/admin/css/admin.css

    diff --git src/bp-groups/admin/css/admin.css src/bp-groups/admin/css/admin.css
    index 651a6d5..b80b8d8 100644
    body.toplevel_page_bp-groups table.groups th#last_active { 
    2828#bp-groups-new-members-list {
    2929        margin: 0;
    3030}
    31 #bp_group_settings legend {
    32         margin: 10px 0;
     31.bp-groups-settings-section {
     32        margin-top: 10px;
     33        line-height: 2em;
     34}
     35.bp-groups-settings-section legend {
     36        margin-top: 10px;
    3337        font-weight: bold;
    3438}
    35 #bp_group_settings ul {
    36         margin: 0;
     39.bp-groups-settings-section input[type="checkbox"],
     40.bp-groups-settings-section input[type="radio"] {
     41        margin-top: 1px;
    3742}
    38 .bp-groups-settings-section {
    39         margin-top: 10px;
     43.bp-groups-settings-section label {
     44        padding: 2px 0 2px 0;
    4045}
    4146#bp-groups-permalink-box {
    4247        line-height: 24px;
  • src/bp-groups/bp-groups-admin.php

    diff --git src/bp-groups/bp-groups-admin.php src/bp-groups/bp-groups-admin.php
    index 5a2a0bf..74dad2a 100644
    function bp_groups_admin_edit_metabox_settings( $item ) { 
    806806                <fieldset>
    807807                        <legend><?php _e( 'Privacy', 'buddypress' ); ?></legend>
    808808
    809                         <ul>
    810                                 <li><input type="radio" name="group-status" id="bp-group-status-public" value="public" <?php checked( $item->status, 'public' ) ?> /><label for="bp-group-status-public"><?php _e( 'Public', 'buddypress' ) ?></label></li>
    811                                 <li><input type="radio" name="group-status" id="bp-group-status-private" value="private" <?php checked( $item->status, 'private' ) ?> /><label for="bp-group-status-private"><?php _e( 'Private', 'buddypress' ) ?></label></li>
    812                                 <li><input type="radio" name="group-status" id="bp-group-status-hidden" value="hidden" <?php checked( $item->status, 'hidden' ) ?> /><label for="bp-group-status-hidden"><?php _e( 'Hidden', 'buddypress' ) ?></label></li>
    813                         </ul>
     809                        <input type="radio" name="group-status" id="bp-group-status-public" value="public" <?php checked( $item->status, 'public' ) ?> /><label for="bp-group-status-public"><?php _e( 'Public', 'buddypress' ) ?></label><br />
     810                        <input type="radio" name="group-status" id="bp-group-status-private" value="private" <?php checked( $item->status, 'private' ) ?> /><label for="bp-group-status-private"><?php _e( 'Private', 'buddypress' ) ?></label><br />
     811                        <input type="radio" name="group-status" id="bp-group-status-hidden" value="hidden" <?php checked( $item->status, 'hidden' ) ?> /><label for="bp-group-status-hidden"><?php _e( 'Hidden', 'buddypress' ) ?></label>
    814812                </fieldset>
    815813        </div>
    816814
    function bp_groups_admin_edit_metabox_settings( $item ) { 
    818816                <fieldset>
    819817                        <legend><?php _e( 'Who can invite others to this group?', 'buddypress' ); ?></legend>
    820818
    821                         <ul>
    822                                 <li><input type="radio" name="group-invite-status" id="bp-group-invite-status-members" value="members" <?php checked( $invite_status, 'members' ) ?> /><label for="bp-group-invite-status-members"><?php _e( 'All group members', 'buddypress' ) ?></label></li>
    823                                 <li><input type="radio" name="group-invite-status" id="bp-group-invite-status-mods" value="mods" <?php checked( $invite_status, 'mods' ) ?> /><label for="bp-group-invite-status-mods"><?php _e( 'Group admins and mods only', 'buddypress' ) ?></label></li>
    824                                 <li><input type="radio" name="group-invite-status" id="bp-group-invite-status-admins" value="admins" <?php checked( $invite_status, 'admins' ) ?> /><label for="bp-group-invite-status-admins"><?php _e( 'Group admins only', 'buddypress' ) ?></label></li>
    825                         </ul>
     819                        <input type="radio" name="group-invite-status" id="bp-group-invite-status-members" value="members" <?php checked( $invite_status, 'members' ) ?> /><label for="bp-group-invite-status-members"><?php _e( 'All group members', 'buddypress' ) ?></label><br />
     820                        <input type="radio" name="group-invite-status" id="bp-group-invite-status-mods" value="mods" <?php checked( $invite_status, 'mods' ) ?> /><label for="bp-group-invite-status-mods"><?php _e( 'Group admins and mods only', 'buddypress' ) ?></label><br />
     821                        <input type="radio" name="group-invite-status" id="bp-group-invite-status-admins" value="admins" <?php checked( $invite_status, 'admins' ) ?> /><label for="bp-group-invite-status-admins"><?php _e( 'Group admins only', 'buddypress' ) ?></label>
    826822                </fieldset>
    827823        </div>
    828824