Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
it is done in the theme
In short: the piece of code counts the total number of children of the toplevelpost
-- this are usaly all posts with thread_level = 2 - and stores it in variable $top_children_total.
+- this are usually all posts with thread_level = 2 - and stores it in variable $top_children_total.
The first time a children which hits thread_level = 2 and $top_child = 1 opens the div.
Everytime when a children with top_level = 2 comes up $top_child_nr rises with 1.