Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 10:53:49 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Second pass at huge component refactor.

Move component files out of root directory and append '-loader' to the file names. Split those files up into smaller pieces.

Abstract 'settings' component out of 'core' and into its own component for future extension, including new template files in bp-default.

Append '-sa' to bbPress bridge file for 'Stand Alone' compatibility, to make room for bbPress plugin compatibility layer.

Various bug fixes through-out all components. Various code clean-up and documentation through-out all components.

Still more refactoring to do.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-template.php

    r3750 r3757  
    11<?php
     2
     3/**
     4 * Output the groups component slug
     5 *
     6 * @package BuddyPress
     7 * @subpackage Activity Template
     8 * @since BuddyPress {unknown}
     9 *
     10 * @uses bp_get_groups_slug()
     11 */
     12function bp_groups_slug() {
     13    echo bp_get_groups_slug();
     14}
     15    /**
     16     * Return the groups component slug
     17     *
     18     * @package BuddyPress
     19     * @subpackage Activity Template
     20     * @since BuddyPress {unknown}
     21     */
     22    function bp_get_groups_slug() {
     23        global $bp;
     24        return apply_filters( 'bp_get_groups_slug', $bp->groups->slug );
     25    }
     26
     27/**
     28 * Output the groups component root slug
     29 *
     30 * @package BuddyPress
     31 * @subpackage Activity Template
     32 * @since BuddyPress {unknown}
     33 *
     34 * @uses bp_get_groups_root_slug()
     35 */
     36function bp_groups_root_slug() {
     37    echo bp_get_groups_root_slug();
     38}
     39    /**
     40     * Return the groups component root slug
     41     *
     42     * @package BuddyPress
     43     * @subpackage Activity Template
     44     * @since BuddyPress {unknown}
     45     */
     46    function bp_get_groups_root_slug() {
     47        global $bp;
     48        return apply_filters( 'bp_get_groups_root_slug', $bp->groups->root_slug );
     49    }
    250
    351/*****************************************************************************
     
    140188     * pass their parameters directly to the loop.
    141189     */
    142     $slug = false;
    143     $type = 'active';
     190    $slug    = false;
     191    $type    = 'active';
    144192    $user_id = 0;
    145 
    146     /* User filtering */
     193    $order   = '';
     194
     195    // User filtering
    147196    if ( !empty( $bp->displayed_user->id ) )
    148197        $user_id = $bp->displayed_user->id;
    149198
    150     /* Type */
     199    // Type
    151200    if ( 'my-groups' == $bp->current_action ) {
    152201        if ( 'most-popular' == $order ) {
Note: See TracChangeset for help on using the changeset viewer.