1
0
Fork 0
friendica_2020-09-1_sharedH.../view/theme/frio/templates/common_tabs.tpl

61 lines
2.2 KiB
Smarty
Raw Normal View History

2016-03-28 16:29:05 +02:00
2017-02-08 01:34:36 +01:00
<div class="tabbar-wrapper">
{{* Tab navigation bar for tablets and computer *}}
<ul role="menubar" class="tabbar list-inline visible-lg visible-md visible-sm hidden-xs">
{{* The normal tabbar *}}
<li>
<ul class="tabs flex-nav" role="menu" >
{{foreach $tabs as $tab}}
<li id="{{$tab.id}}" role="menuitem" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
2016-03-28 16:29:05 +02:00
{{/foreach}}
2017-02-08 01:34:36 +01:00
</ul>
</li>
2017-02-08 01:34:36 +01:00
{{* The extended dropdown menu - this would be shown if the tab menu points
doesn't fit in the available space. This is done through flexMenu.js *}}
2017-02-08 01:34:36 +01:00
<li class="pull-right">
<ul class="tabs tabs-extended" role="menu">
<li role="menuitem" class="dropdown flex-target">
<button type="button" class="btn-link dropdown-toggle" id="dropdownMenuTools" data-toggle="dropdown" aria-expanded="true">
2017-10-18 23:22:05 +02:00
<i class="fa fa-chevron-down"></i>
</button>
2017-02-08 01:34:36 +01:00
</li>
</ul>
</li>
</ul>
{{* Tab navigation bar for smartphones *}}
<ul role="menubar" class="tabbar list-inline visible-xs">
{{* The active menupoint will be shown as one menupoint*}}
<li>
<ul class="tabs" role="menu">
{{foreach $tabs as $tab}}
{{if $tab.sel}}
2017-10-18 23:22:05 +02:00
<li id="{{$tab.id}}-xs" role="menuitem" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
2017-02-08 01:34:36 +01:00
{{else}}
{{$exttabs[]=$tab}}
{{/if}}
{{/foreach}}
</ul>
</li>
{{* All others are moved to this dropdown menu *}}
<li class="pull-right">
<ul class="tabs tabs-extended">
<li class="dropdown">
2017-10-18 23:22:05 +02:00
<button type="button" class="btn-link dropdown-toggle" id="dropdownMenuTools-xs" data-toggle="dropdown" aria-expanded="true">
2017-02-08 01:34:36 +01:00
<i class="fa fa-chevron-down"></i>
</button>
2017-02-08 01:34:36 +01:00
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenuTools">
{{foreach $exttabs as $tab}}
2017-10-18 23:22:05 +02:00
<li id="{{$tab.id}}-xs" role="menuitem" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
2017-02-08 01:34:36 +01:00
{{/foreach}}
</ul>
</li>
</ul>
</li>
</ul>
</div>