Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/10/2013 02:04:10 AM (12 years ago)
Author:
boonebgorges
Message:

Improve inline docs in bp-forums component. See #5022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-screens.php

    r7386 r7554  
    11<?php
    22/**
    3  * BuddyPress Forums Screen Functions
     3 * BuddyPress Forums Screen Functions.
    44 *
    55 * @package BuddyPress
     
    1010if ( !defined( 'ABSPATH' ) ) exit;
    1111
     12/**
     13 * Load the Forums directory.
     14 */
    1215function bp_forums_directory_forums_setup() {
    1316
     
    8083add_action( 'bp_screens', 'bp_forums_directory_forums_setup', 2 );
    8184
     85/**
     86 * Load the Topics Started screen.
     87 */
    8288function bp_member_forums_screen_topics() {
    8389    do_action( 'bp_member_forums_screen_topics' );
     
    8692}
    8793
     94/**
     95 * Load the Replied To screen.
     96 */
    8897function bp_member_forums_screen_replies() {
    8998    do_action( 'bp_member_forums_screen_replies' );
     
    93102
    94103/**
    95  * Loads the template content for a user's Favorites forum tab.
     104 * Load the template content for a user's Favorites forum tab.
    96105 *
    97106 * Note that this feature is not fully implemented at the moment.
    98  *
    99  * @package BuddyPress Forums
    100107 */
    101108function bp_member_forums_screen_favorites() {
     
    105112}
    106113
     114/**
     115 * Load a single forum page.
     116 */
    107117function bp_forums_screen_single_forum() {
    108118
     
    116126add_action( 'bp_screens', 'bp_forums_screen_single_forum' );
    117127
     128/**
     129 * Load a single forum topic page.
     130 */
    118131function bp_forums_screen_single_topic() {
    119132
     
    131144
    132145/**
    133  * The main theme compat class for legacy BuddyPress forums, as powered by bbPress 1.x
     146 * The main theme compat class for legacy BuddyPress forums.
    134147 *
    135148 * This class sets up the necessary theme compatability actions to safely output
    136149 * old forum template parts to the_title and the_content areas of a theme.
    137150 *
    138  * @since BuddyPress (1.7)
     151 * @since BuddyPress (1.7.0)
    139152 */
    140153class BP_Forum_Legacy_Theme_Compat {
    141154
    142155    /**
    143      * Setup the old forums component theme compatibility
    144      *
    145      * @since BuddyPress (1.7)
     156     * Set up theme compatibility for the legacy forums component.
     157     *
     158     * @since BuddyPress (1.7.0)
    146159     */
    147160    public function __construct() {
     
    152165     * Are we looking at something that needs old forum theme compatability?
    153166     *
    154      * @since BuddyPress (1.7)
     167     * @since BuddyPress (1.7.0)
    155168     */
    156169    public function is_legacy_forum() {
     
    185198
    186199    /**
    187      * Update the global $post with directory data
    188      *
    189      * @since BuddyPress (1.7)
     200     * Update the global $post with directory data.
     201     *
     202     * @since BuddyPress (1.7.0)
    190203     */
    191204    public function directory_dummy_post() {
     
    212225
    213226    /**
    214      * Filter the_content with the old forum index template part
    215      *
    216      * @since BuddyPress (1.7)
     227     * Filter the_content with the old forum index template part.
     228     *
     229     * @since BuddyPress (1.7.0)
    217230     */
    218231    public function directory_content() {
Note: See TracChangeset for help on using the changeset viewer.