| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Anonymous User |
| 5 |
* |
| 6 |
* @package bbPress |
| 7 |
* @subpackage Theme |
| 8 |
*/ |
| 9 |
|
| 10 |
// Exit if accessed directly |
| 11 |
defined( 'ABSPATH' ) || exit; |
| 12 |
|
| 13 |
if ( bbp_current_user_can_access_anonymous_user_form() ) : ?> |
| 14 |
|
| 15 |
<?php do_action( 'bbp_theme_before_anonymous_form' ); ?> |
| 16 |
|
| 17 |
<fieldset class="bbp-form"> |
| 18 |
<legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? esc_html_e( 'Author Information', 'forumax' ) : esc_html_e( 'Your information:', 'forumax' ); ?></legend> |
| 19 |
|
| 20 |
<?php do_action( 'bbp_theme_anonymous_form_extras_top' ); ?> |
| 21 |
|
| 22 |
<p> |
| 23 |
<label for="bbp_anonymous_author"><?php esc_html_e( 'Name (required):', 'forumax' ); ?></label><br /> |
| 24 |
<input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" size="40" maxlength="100" name="bbp_anonymous_name" autocomplete="off" /> |
| 25 |
</p> |
| 26 |
|
| 27 |
<p> |
| 28 |
<label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'forumax' ); ?></label><br /> |
| 29 |
<input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" size="40" maxlength="100" name="bbp_anonymous_email" /> |
| 30 |
</p> |
| 31 |
|
| 32 |
<p> |
| 33 |
<label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'forumax' ); ?></label><br /> |
| 34 |
<input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" maxlength="200" name="bbp_anonymous_website" /> |
| 35 |
</p> |
| 36 |
|
| 37 |
<?php do_action( 'bbp_theme_anonymous_form_extras_bottom' ); ?> |
| 38 |
|
| 39 |
</fieldset> |
| 40 |
|
| 41 |
<?php do_action( 'bbp_theme_after_anonymous_form' ); ?> |
| 42 |
|
| 43 |
<?php endif; |
| 44 |
|