Skip to:
Content

bbPress.org

Ticket #1024: functions.bb-template.2.diff

File functions.bb-template.2.diff, 2.4 KB (added by Erko.Risthein, 17 years ago)
  • functions.bb-template.php

     
    16301630                else
    16311631                        $r = __('Unregistered'); // This should never happen
    16321632        } else
    1633                 $r = '<a href="' . attribute_escape( get_user_profile_link( get_post_author_id( $post_id ) ) ) . '">' . $title . '</a>';
     1633                $r = '<a href="' . attribute_escape( get_user_profile_link( get_post_author_id( $post_id ) ) ) . '">' . __($title) . '</a>';
    16341634
    16351635        return apply_filters( 'get_post_author_title_link', $r, get_post_id( $post_id ) );
    16361636}
     
    20162016?>
    20172017<table id="admininfo">
    20182018<tr class='form-field<?php if ( in_array( 'role', $error_codes ) ) echo ' form-invalid'; ?>'>
    2019         <th scope="row"><?php _e('User Type'); ?></th>
     2019        <th scope="row"><label for="role"><?php _e('User Type'); ?></label></th>
    20202020        <td>
    2021                 <select name="role">
     2021                <select id="role" name="role">
    20222022<?php
    20232023        foreach( $roles as $r => $n ) {
    20242024                if ( isset( $user->capabilities ) && is_array( $user->capabilities ) && array_key_exists( $r, $user->capabilities ) ) {
     
    20282028                        $selected[$r] = '';
    20292029                }
    20302030?>
    2031                         <option value="<?php echo $r; ?>"<?php echo $selected[$r]; ?>><?php echo $n; ?></option>
     2031                        <option value="<?php echo $r; ?>"<?php echo $selected[$r]; ?>><?php _e($n); ?></option>
    20322032<?php
    20332033        }
    20342034?>
     
    21132113?>
    21142114
    21152115<tr class="<?php echo $class; ?>">
    2116         <th scope="row"><?php echo $title ?></th>
     2116        <th scope="row"><label for="<?php echo $name; ?>"><?php echo $title ?></label></th>
    21172117        <td>
    21182118                <?php if ( 'checkbox' == $type && isset($label[5]) ) echo "<label for='$name'>"; ?>
    21192119                <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>" />
     
    21302130<p><sup class="required">*</sup> <?php _e('These items are <span class="required">required</span>.') ?></p>
    21312131
    21322132<?php endif; ?>
    2133 <p><?php _e('Inactive users can login and look around but not do anything.
    2134 Blocked users just see a simple error message when they visit the site.</p>
    2135 <p><strong>Note</strong>: Blocking a user does <em>not</em> block any IP addresses.'); ?></p>
     2133<p><?php _e('Inactive users can login and look around but not do anything. Blocked users just see a simple error message when they visit the site.</p><p><strong>Note</strong>: Blocking a user does <em>not</em> block any IP addresses.'); ?></p>
    21362134<?php
    21372135}
    21382136