{if isset($buttons.excel) or isset($buttons.pdf) or isset($buttons.csv) or isset($buttons.xml) or isset($buttons.word)}
    <div class="btn-group">
        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" title="{$Captions->GetMessageString('Export')}">
            <i class="icon-export"></i>
            <span class="{$spanClasses}">{$Captions->GetMessageString('Export')}</span>
            <span class="caret"></span>
        </a>

        <ul class="dropdown-menu">
            {foreach from=$buttons item=Item key=Name}
                {if $Name != 'print_page' and $Name != 'print_all'}
                    <li><a href="{$Item.Href|escapeurl}"{$Item.Target}>
                            <i class="{$Item.IconClass}"></i>
                            {$Item.Caption}
                        </a></li>
                {/if}
            {/foreach}
        </ul>
    </div>
{/if}