{if $item->hasRowPreview} | {/if}
{foreach from = $columns item = column key = name}
{if 'checkbox' === $column.type}{/if}
{if $column.orderBy}
{capture assign = 'href'}{$item->sortLink}orderBy={$column.orderBy}{if $item->orderBy == $column.orderBy}+DESC{/if}{/capture}
{$column.title|htmlspecialchars}
{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}
{$column.title|htmlspecialchars}
{/if}
|
{/foreach}