Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:00:36 AM (17 months ago)
Author:
djpaul
Message:

Templates, Nouveau: string improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php

    r12082 r12104  
    2525
    2626    <fieldset class="radio group-status-type">
    27         <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>
     27        <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend>
    2828
    2929        <label for="group-status-public">
    30             <input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php _e( 'This is a public group', 'buddypress' ); ?>
     30            <input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php esc_html_e( 'This is a public group', 'buddypress' ); ?>
    3131        </label>
    3232
    3333        <ul id="public-group-description">
    34             <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    35             <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    36             <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
     34            <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li>
     35            <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     36            <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    3737        </ul>
    3838
    3939        <label for="group-status-private">
    40             <input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php _e( 'This is a private group', 'buddypress' ); ?>
     40            <input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php esc_html_e( 'This is a private group', 'buddypress' ); ?>
    4141        </label>
    4242
    4343        <ul id="private-group-description">
    44             <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    45             <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    46             <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     44            <li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
     45            <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     46            <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    4747        </ul>
    4848
    4949        <label for="group-status-hidden">
    50             <input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php _e( 'This is a hidden group', 'buddypress' ); ?>
     50            <input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php esc_html_e( 'This is a hidden group', 'buddypress' ); ?>
    5151        </label>
    5252
    5353        <ul id="hidden-group-description">
    54             <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    55             <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    56             <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     54            <li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddypress' ); ?></li>
     55            <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
     56            <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    5757        </ul>
    5858
    5959    </fieldset>
    6060
    61 <?php // Group type selection ?>
    62 <?php if ( $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ) ) : ?>
     61<?php
     62// Group type selection
     63$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
     64if ( $group_types ) : ?>
    6365
    6466    <fieldset class="group-create-types">
    65         <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>
     67        <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend>
    6668
    67         <p tabindex="0"><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
     69        <p tabindex="0"><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
    6870
    6971        <?php foreach ( $group_types as $type ) : ?>
     
    8688
    8789    <fieldset class="radio group-invitations">
    88         <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
     90        <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend>
    8991
    90         <p tabindex="0"><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
     92        <p tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    9193
    9294        <label for="group-invite-status-members">
    9395            <input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    94                 <?php _e( 'All group members', 'buddypress' ); ?>
     96                <?php esc_html_e( 'All group members', 'buddypress' ); ?>
    9597        </label>
    9698
    9799        <label for="group-invite-status-mods">
    98100            <input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    99                 <?php _e( 'Group admins and mods only', 'buddypress' ); ?>
     101                <?php esc_html_e( 'Group admins and mods only', 'buddypress' ); ?>
    100102        </label>
    101103
    102104        <label for="group-invite-status-admins">
    103105            <input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    104                 <?php _e( 'Group admins only', 'buddypress' ); ?>
     106                <?php esc_html_e( 'Group admins only', 'buddypress' ); ?>
    105107        </label>
    106108
Note: See TracChangeset for help on using the changeset viewer.