Skip to:
Content

BuddyPress.org

Changeset 10985


Ignore:
Timestamp:
08/03/2016 12:06:25 AM (5 years ago)
Author:
mercime
Message:

Groups: Improve markup of the input controls in the Group Edit screen.

Props dcavins, mercime.
Fixes #7211.

Location:
trunk/src/bp-groups
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/admin/css/admin-rtl.css

    r9819 r10985  
    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;
    37 }
    38 .bp-groups-settings-section {
    39     margin-top: 10px;
     39.bp-groups-settings-section label {
     40    clear: left;
     41    display: block;
     42    float: left;
     43    vertical-align: middle;
    4044}
    4145#bp-groups-permalink-box {
     
    8589    padding-left: 20px;
    8690}
     91
     92@media screen and (max-width: 782px) {
     93    .bp-groups-settings-section label {
     94        margin: 0.25em 0;
     95    }
     96}
  • trunk/src/bp-groups/admin/css/admin.css

    r9819 r10985  
    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;
    37 }
    38 .bp-groups-settings-section {
    39     margin-top: 10px;
     39.bp-groups-settings-section label {
     40    clear: left;
     41    display: block;
     42    float: left;
     43    vertical-align: middle;
    4044}
    4145#bp-groups-permalink-box {
     
    8589    padding-right: 20px;
    8690}
     91
     92@media screen and (max-width: 782px) {
     93    .bp-groups-settings-section label {
     94        margin: 0.25em 0;
     95    }
     96}
  • trunk/src/bp-groups/bp-groups-admin.php

    r10828 r10985  
    799799    <?php if ( bp_is_active( 'forums' ) ) : ?>
    800800        <div class="bp-groups-settings-section" id="bp-groups-settings-section-forum">
    801             <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" <?php checked( $item->enable_forum ) ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?><br />
     801            <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" <?php checked( $item->enable_forum ) ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?></label>
    802802        </div>
    803803    <?php endif; ?>
     
    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            <label for="bp-group-status-public"><input type="radio" name="group-status" id="bp-group-status-public" value="public" <?php checked( $item->status, 'public' ) ?> /><?php _e( 'Public', 'buddypress' ) ?></label>
     810            <label for="bp-group-status-private"><input type="radio" name="group-status" id="bp-group-status-private" value="private" <?php checked( $item->status, 'private' ) ?> /><?php _e( 'Private', 'buddypress' ) ?></label>
     811            <label for="bp-group-status-hidden"><input type="radio" name="group-status" id="bp-group-status-hidden" value="hidden" <?php checked( $item->status, 'hidden' ) ?> /><?php _e( 'Hidden', 'buddypress' ) ?></label>
    814812        </fieldset>
    815813    </div>
     
    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            <label for="bp-group-invite-status-members"><input type="radio" name="group-invite-status" id="bp-group-invite-status-members" value="members" <?php checked( $invite_status, 'members' ) ?> /><?php _e( 'All group members', 'buddypress' ) ?></label>
     820            <label for="bp-group-invite-status-mods"><input type="radio" name="group-invite-status" id="bp-group-invite-status-mods" value="mods" <?php checked( $invite_status, 'mods' ) ?> /><?php _e( 'Group admins and mods only', 'buddypress' ) ?></label>
     821            <label for="bp-group-invite-status-admins"><input type="radio" name="group-invite-status" id="bp-group-invite-status-admins" value="admins" <?php checked( $invite_status, 'admins' ) ?> /><?php _e( 'Group admins only', 'buddypress' ) ?></label>
    826822        </fieldset>
    827823    </div>
Note: See TracChangeset for help on using the changeset viewer.