/** * Echo the total of all high-fives across the site * * @package BuddyPress_Skeleton_Component * @since 1.6 */ function bp_example_total_high_five_count() { echo bp_example_get_total_high_five_count(); }
<?php do_action('bp_before_directory_example_content'); ?> <?php do_action('template_notices'); ?> <div class="item-list-tabs no-ajax" role="navigation"> <ul> <li class="selected" id="groups-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_example_root_slug()); ?> "><?php printf(__('All High Fives <span>%s</span>', 'buddypress'), bp_example_get_total_high_five_count()); ?> </a></li> <?php do_action('bp_example_directory_example_filter'); ?> </ul> </div><!-- .item-list-tabs --> <div id="example-dir-list" class="example dir-list"> <?php bp_core_load_template('example/example-loop'); ?>