Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/23/2013 07:09:03 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Hierarchical replies:

  • Introduce setting, option, functions, JS, CSS, and Walker class to support hierarchical replies.
  • Tweak functions where saving the additional reply_to meta data is necessary.
  • Add meta data field in dashboard to show the reply_to ID.
  • There will likely be more tweaking necessary, as we test this further and get more eyes on the code.
  • Fixes #2036.
  • Props jmdodd for this huge effort.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/default/bbpress/loop-replies.php

    r4733 r4944  
    4040    <li class="bbp-body">
    4141
    42         <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
     42        <?php if ( bbp_thread_replies() ) : ?>
    4343
    44             <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
     44            <?php bbp_list_replies(); ?>
    4545
    46         <?php endwhile; ?>
     46        <?php else : ?>
     47
     48            <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
     49
     50                <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
     51
     52            <?php endwhile; ?>
     53
     54        <?php endif; ?>
    4755
    4856    </li><!-- .bbp-body -->
Note: See TracChangeset for help on using the changeset viewer.