Skip to:
Content

BuddyPress.org

Changeset 3616


Ignore:
Timestamp:
12/30/2010 04:34:05 PM (14 years ago)
Author:
boonebgorges
Message:

Changes loop_start/loop_end actions to be component-specific. Fixes #2981. Props r-a-y

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-templatetags.php

    r3511 r3616  
    8484            return true;
    8585        } elseif ( $this->current_blog + 1 == $this->blog_count ) {
    86             do_action('loop_end');
     86            do_action('blog_loop_end');
    8787            // Do some cleaning up after the loop
    8888            $this->rewind_blogs();
     
    100100
    101101        if ( 0 == $this->current_blog ) // loop has just started
    102             do_action('loop_start');
     102            do_action('blog_loop_start');
    103103    }
    104104}
  • trunk/bp-core/bp-core-templatetags.php

    r3610 r3616  
    8787            return true;
    8888        } elseif ( $this->current_member + 1 == $this->member_count ) {
    89             do_action('loop_end');
     89            do_action('member_loop_end');
    9090            // Do some cleaning up after the loop
    9191            $this->rewind_members();
     
    103103
    104104        if ( 0 == $this->current_member ) // loop has just started
    105             do_action('loop_start');
     105            do_action('member_loop_start');
    106106    }
    107107}
  • trunk/bp-forums/bp-forums-templatetags.php

    r3610 r3616  
    140140            return true;
    141141        } elseif ( $this->current_topic + 1 == $this->topic_count ) {
    142             do_action('loop_end');
     142            do_action('forum_loop_end');
    143143            // Do some cleaning up after the loop
    144144            $this->rewind_topics();
     
    157157
    158158        if ( $this->current_topic == 0 ) // loop has just started
    159             do_action('loop_start');
     159            do_action('forum_loop_start');
    160160    }
    161161}
     
    799799            return true;
    800800        } elseif ( $this->current_post + 1 == $this->post_count ) {
    801             do_action('loop_end');
     801            do_action('topic_loop_end');
    802802            // Do some cleaning up after the loop
    803803            $this->rewind_posts();
     
    816816
    817817        if ( $this->current_post == 0 ) // loop has just started
    818             do_action('loop_start');
     818            do_action('topic_loop_start');
    819819    }
    820820}
  • trunk/bp-groups/bp-groups-templatetags.php

    r3592 r3616  
    106106            return true;
    107107        } elseif ( $this->current_group + 1 == $this->group_count ) {
    108             do_action('loop_end');
     108            do_action('group_loop_end');
    109109            // Do some cleaning up after the loop
    110110            $this->rewind_groups();
     
    125125
    126126        if ( 0 == $this->current_group ) // loop has just started
    127             do_action('loop_start');
     127            do_action('group_loop_start');
    128128    }
    129129}
     
    20672067            return true;
    20682068        } elseif ( $this->current_request + 1 == $this->request_count ) {
    2069             do_action('loop_end');
     2069            do_action('group_request_loop_end');
    20702070            // Do some cleaning up after the loop
    20712071            $this->rewind_requests();
     
    20832083
    20842084        if ( 0 == $this->current_request ) // loop has just started
    2085             do_action('loop_start');
     2085            do_action('group_request_loop_start');
    20862086    }
    20872087}
  • trunk/bp-messages/bp-messages-templatetags.php

    r3610 r3616  
    100100            return true;
    101101        } elseif ( $this->current_thread + 1 == $this->thread_count ) {
    102             do_action('loop_end');
     102            do_action('messages_box_loop_end');
    103103            // Do some cleaning up after the loop
    104104            $this->rewind_threads();
     
    144144
    145145        if ( 0 == $this->current_thread ) // loop has just started
    146             do_action('loop_start');
     146            do_action('messages_box_loop_start');
    147147    }
    148148}
Note: See TracChangeset for help on using the changeset viewer.