Skip to:
Content

BuddyPress.org

Ticket #6054: bp-groups-template.php.patch

File bp-groups-template.php.patch, 1.5 KB (added by giob, 10 years ago)

New filter bp_group_creation_display_counter

  • bp-groups/bp-groups-template.php

     
    34893489        $counter = 1;
    34903490
    34913491        foreach ( (array) $bp->groups->group_creation_steps as $slug => $step ) {
    3492                 $is_enabled = bp_are_previous_group_creation_steps_complete( $slug ); ?>
    3493 
    3494                 <li<?php if ( bp_get_groups_current_create_step() == $slug ) : ?> class="current"<?php endif; ?>><?php if ( $is_enabled ) : ?><a href="<?php echo bp_get_root_domain() . '/' . bp_get_groups_root_slug() ?>/create/step/<?php echo $slug ?>/"><?php else: ?><span><?php endif; ?><?php echo $counter ?>. <?php echo $step['name'] ?><?php if ( $is_enabled ) : ?></a><?php else: ?></span><?php endif ?></li><?php
     3492                $is_enabled = bp_are_previous_group_creation_steps_complete( $slug );
     3493                $bp_group_creation_display_counter = $counter . '. ';
     3494                $bp_group_creation_display_counter = apply_filters( 'bp_group_creation_display_counter', $bp_group_creation_display_counter );
     3495                ?>
     3496               
     3497                <li<?php if ( bp_get_groups_current_create_step() == $slug ) : ?> class="current"<?php endif; ?>><?php if ( $is_enabled ) : ?><a href="<?php echo bp_get_root_domain() . '/' . bp_get_groups_root_slug() ?>/create/step/<?php echo $slug ?>/"><?php else: ?><span><?php endif; ?><?php echo $bp_group_creation_display_counter; ?> <?php echo $step['name'] ?><?php if ( $is_enabled ) : ?></a><?php else: ?></span><?php endif ?></li><?php
    34953498                $counter++;
    34963499        }
    34973500