{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset orderby=$listing_order}



{foreach from=$get_threaded_children item=child}
{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth assign="dpth"}

{math equation="(ceil(23/pow(2,$dpth)))" assign="a"}
{if $dpth neq 0}
<td width='{math equation="$a" x=$child.depth y=$node.vector_depth}%'></td>
{else}
<td width='{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%'></td>
{/if}

<p style='margin-left: {$a}px; border-left:5px solid;padding:0.3em 0.5em; background:#111; width:200px'>


depth: {$dpth} <br>
-<br>
ceil(23/pow(2,$dpth)): {math equation="ceil(23/pow(2,$dpth))"}<br>
--<br>
{$dpth1}<br>
--<br>
margin-left: {$a}px;
</p>

{/foreach} 