{foreach from = $item->multiRowHeaderColumns item = columns} {if $item->hasRowPreview}{/if} {foreach from = $columns item = column key = name} {capture assign='columnContent'} {if $column.headerTemplate} {include file=$column.headerTemplate} {else} {$column.title} {/if} {/capture} {if 'checkbox' === $column.type}{/if} {if $column.orderBy} {capture assign = 'href'}{$item->sortLink}orderBy={$column.orderBy}{if $item->orderBy == $column.orderBy}+DESC{/if}{/capture} {$columnContent} {assign var = 'order' value = $item->orderBy} {if is_array($order)} {assign var = 'order' value = $order|@current} {/if} {if preg_match("/^`$column.orderBy`( DESC)?$/", $order)} {capture assign = 'href'}{$item->sortLink}orderBy={$column.orderBy}{if $order == $column.orderBy}+DESC{/if}{/capture} {/if} {else} {$columnContent} {/if} {/foreach} {/foreach}