Add ability to add a text at the end of the branches.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 9 May 2011 18:34:16 +0000 (20:34 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 9 May 2011 18:34:16 +0000 (20:34 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
banana/tree.inc.php

index 98c66f4..0f66d67 100644 (file)
@@ -124,6 +124,7 @@ class BananaTree
         $text = '<div class="tree">';
         foreach ($this->data as &$line) {
             $text .= '<div style="height: 18px">';
+            unset($head);
             foreach ($line as &$item) {
                 if ($item == ' ') {
                     $text .= $t_e;
@@ -142,9 +143,13 @@ class BananaTree
                     if (Banana::$artid == $item) {
                         $text .= ' checked="checked"';
                     }
+                    $last_title = $head->subject;
                     $text .= '/></span>';
                 }
             }
+            if (function_exists('hook_spoolTagBranch') && isset($head)) {
+                $text .= hook_spoolTagBranch($head);
+            }
             $text .= "</div>\n";
         }
         $text .= '</div>';