X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FMenu;h=83d371c2b42daa19f6986609b7dd945b04706f71;hp=b56bacda81371d17a6b2c85f583d3537c94fb150;hb=01721976fa3324f41a3093cda68bc38a7eec5ff5;hpb=43a06151e47d2c59b833cbd8c26d97865ee850b6 diff --git a/rt/share/html/Elements/Menu b/rt/share/html/Elements/Menu index b56bacda8..83d371c2b 100755 --- a/rt/share/html/Elements/Menu +++ b/rt/share/html/Elements/Menu @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,36 +45,6 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% return unless ($menu); -<%" " x $depth%><% $toplevel? ' class="toplevel"' : '' |n %>> -% for my $child ($menu->children) { -% my $item_id = lc(($parent_id? $parent_id."-" : "") .$child->key); -% $item_id =~ s/\s/-/g; -% my @classes; -% push @classes, 'has-children' if $child->has_children; -% push @classes, 'active' if $child->active; -<%" " x ($depth+1)%>
  • \ -% if ($child->raw_html) { -<% $child->raw_html |n %> -% } else { -% my $url = (not $child->path or $child->path =~ m{^\w+:/}) ? $child->path : RT->Config->Get('WebPath').$child->path; -path ? ' href="'.$url.'"' : '' |n%><% $child->target ? ' target="'.$child->target.'"' : '' |n %>>\ -<% $child->escape_title ? $m->interp->apply_escapes($child->title, 'h') : $child->title |n %>\ -\ -% } -% if ($child->has_children) { - -<& Menu, menu => $child, toplevel => 0, parent_id => ($parent_id? $parent_id."-": '').$child->key, depth=> ($depth+1) &> -<%" " x ($depth+1)%>
  • -% } else { - -% } -% } -<%" " x $depth%>\ <%ARGS> $menu $id => undef @@ -82,3 +52,6 @@ $toplevel => 1 $parent_id => '' $depth => 0 +<%INIT> +RenderMenu( %ARGS ); +