Untitled diff

建立於 差異永不過期
25 刪除
245 行
14 新增
245 行
<?php
<?php
/**
/**
* New/Edit Topic
* New/Edit Topic
*
*
* @package bbPress
* @package bbPress
* @subpackage Theme
* @subpackage Theme
*/
*/
?>
?>
<?php if ( !bbp_is_single_forum() ) : ?>
<?php if ( !bbp_is_single_forum() ) : ?>
<div id="bbpress-forums">
<div id="bbpress-forums">
<?php bbp_breadcrumb(); ?>
<?php bbp_breadcrumb(); ?>
<?php endif; ?>
<?php endif; ?>
<?php if ( bbp_is_topic_edit() ) : ?>
<?php if ( bbp_is_topic_edit() ) : ?>
<?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
<?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
<?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
<?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
<?php endif; ?>
<?php endif; ?>
<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
<?php if ( ($_GET['new-post'] == 'true') || ( bbp_is_topic_edit() )) : ?>
<div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
<div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
<form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
<form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
<?php do_action( 'bbp_theme_before_topic_form' ); ?>
<?php do_action( 'bbp_theme_before_topic_form' ); ?>
<fieldset class="bbp-form">
<fieldset class="bbp-form">
<legend>
<legend>
<?php
<?php
if ( bbp_is_topic_edit() )
if ( bbp_is_topic_edit() )
printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
else
else
bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title($_GET['forum-id']) ) : _e('إنشاء موضوع جديد في قسم "'. bbp_get_forum_title($_GET['forum-id']) .'"','bbpress' );
bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
?>
?>
</legend>
</legend>
<?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
<?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
<?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
<div class="bbp-template-notice">
<div class="bbp-template-notice">
<p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
<p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
<div class="bbp-template-notice">
<div class="bbp-template-notice">
<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div>
<div>
<?php bbp_get_template_part( 'form', 'anonymous' ); ?>
<?php bbp_get_template_part( 'form', 'anonymous' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
<p>
<p>
<label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
<label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
<input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
<input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
</p>
</p>
<?php do_action( 'bbp_theme_after_topic_form_title' ); ?>
<?php do_action( 'bbp_theme_after_topic_form_title' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
<?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
<?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
<?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
<?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
<?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
<?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
<p class="form-allowed-tags">
<p class="form-allowed-tags">
<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
<code><?php bbp_allowed_tags(); ?></code>
<code><?php bbp_allowed_tags(); ?></code>
</p>
</p>
<?php endif; ?>
<?php endif; ?>
<div class="topic-more-options">
<?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
<?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_tags' ); ?>
<?php do_action( 'bbp_theme_before_topic_form_tags' ); ?>
<p>
<p>