Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2012 09:28:14 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Statistics:

  • Add widget and shortcode for forum statistics.
  • Props MZAWeb.
  • Fixes #2052.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/shortcodes.php

    r4333 r4510  
    8585                        'bbp-register'         => array( $this, 'display_register'      ), // Register
    8686                        'bbp-lost-pass'        => array( $this, 'display_lost_pass'     ), // Lost Password
     87
     88                        /** Others *******************************************************/
     89
     90                        'bbp-stats'            => array( $this, 'display_stats'         ), // Stats
    8791                ) );
    8892        }
     
    679683
    680684        /**
     685         * Display forum statistics
     686         *
     687         * @since bbPress (r4509)
     688         *
     689         * @return shring
     690         */
     691        public function display_stats() {
     692
     693                // Unset globals
     694                $this->unset_globals();
     695
     696                // Start output buffer
     697                $this->start();
     698
     699                // Output statistics
     700                bbp_get_template_part( 'content', 'statistics' );
     701
     702                // Return contents of output buffer
     703                return $this->end();
     704        }
     705
     706        /**
    681707         * Display a breadcrumb
    682708         *
Note: See TracChangeset for help on using the changeset viewer.