Making WordPress.org


Ignore:
Timestamp:
11/01/2018 07:02:31 AM (6 years ago)
Author:
netweb
Message:

Support Forum: Updated bbPress templates

See #3485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply-topic.php

    r5626 r7813  
     1<?php
     2/**
     3 * Replies Loop - Single Reply Topic
     4 *
     5 * @package bbPress
     6 * @subpackage Theme
     7 */
     8
     9// Exit if accessed directly
     10defined( 'ABSPATH' ) || exit;
     11
     12?>
     13
    114<?php $topic_id = bbp_get_reply_topic_id(); ?>
    215
     
    1932            <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    2033
    21             <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'size' => '14' ) ) ); ?></span>
     34            <span class="bbp-topic-started-by">
     35                <?php
     36                printf(
     37                    esc_html__( 'Started by: %1$s', 'wporg-forums' ),
     38                    bbp_get_topic_author_link(
     39                        array(
     40                            'post_id' => $topic_id,
     41                            'size'    => '14',
     42                        )
     43                    )
     44                );
     45                ?>
     46            </span>
    2247
    2348            <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
     
    2550            <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
    2651
    27             <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'wporg-forums' ), bbp_get_forum_permalink( bbp_get_topic_forum_id( $topic_id ) ), bbp_get_forum_title( bbp_get_topic_forum_id( $topic_id ) ) ); ?></span>
     52            <span class="bbp-topic-started-in"><?php printf( esc_html__( 'in: <a href="%1$s">%2$s</a>', 'wporg-forums' ), bbp_get_forum_permalink( bbp_get_topic_forum_id( $topic_id ) ), bbp_get_forum_title( bbp_get_topic_forum_id( $topic_id ) ) ); ?></span>
    2853
    2954            <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
     
    5378            <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
    5479
    55             <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id( $topic_id ), 'size' => 14 ) ); ?></span>
     80            <span class="bbp-topic-freshness-author">
     81                <?php
     82                bbp_author_link(
     83                    array(
     84                        'post_id' => bbp_get_topic_last_active_id( $topic_id ),
     85                        'size'    => 14,
     86                    )
     87                );
     88                ?>
     89            </span>
    5690
    5791            <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
Note: See TracChangeset for help on using the changeset viewer.