aboutsummaryrefslogtreecommitdiffstats
path: root/site/_includes/header.html
blob: 552cce37996df53e62d79a6e3a3758f1bfbc8a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% if include.language == "" or include.language == nil %}
    {% assign LANGUAGE = "en" %}
{% else %}
    {% assign LANGUAGE = include.language %}
{% endif %}
{% if include.version == "" or include.version == nil %}
    {% assign VERSION = site.default_linked_docs_version %}
{% else %}
    {% assign VERSION = include.version %}
{% endif %}
<!-- LANGUAGE: {{LANGUAGE}} {{include.language}} -->
<!-- VERSION: {{VERSION}} {{include.version}}-->
<header>
    <a class="scroll-point pt-top" name="top"></a>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="{{ site.baseurl }}/"><img id="logo_top" src="{{ site.baseurl }}{{ site.logo.navbar }}"/></a>
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <div class="nav_bar_left">
                    <ul class="nav navbar-nav">
                        <li {% if page.specs_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/getting_started/">Getting Started</a>
                        </li>

                        <li {% if page.specs_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/architecture/">Architecture Guides</a>
                        </li>

                        <li {% if page.appfw_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}//hardware/">Hardware Support</a>
                        </li>

                        <li {% if page.specs_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/devguides/">Developer Guides</a>
                        </li>

                        <li {% if page.appfw_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/apis_services/">APIs & Services</a>
                        </li>

                        <li {% if page.appfw_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/howto/">How To</a>
                        </li>

                        <li {% if page.appfw_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/docs/{{LANGUAGE}}/{{VERSION}}/reference/">Reference</a>
                        </li>
					</ul>
				</div>
                <div class="nav_bar_right">
                    <ul class="nav navbar-nav">
{% comment %} <!-- disabled because posts are not updated - see SPEC-2029 -->
                        <li {% if page.blog_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/techpost" id="blog_button">TechPost<span class="badge" id="new_blog_count"></span></a>
                        </li>
{% endcomment %}
                        <li {% if page.contribute_tab %}class="active"{% endif %}>
                            <a href="{{ site.baseurl }}/contribute">Contribute</a>
                        </li>
                        <li>
                            <form class="navbar-form navbar-right" id="header-search-form" role="search">
                                <div class="input-group">
                                    {% if page.version %}
                                        {% assign version = page.version %}
                                    {% else %}
                                        {% assign version = site.latest_docs_version %}
                                    {% endif %}
                                    <input id="header-search-field" type="text" placeholder="Search '{{ version }}' docs..." class="form-control hidden-xs" autocomplete="off">
                                </div>
                            </form>
                        </li>
                    </ul>
                </div>
            </div><!--/.navbar-collapse -->
        </div>
    </nav>
    <div id="_fixed_navbar_spacer" style="padding-top:50px"></div>
</header>