blob: 8dc6ed9761aa0fad69c6c4f4dd9a24316da9ea1e [file] [log] [blame]
Ben Dodson4dbb28a2010-08-10 18:22:55 -07001<?cs def:custom_masthead() ?>
Scott Main01a25452013-02-12 17:32:27 -08002<a name="top"></a>
Dirk Doughertyc3921652014-05-13 16:55:26 -07003<?cs if:!devsite ?><?cs # leave out the global header for devsite; it is in devsite template ?>
4 <!-- Header -->
5 <div id="header-wrapper">
Scott Maine4d8f1b2012-06-21 18:03:05 -07006 <div id="header">
Dirk Doughertyc3921652014-05-13 16:55:26 -07007 <div class="wrap" id="header-wrap">
8 <div class="col-3 logo">
Scott Maine4d8f1b2012-06-21 18:03:05 -07009 <a href="<?cs var:toroot ?>index.html">
Scott Maine921b6d2014-03-26 19:52:14 -070010 <img src="<?cs var:toroot ?>assets/images/dac_logo.png"
11 srcset="<?cs var:toroot ?>assets/images/dac_logo@2x.png 2x"
12 width="123" height="25" alt="Android Developers" />
Scott Maine4d8f1b2012-06-21 18:03:05 -070013 </a>
14 <div class="btn-quicknav" id="btn-quicknav">
Dirk Doughertyc3921652014-05-13 16:55:26 -070015 <a href="#" class="arrow-inactive">Quicknav</a>
16 <a href="#" class="arrow-active">Quicknav</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070017 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -070018 </div>
Dirk Doughertyc3921652014-05-13 16:55:26 -070019 <ul class="nav-x col-9">
20 <li class="design">
21 <a href="<?cs var:toroot ?>design/index.html"
22 zh-tw-lang="設計"
23 zh-cn-lang="设计"
24 ru-lang="Проектирование"
25 ko-lang="디자인"
26 ja-lang="設計"
27 es-lang="Diseñar"
28 >Design</a></li>
29 <li class="develop"><a href="<?cs var:toroot ?>develop/index.html"
30 zh-tw-lang="開發"
31 zh-cn-lang="开发"
32 ru-lang="Разработка"
33 ko-lang="개발"
34 ja-lang="開発"
35 es-lang="Desarrollar"
36 >Develop</a></li>
37 <li class="distribute last"><a href="<?cs var:toroot ?>distribute/<?cs
38 if:android.whichdoc == "offline" ?>googleplay/<?cs /if ?>index.html"
39 zh-tw-lang="發佈"
40 zh-cn-lang="分发"
41 ru-lang="Распространение"
42 ko-lang="배포"
43 ja-lang="配布"
44 es-lang="Distribuir"
45 >Distribute</a></li>
46 </ul>
47
48
49 <?cs # ADD SEARCH AND MENU ?>
50 <?cs call:header_search_widget() ?>
51
52
53 <!-- Expanded quicknav -->
smain@google.com20ef3822014-06-13 16:05:28 -070054 <div id="quicknav" class="col-13">
Dirk Doughertyc3921652014-05-13 16:55:26 -070055 <ul>
smain@google.com20ef3822014-06-13 16:05:28 -070056 <li class="about">
57 <ul>
58 <li><a href="<?cs var:toroot ?>about/index.html">About</a></li>
59 <li><a href="<?cs var:toroot ?>wear/index.html">Wear</a></li>
60 <li><a href="<?cs var:toroot ?>tv/index.html">TV</a></li>
61 <li><a href="<?cs var:toroot ?>auto/index.html">Auto</a></li>
62 </ul>
63 </li>
Dirk Doughertyc3921652014-05-13 16:55:26 -070064 <li class="design">
65 <ul>
66 <li><a href="<?cs var:toroot ?>design/index.html">Get Started</a></li>
67 <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li>
68 <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li>
69 <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li>
70 <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li>
71 <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li>
72 </ul>
73 </li>
74 <li class="develop">
75 <ul>
76 <li><a href="<?cs var:toroot ?>training/index.html"
77 zh-tw-lang="訓練課程"
78 zh-cn-lang="培训"
79 ru-lang="Курсы"
80 ko-lang="교육"
81 ja-lang="トレーニング"
82 es-lang="Capacitación"
83 >Training</a></li>
84 <li><a href="<?cs var:toroot ?>guide/index.html"
85 zh-tw-lang="API 指南"
86 zh-cn-lang="API 指南"
87 ru-lang="Руководства по API"
88 ko-lang="API 가이드"
89 ja-lang="API ガイド"
90 es-lang="Guías de la API"
91 >API Guides</a></li>
92 <li><a href="<?cs var:toroot ?>reference/packages.html"
93 zh-tw-lang="參考資源"
94 zh-cn-lang="参考"
95 ru-lang="Справочник"
96 ko-lang="참조문서"
97 ja-lang="リファレンス"
98 es-lang="Referencia"
99 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700100 <li><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700101 zh-tw-lang="相關工具"
102 zh-cn-lang="工具"
103 ru-lang="Инструменты"
104 ko-lang="도구"
105 ja-lang="ツール"
106 es-lang="Herramientas"
107 >Tools</a>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700108 </li>
109 <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a>
110 </li>
111 <?cs if:android.hasSamples ?>
112 <li><a href="<?cs var:toroot ?>samples/index.html">Samples</a>
113 </li>
114 <?cs /if ?>
115 </ul>
116 </li>
117 <li class="distribute last">
118 <ul>
119 <li><a href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
120 <li><a href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
121 <li><a href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
122 <li><a href="<?cs var:toroot ?>distribute/engage/index.html">Engage &amp; Retain</a></li>
123 <li><a href="<?cs var:toroot ?>distribute/monetize/index.html">Monetize</a></li>
124 <li><a href="<?cs var:toroot ?>distribute/tools/index.html">Tools &amp; Reference</a></li>
125 <li><a href="<?cs var:toroot ?>distribute/stories/index.html">Developer Stories</a></li>
126 </ul>
127 </li>
128 </ul>
129 </div><!-- /Expanded quicknav -->
130 </div><!-- end header-wrap.wrap -->
131 </div><!-- end header -->
132
smain@google.com6040ffa2014-06-13 15:06:23 -0700133 <?cs if:about || wear || tv || auto ?>
134 <!-- Secondary x-nav -->
135 <div id="nav-x">
136 <div class="wrap">
137 <ul class="nav-x col-9 about" style="width:100%">
138 <li class="about"><a href="<?cs var:toroot ?>about/index.html"
139 >About</a></li>
140 <li class="wear"><a href="<?cs var:toroot ?>wear/index.html"
141 >Wear</a></li>
142 <li class="tv"><a href="<?cs var:toroot ?>tv/index.html"
143 >TV</a></li>
144 <li class="auto"><a href="<?cs var:toroot ?>auto/index.html"
145 >Auto</a></li>
146 </ul>
147 </div>
148 </div>
149 <!-- /Sendondary x-nav ABOUT -->
150
151
152
153 <?cs elif:training || guide || reference || tools || develop || google || samples ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700154 <!-- Secondary x-nav -->
155 <div id="nav-x">
156 <div class="wrap">
Robert Ly40e90992012-11-28 17:46:17 -0800157 <ul class="nav-x col-9 develop" style="width:100%">
Scott Mainac2aef52013-02-12 14:15:23 -0800158 <li class="training"><a href="<?cs var:toroot ?>training/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700159 zh-tw-lang="訓練課程"
160 zh-cn-lang="培训"
Scott Main6eb95f12012-10-02 17:12:23 -0700161 ru-lang="Курсы"
162 ko-lang="교육"
163 ja-lang="トレーニング"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700164 es-lang="Capacitación"
Scott Main6eb95f12012-10-02 17:12:23 -0700165 >Training</a></li>
Scott Main932e3fb2013-12-05 15:17:59 -0800166 <li class="guide"><a href="<?cs var:toroot ?>guide/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700167 zh-tw-lang="API 指南"
168 zh-cn-lang="API 指南"
Scott Main6eb95f12012-10-02 17:12:23 -0700169 ru-lang="Руководства по API"
170 ko-lang="API 가이드"
171 ja-lang="API ガイド"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700172 es-lang="Guías de la API"
Scott Main6eb95f12012-10-02 17:12:23 -0700173 >API Guides</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800174 <li class="reference"><a href="<?cs var:toroot ?>reference/packages.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700175 zh-tw-lang="參考資源"
176 zh-cn-lang="参考"
Scott Main6eb95f12012-10-02 17:12:23 -0700177 ru-lang="Справочник"
178 ko-lang="참조문서"
179 ja-lang="リファレンス"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700180 es-lang="Referencia"
Scott Main6eb95f12012-10-02 17:12:23 -0700181 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700182 <li class="tools"><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700183 zh-tw-lang="相關工具"
184 zh-cn-lang="工具"
Scott Main6eb95f12012-10-02 17:12:23 -0700185 ru-lang="Инструменты"
186 ko-lang="도구"
187 ja-lang="ツール"
Robert Ly40e90992012-11-28 17:46:17 -0800188 es-lang="Herramientas"
Scott Main6eb95f12012-10-02 17:12:23 -0700189 >Tools</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800190 <li class="google"><a href="<?cs var:toroot ?>google/index.html"
Robert Ly40e90992012-11-28 17:46:17 -0800191 >Google Services</a>
192 </li>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700193 <?cs if:android.hasSamples ?>
Scott Maindc63dda2013-08-22 16:03:21 -0700194 <li class="samples"><a href="<?cs var:toroot ?>samples/index.html"
195 >Samples</a>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700196 </li>
197 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700198 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700199 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700200 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700201 <!-- /Sendondary x-nav DEVELOP -->
Dirk Doughertyc3921652014-05-13 16:55:26 -0700202
203 <?cs elif:distribute || googleplay || essentials || users || engage || monetize || disttools || stories ?>
204 <!-- Secondary distribute x-nav -->
205 <div id="nav-x">
206 <div class="wrap">
207 <ul class="nav-x distribute">
208 <li class="googleplay"><a href="<?cs var:toroot ?>distribute/googleplay/index.html"
209 >Google Play</a></li>
210 <li class="essentials"><a href="<?cs var:toroot ?>distribute/essentials/index.html"
211 >Essentials</a></li>
212 <li class="users"><a href="<?cs var:toroot ?>distribute/users/index.html"
213 >Get Users</a></li>
214 <li class="engage"><a href="<?cs var:toroot ?>distribute/engage/index.html"
215 >Engage &amp; Retain</a></li>
216 <li class="monetize"><a href="<?cs var:toroot ?>distribute/monetize/index.html"
217 >Monetize</a>
218 </li>
219 <li class="disttools"><a href="<?cs var:toroot ?>distribute/tools/index.html"
220 >Tools</a>
221 </li>
222 <li class="stories"><a href="<?cs var:toroot ?>distribute/stories/index.html"
223 >Stories</a>
224 </li>
225 </ul>
226 <a href="https://play.google.com/apps/publish/" class="developer-console-btn">Developer Console</a>
227 </div> <!-- /Secondary distribute x-nav -->
228 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700229 <!-- /Sendondary x-nav DISTRIBUTE -->
Scott Main01a25452013-02-12 17:32:27 -0800230 <?cs /if ?>
231
Dirk Doughertyc3921652014-05-13 16:55:26 -0700232 <div id="searchResults" class="wrap" style="display:none;">
233 <h2 id="searchTitle">Results</h2>
234 <div id="leftSearchControl" class="search-control">Loading...</div>
235 </div>
236 </div> <!--end header-wrapper -->
Scott Main01a25452013-02-12 17:32:27 -0800237
Dirk Doughertyc3921652014-05-13 16:55:26 -0700238 <div id="sticky-header">
239 <div>
240 <a class="logo" href="#top"></a>
241 <a class="top" href="#top"></a>
242 <ul class="breadcrumb">
243 <?cs # More <li> elements added here with javascript ?>
244 <?cs if:!section.landing ?><li class="current"><?cs var:page.title ?></li><?cs
245 /if ?>
246 </ul>
247 </div>
248 </div>
249
smain@google.com6040ffa2014-06-13 15:06:23 -0700250<?cs /if ?><?cs # end if/else !devsite ?><?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700251/def ?>