示例#1
0
        ?>
" title="<?php 
        _e('Permanent link to this post', 'wplms_modern');
        ?>
">

						<?php 
        bp_the_topic_title();
        ?>

					</a>

					<p class="topic-meta">
						<span class="topic-by"><?php 
        /* translators: "started by [poster] in [forum]" */
        printf(__('Started by %1$s', 'wplms_modern'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
        ?>
</span>

						<?php 
        if (!bp_is_group_forum()) {
            ?>

							<span class="topic-in">

								<?php 
            $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar('type=thumb&width=20&height=20') . '</a>' . '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
            /* translators: "started by [poster] in [forum]" */
            printf(__('in %1$s', 'wplms_modern'), $topic_in);
            ?>
						<a class="topic-title" href="<?php 
        bp_the_topic_permalink();
        ?>
" title="<?php 
        _e('Permanent link to this post', 'buddypress');
        ?>
">
							<?php 
        bp_the_topic_title();
        ?>
						</a>

						<p class="topic-meta">
							<span class="topic-by"><?php 
        /* translators: "started by [poster] in [forum]" */
        printf(__('Started by %1$s', 'buddypress'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
        ?>
</span>
							<?php 
        if (!bp_is_group_forum()) {
            ?>
								<span class="topic-in">
									<?php 
            $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar('type=thumb&width=20&height=20') . '</a>' . '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
            /* translators: "started by [poster] in [forum]" */
            printf(__('in %1$s', 'buddypress'), $topic_in);
            ?>
								</span>
							<?php 
        }
        ?>
/**
 * Output the avatar of the user who posted the current topic in the loop.
 *
 * @see bp_get_the_topic_poster_avatar() for a description of arguments.
 *
 * @param array $args See {@link bp_get_the_topic_poster_avatar()}.
 */
function bp_the_topic_poster_avatar($args = '')
{
    echo bp_get_the_topic_poster_avatar($args);
}
示例#4
0
        ?>
 - <?php 
        _e('Permalink', 'logicalboneshug');
        ?>
">

						<?php 
        bp_the_topic_title();
        ?>

					</a>

					<p class="topic-meta">
						<span class="topic-by"><?php 
        /* translators: "started by [poster] in [forum]" */
        printf(__('Started by %1$s', 'logicalboneshug'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
        ?>
</span>

						<?php 
        if (!bp_is_group_forum()) {
            ?>

							<span class="topic-in">

								<?php 
            $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar('type=thumb&width=20&height=20') . '</a>' . '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
            /* translators: "started by [poster] in [forum]" */
            printf(__('in %1$s', 'logicalboneshug'), $topic_in);
            ?>
function bp_the_topic_poster_avatar()
{
    echo bp_get_the_topic_poster_avatar();
}
        ?>
" title="<?php 
        esc_attr_e('Permanent link to this post', 'firmasite');
        ?>
">

						<?php 
        bp_the_topic_title();
        ?>

					</a>

					<p class="topic-meta">
						<span class="topic-by"><?php 
        /* translators: "started by [poster] in [forum]" */
        printf(__('Started by %1$s', 'firmasite'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
        ?>
</span>

						<?php 
        if (!bp_is_group_forum()) {
            ?>

							<span class="topic-in">

								<?php 
            $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar('type=thumb&width=20&height=20') . '</a>' . '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
            /* translators: "started by [poster] in [forum]" */
            printf(__('in %1$s', 'firmasite'), $topic_in);
            ?>