]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/common_tabs.tpl
Merge pull request #4593 from annando/fix-ostatus
[friendica.git] / view / theme / frio / templates / common_tabs.tpl
1
2 <div class="tabbar-wrapper">
3         {{* Tab navigation bar for tablets and computer *}}
4         <ul role="menubar" class="tabbar list-inline visible-lg visible-md visible-sm hidden-xs">
5                 {{* The normal tabbar *}}
6                 <li>
7                         <ul class="tabs  flex-nav" role="menu" >
8                         {{foreach $tabs as $tab}}
9                                 <li id="{{$tab.id}}" role="presentation" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a role="menuitem" href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
10                         {{/foreach}}
11                         </ul>
12                 </li>
13
14                 {{* The extended dropdown menu - this would be shown if the tab menu points
15                         doesn't fit in the available space. This is done through flexMenu.js *}}
16                 <li class="pull-right">
17                         <ul class="tabs tabs-extended" role="menu">
18                                 <li role="presentation" class="dropdown flex-target">
19                                         <button type="button" class="btn-link dropdown-toggle" id="dropdownMenuTools" data-toggle="dropdown" aria-expanded="false">
20                                                 <i class="fa fa-chevron-down" aria-hidden="true"></i>
21                                         </button>
22                                 </li>
23                          </ul>
24                 </li>
25         </ul>
26
27         {{* Tab navigation bar for smartphones *}}
28         <ul role="menubar" class="tabbar list-inline visible-xs">
29                 {{* The active menupoint will be shown as one menupoint*}}
30                 <li>
31                         <ul class="tabs" role="menu">
32                                 {{foreach $tabs as $tab}}
33                                         {{if $tab.sel}}
34                                         <li id="{{$tab.id}}-xs" role="presentation" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a role="menuitem" href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
35                                         {{else}}
36                                         {{$exttabs[]=$tab}}
37                                         {{/if}}
38                                 {{/foreach}}
39
40
41                         </ul>
42                 </li>
43
44                 {{* All others are moved to this dropdown menu *}}
45                 <li class="pull-right">
46                         <ul class="tabs tabs-extended">
47                                 <li class="dropdown">
48                                         <button type="button" class="btn-link dropdown-toggle" id="dropdownMenuTools-xs" data-toggle="dropdown" aria-expanded="false">
49                                                 <i class="fa fa-chevron-down" aria-hidden="true"></i>
50                                         </button>
51                                         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenuTools">
52                                                 {{foreach $exttabs as $tab}}
53                                                 <li id="{{$tab.id}}-xs" role="presentation" {{if $tab.sel}} class="{{$tab.sel}}" {{/if}}><a role="menuitem" href="{{$tab.url}}" {{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
54                                                 {{/foreach}}
55                                         </ul>
56                                 </li>
57                         </ul>
58                 </li>
59         </ul>
60 </div>