{if !$butler_have_page_bought}
<div style="position:absolute; top:8px; right:55px;" class="warningsmall ui-corner-all">
    {$i.rights_r100}
</div>
{/if}
     
{if isset($title)}
   {include file='r_basic/head.tpl' title="`$title`" helpicon_name="`$helpicon_name`" helpicon_color="`$helpicon_color`"} 
{/if}

<div id="portlet_tabs" class="portlet_page_{$butler_page_info->id} {if $butler_page_is_mobile}butler_page_is_mobile{/if}">
    <input type="checkbox" id="navcheck" /><label for="navcheck" id="navchecklabel" class="ui-widget-header ui-corner-all"></label>
    <ul id="navul">
        {foreach item="tab" from=$portlet_tabs_config}{*
                *}<li class="tab_color{$tab.color}">{*
                    *}<div class="click_handle"><a href="#portlet_tabs_{$tab.id}">{*
                        *}<span class="sort_handle">=</span>{*
                        *}<span class="tab_name">{$tab.name}</span>{*
                        *}<span class="tab_columns">{$tab.columns}</span>{*
                        *}<span class="tab_color">{$tab.color}</span>{*
                    *}</a>{*                    
                    *}<span class="ui-icon ui-icon-close smallbtns ui-icon-closethickgr" style="cursor:pointer" title="{$i.basic_edit}"></span></div>{*
                *}</li>{*
        *}{/foreach}{*
        *}<li class="not_sortable for_butler_page_is_mobile">{*
            *}{if $butler_page_is_mobile}<a href="#portlet_tabs_mobile_right" style="">{*
                *}<span>{$i.portlet_right_tab}</span>{*
            *}</a>{*
            *}<span class="ui-icon ui-icon-close smallbtns" style="visibility:hidden; width:1px;"></span>{*
        *}</li>{/if}{*
        *}<li class="not_sortable ui-state-add" style="margin-left: 4px;" title="{$i.portlet_new_tab}">{*
            *}<a href="#portlet_tabs_add_new" style="">{*
                *}<span class="dialog_make_btn16 add_grey smallbtnslike ui-corner-all" style="margin-top: 1px; margin-bottom: -1px;"></span>{*
            *}</a>{*
        *}</li>
    </ul>
    {foreach item="tab" from=$portlet_tabs_config name=tabs}
        {assign var="tab_id" value={$tab.id}}
        <div id="portlet_tabs_{$tab_id}">
            {if $smarty.foreach.tabs.first}{*}create the portlet area just for first tab{*}
                {include file='Main/portlet_tab.tpl' tab_id=$tab_id}
            {/if}
        </div>
    {/foreach}
    {if $butler_page_is_mobile}<div id="portlet_tabs_mobile_right" class="for_butler_page_is_mobile"></div>{/if}
    <div id="portlet_tabs_add_new"></div>
</div>
