Пример #1
0
			<input type="text" id="bbp_anonymous_email"   value="<?php 
    bbp_is_topic_edit() ? bbp_topic_author_email() : bbp_is_reply_edit() ? bbp_reply_author_email() : bbp_current_anonymous_user_data('email');
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_anonymous_email" />
		</p>

		<p>
			<label for="bbp_anonymous_website"><?php 
    _e('Website:', 'bbpress');
    ?>
</label><br />
			<input type="text" id="bbp_anonymous_website" value="<?php 
    bbp_is_topic_edit() ? bbp_topic_author_url() : bbp_is_reply_edit() ? bbp_reply_author_url() : bbp_current_anonymous_user_data('website');
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_anonymous_website" />
		</p>

		<?php 
    do_action('bbp_theme_anonymous_form_extras_bottom');
    ?>

	</fieldset>

	<?php 
    do_action('bbp_theme_after_anonymous_form');
Пример #2
0
            ?>



                <div class="td-reply">
                    <div class="td-reply-author-thumb">
                        <?php 
            bbp_reply_author_link(array('show_role' => true, 'type' => 'avatar', 'size' => 50));
            ?>
                    </div>
                    <div class="td-reply-desc">
                        <div class="td-reply-header">
                            <!-- author -->
                            <div class="td-reply-author">
                                <a href="<?php 
            bbp_reply_author_url();
            ?>
"><?php 
            bbp_reply_author_display_name();
            ?>
</a>
                            </div>

                            <!-- permalinks and post controls -->
                            <div class="td-reply-controls">
                                <a href="<?php 
            bbp_reply_url();
            ?>
" class="bbp-reply-permalink">#<?php 
            bbp_reply_id();
            ?>
Пример #3
0
?>
        </div>
		<?php 
do_action('bbp_theme_after_topic_author_details');
?>


	</div><!-- .bbp-topic-author -->

	<div class="bbp-topic-content entry">

        <div class="bbp-reply-header">

            <span class="bbp-reply-author-name">
                <a href="<?php 
bbp_reply_author_url(bbp_get_reply_id());
?>
">
                    <?php 
bbp_reply_author_display_name(bbp_get_reply_id());
?>
                </a>
            </span>

            <?php 
if (bbp_is_user_keymaster()) {
    ?>
                <?php 
    do_action('bbp_theme_before_topic_author_admin_details');
    ?>
                <span class="bbp-reply-ip"><?php 
Пример #4
0
                            </div>
                            <div class="td-topics-title-details">
                                started by <a href="<?php 
            bbp_user_profile_url($topic->post_author);
            ?>
"><?php 
            bbp_topic_author_display_name();
            ?>
</a>
                            </div>
                            <div class="td-topics-title-details">
                                <?php 
            //bbp_get_reply_author_link(array('post_id' => ));
            ?>
                                Last reply by <a href="<?php 
            bbp_reply_author_url(bbp_get_topic_last_active_id());
            ?>
"><?php 
            echo bbp_get_topic_author_display_name(bbp_get_topic_last_active_id());
            ?>
</a>

                                <?php 
            bbp_topic_last_active_time();
            ?>
                            </div>

                        </li><li class="td-forum-topics-replies">
                            <?php 
            bbp_topic_reply_count();
            ?>
Пример #5
0
function td_show_forum($forum_object)
{
    $last_active = bbp_get_forum_last_active_id($forum_object->ID);
    $time_since = '';
    $last_updated_by_avatar = '';
    if (!empty($last_active)) {
        $time_since = bbp_get_forum_freshness_link($forum_object->ID);
        $last_updated_by_avatar = bbp_get_author_link(array('post_id' => $last_active, 'size' => 40, 'type' => 'avatar'));
        //echo $time_since;
    }
    ?>
    <div class="clearfix"></div>
    <ul class="td-forum-list-table td-forum-content">
        <li class="td-forum-category-title<?php 
    if (empty($forum_object->post_content)) {
        echo ' td-forum-title-no-desc';
    }
    ?>
">
            <div class="td-forum-index-padd">
                <a class="bbp-forum-title" href="<?php 
    bbp_forum_permalink($forum_object->ID);
    ?>
"><?php 
    bbp_forum_title($forum_object->ID);
    ?>
</a>
                <?php 
    if (!empty($forum_object->post_content)) {
        ?>
                    <div class="td-forum-description"><?php 
        echo $forum_object->post_content;
        ?>
</div>
                <?php 
    }
    ?>

                </li><li class="td-forum-replies">
                    <div><?php 
    echo bbp_get_forum_topic_count($forum_object->ID);
    ?>
 topics</div>
                    <div><?php 
    echo bbp_get_forum_reply_count($forum_object->ID);
    ?>
 replies</div>
                </li><li class="td-forum-last-comment">

                <div>
                    <?php 
    echo $last_updated_by_avatar;
    ?>
                </div>



                <div class="td-forum-last-comment-content">
                    <div class="td-forum-author-name">
                        by <a class="td-forum-last-author" href="<?php 
    bbp_reply_author_url($last_active);
    ?>
"><?php 
    echo bbp_get_topic_author_display_name($last_active);
    ?>
</a>
                    </div>
                    <div class="td-forum-time-comment">
                        <?php 
    bbp_forum_freshness_link($forum_object->ID);
    ?>
                    </div>
                </div>
        </li>
    </ul>
    <div class="clearfix"></div>
    <?php 
}