From: x2003bruneau Date: Thu, 10 Aug 2006 20:56:02 +0000 (+0000) Subject: Can add a text before banana table in tab container X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=acbaf21e4dc23599c48dd7892342697606149382;p=banana.git Can add a text before banana table in tab container git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@136 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/misc.inc.php b/banana/misc.inc.php index f8bdada..3bc4f17 100644 --- a/banana/misc.inc.php +++ b/banana/misc.inc.php @@ -465,11 +465,17 @@ function displayPages($first = -1) function makeTable($text) { + $links = null; + if (function_exists('hook_browsingAction')) { + $links = hook_browsingAction(); + } + return '' . '' . '' . '
' . displayTabs() . '
' + . $links . $text . '
'; @@ -552,7 +558,11 @@ function wrap($text, $_prefix="", $_force=false, $firstpass = true) $result = array_merge($result, $next); } - $result = $_prefix.join("\n$_prefix", $result).($_prefix ? '' : $sign); + $break = "\n"; + if (!$firstpass) { + $break .= $_prefix; + } + $result = $_prefix.join($break, $result).($_prefix ? '' : $sign); if ($firstpass) { return wrap($result, $_prefix, $_force, false); }