blob: 55aaeb9a4ef2933df198e68cbb7ca1ccf0844fe8 [file] [log] [blame]
Ben Dodson4dbb28a2010-08-10 18:22:55 -07001<?cs def:custom_masthead() ?>
Robert Lye7eeb402014-06-03 19:35:24 -07002<?cs if:preview ?>
3 <?cs call:preview_masthead() ?>
4<?cs else ?>
Scott Main01a25452013-02-12 17:32:27 -08005<a name="top"></a>
Dirk Doughertyc3921652014-05-13 16:55:26 -07006<?cs if:!devsite ?><?cs # leave out the global header for devsite; it is in devsite template ?>
7 <!-- Header -->
8 <div id="header-wrapper">
Scott Maine4d8f1b2012-06-21 18:03:05 -07009 <div id="header">
Dirk Doughertyc3921652014-05-13 16:55:26 -070010 <div class="wrap" id="header-wrap">
11 <div class="col-3 logo">
Scott Maine4d8f1b2012-06-21 18:03:05 -070012 <a href="<?cs var:toroot ?>index.html">
Scott Maine921b6d2014-03-26 19:52:14 -070013 <img src="<?cs var:toroot ?>assets/images/dac_logo.png"
14 srcset="<?cs var:toroot ?>assets/images/dac_logo@2x.png 2x"
15 width="123" height="25" alt="Android Developers" />
Scott Maine4d8f1b2012-06-21 18:03:05 -070016 </a>
17 <div class="btn-quicknav" id="btn-quicknav">
Dirk Doughertyc3921652014-05-13 16:55:26 -070018 <a href="#" class="arrow-inactive">Quicknav</a>
19 <a href="#" class="arrow-active">Quicknav</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070020 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -070021 </div>
Dirk Doughertyc3921652014-05-13 16:55:26 -070022 <ul class="nav-x col-9">
23 <li class="design">
24 <a href="<?cs var:toroot ?>design/index.html"
25 zh-tw-lang="設計"
26 zh-cn-lang="设计"
27 ru-lang="Проектирование"
28 ko-lang="디자인"
29 ja-lang="設計"
30 es-lang="Diseñar"
31 >Design</a></li>
32 <li class="develop"><a href="<?cs var:toroot ?>develop/index.html"
33 zh-tw-lang="開發"
34 zh-cn-lang="开发"
35 ru-lang="Разработка"
36 ko-lang="개발"
37 ja-lang="開発"
38 es-lang="Desarrollar"
39 >Develop</a></li>
40 <li class="distribute last"><a href="<?cs var:toroot ?>distribute/<?cs
41 if:android.whichdoc == "offline" ?>googleplay/<?cs /if ?>index.html"
42 zh-tw-lang="發佈"
43 zh-cn-lang="分发"
44 ru-lang="Распространение"
45 ko-lang="배포"
46 ja-lang="配布"
47 es-lang="Distribuir"
48 >Distribute</a></li>
49 </ul>
50
51
52 <?cs # ADD SEARCH AND MENU ?>
53 <?cs call:header_search_widget() ?>
54
55
56 <!-- Expanded quicknav -->
smain@google.com20ef3822014-06-13 16:05:28 -070057 <div id="quicknav" class="col-13">
Dirk Doughertyc3921652014-05-13 16:55:26 -070058 <ul>
smain@google.com20ef3822014-06-13 16:05:28 -070059 <li class="about">
60 <ul>
61 <li><a href="<?cs var:toroot ?>about/index.html">About</a></li>
62 <li><a href="<?cs var:toroot ?>wear/index.html">Wear</a></li>
63 <li><a href="<?cs var:toroot ?>tv/index.html">TV</a></li>
64 <li><a href="<?cs var:toroot ?>auto/index.html">Auto</a></li>
65 </ul>
66 </li>
Dirk Doughertyc3921652014-05-13 16:55:26 -070067 <li class="design">
68 <ul>
69 <li><a href="<?cs var:toroot ?>design/index.html">Get Started</a></li>
70 <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li>
71 <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li>
72 <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li>
73 <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li>
74 <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li>
75 </ul>
76 </li>
77 <li class="develop">
78 <ul>
79 <li><a href="<?cs var:toroot ?>training/index.html"
80 zh-tw-lang="訓練課程"
81 zh-cn-lang="培训"
82 ru-lang="Курсы"
83 ko-lang="교육"
84 ja-lang="トレーニング"
85 es-lang="Capacitación"
86 >Training</a></li>
87 <li><a href="<?cs var:toroot ?>guide/index.html"
88 zh-tw-lang="API 指南"
89 zh-cn-lang="API 指南"
90 ru-lang="Руководства по API"
91 ko-lang="API 가이드"
92 ja-lang="API ガイド"
93 es-lang="Guías de la API"
94 >API Guides</a></li>
95 <li><a href="<?cs var:toroot ?>reference/packages.html"
96 zh-tw-lang="參考資源"
97 zh-cn-lang="参考"
98 ru-lang="Справочник"
99 ko-lang="참조문서"
100 ja-lang="リファレンス"
101 es-lang="Referencia"
102 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700103 <li><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700104 zh-tw-lang="相關工具"
105 zh-cn-lang="工具"
106 ru-lang="Инструменты"
107 ko-lang="도구"
108 ja-lang="ツール"
109 es-lang="Herramientas"
110 >Tools</a>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700111 </li>
112 <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a>
113 </li>
114 <?cs if:android.hasSamples ?>
115 <li><a href="<?cs var:toroot ?>samples/index.html">Samples</a>
116 </li>
117 <?cs /if ?>
118 </ul>
119 </li>
120 <li class="distribute last">
121 <ul>
122 <li><a href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
123 <li><a href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
124 <li><a href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
125 <li><a href="<?cs var:toroot ?>distribute/engage/index.html">Engage &amp; Retain</a></li>
126 <li><a href="<?cs var:toroot ?>distribute/monetize/index.html">Monetize</a></li>
127 <li><a href="<?cs var:toroot ?>distribute/tools/index.html">Tools &amp; Reference</a></li>
128 <li><a href="<?cs var:toroot ?>distribute/stories/index.html">Developer Stories</a></li>
129 </ul>
130 </li>
131 </ul>
132 </div><!-- /Expanded quicknav -->
133 </div><!-- end header-wrap.wrap -->
134 </div><!-- end header -->
135
smain@google.com6040ffa2014-06-13 15:06:23 -0700136 <?cs if:about || wear || tv || auto ?>
137 <!-- Secondary x-nav -->
138 <div id="nav-x">
139 <div class="wrap">
140 <ul class="nav-x col-9 about" style="width:100%">
141 <li class="about"><a href="<?cs var:toroot ?>about/index.html"
142 >About</a></li>
143 <li class="wear"><a href="<?cs var:toroot ?>wear/index.html"
144 >Wear</a></li>
145 <li class="tv"><a href="<?cs var:toroot ?>tv/index.html"
146 >TV</a></li>
147 <li class="auto"><a href="<?cs var:toroot ?>auto/index.html"
148 >Auto</a></li>
149 </ul>
150 </div>
151 </div>
152 <!-- /Sendondary x-nav ABOUT -->
153
154
155
156 <?cs elif:training || guide || reference || tools || develop || google || samples ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700157 <!-- Secondary x-nav -->
158 <div id="nav-x">
159 <div class="wrap">
Robert Ly40e90992012-11-28 17:46:17 -0800160 <ul class="nav-x col-9 develop" style="width:100%">
Scott Mainac2aef52013-02-12 14:15:23 -0800161 <li class="training"><a href="<?cs var:toroot ?>training/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700162 zh-tw-lang="訓練課程"
163 zh-cn-lang="培训"
Scott Main6eb95f12012-10-02 17:12:23 -0700164 ru-lang="Курсы"
165 ko-lang="교육"
166 ja-lang="トレーニング"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700167 es-lang="Capacitación"
Scott Main6eb95f12012-10-02 17:12:23 -0700168 >Training</a></li>
Scott Main932e3fb2013-12-05 15:17:59 -0800169 <li class="guide"><a href="<?cs var:toroot ?>guide/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700170 zh-tw-lang="API 指南"
171 zh-cn-lang="API 指南"
Scott Main6eb95f12012-10-02 17:12:23 -0700172 ru-lang="Руководства по API"
173 ko-lang="API 가이드"
174 ja-lang="API ガイド"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700175 es-lang="Guías de la API"
Scott Main6eb95f12012-10-02 17:12:23 -0700176 >API Guides</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800177 <li class="reference"><a href="<?cs var:toroot ?>reference/packages.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700178 zh-tw-lang="參考資源"
179 zh-cn-lang="参考"
Scott Main6eb95f12012-10-02 17:12:23 -0700180 ru-lang="Справочник"
181 ko-lang="참조문서"
182 ja-lang="リファレンス"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700183 es-lang="Referencia"
Scott Main6eb95f12012-10-02 17:12:23 -0700184 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700185 <li class="tools"><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700186 zh-tw-lang="相關工具"
187 zh-cn-lang="工具"
Scott Main6eb95f12012-10-02 17:12:23 -0700188 ru-lang="Инструменты"
189 ko-lang="도구"
190 ja-lang="ツール"
Robert Ly40e90992012-11-28 17:46:17 -0800191 es-lang="Herramientas"
Scott Main6eb95f12012-10-02 17:12:23 -0700192 >Tools</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800193 <li class="google"><a href="<?cs var:toroot ?>google/index.html"
Robert Ly40e90992012-11-28 17:46:17 -0800194 >Google Services</a>
195 </li>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700196 <?cs if:android.hasSamples ?>
Scott Maindc63dda2013-08-22 16:03:21 -0700197 <li class="samples"><a href="<?cs var:toroot ?>samples/index.html"
198 >Samples</a>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700199 </li>
200 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700201 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700202 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700203 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700204 <!-- /Sendondary x-nav DEVELOP -->
Dirk Doughertyc3921652014-05-13 16:55:26 -0700205
206 <?cs elif:distribute || googleplay || essentials || users || engage || monetize || disttools || stories ?>
207 <!-- Secondary distribute x-nav -->
208 <div id="nav-x">
209 <div class="wrap">
210 <ul class="nav-x distribute">
211 <li class="googleplay"><a href="<?cs var:toroot ?>distribute/googleplay/index.html"
212 >Google Play</a></li>
213 <li class="essentials"><a href="<?cs var:toroot ?>distribute/essentials/index.html"
214 >Essentials</a></li>
215 <li class="users"><a href="<?cs var:toroot ?>distribute/users/index.html"
216 >Get Users</a></li>
217 <li class="engage"><a href="<?cs var:toroot ?>distribute/engage/index.html"
218 >Engage &amp; Retain</a></li>
219 <li class="monetize"><a href="<?cs var:toroot ?>distribute/monetize/index.html"
220 >Monetize</a>
221 </li>
222 <li class="disttools"><a href="<?cs var:toroot ?>distribute/tools/index.html"
223 >Tools</a>
224 </li>
225 <li class="stories"><a href="<?cs var:toroot ?>distribute/stories/index.html"
226 >Stories</a>
227 </li>
228 </ul>
229 <a href="https://play.google.com/apps/publish/" class="developer-console-btn">Developer Console</a>
230 </div> <!-- /Secondary distribute x-nav -->
231 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700232 <!-- /Sendondary x-nav DISTRIBUTE -->
Scott Main01a25452013-02-12 17:32:27 -0800233 <?cs /if ?>
234
Dirk Doughertyc3921652014-05-13 16:55:26 -0700235 <div id="searchResults" class="wrap" style="display:none;">
236 <h2 id="searchTitle">Results</h2>
237 <div id="leftSearchControl" class="search-control">Loading...</div>
238 </div>
239 </div> <!--end header-wrapper -->
Scott Main01a25452013-02-12 17:32:27 -0800240
Dirk Doughertyc3921652014-05-13 16:55:26 -0700241 <div id="sticky-header">
242 <div>
243 <a class="logo" href="#top"></a>
244 <a class="top" href="#top"></a>
245 <ul class="breadcrumb">
246 <?cs # More <li> elements added here with javascript ?>
247 <?cs if:!section.landing ?><li class="current"><?cs var:page.title ?></li><?cs
248 /if ?>
249 </ul>
250 </div>
251 </div>
252
Robert Lye7eeb402014-06-03 19:35:24 -0700253<?cs /if ?><?cs # end if/else !devsite ?>
254<?cs /if ?><?cs # end if/else preview ?><?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700255/def ?>
Robert Lye7eeb402014-06-03 19:35:24 -0700256
257<?cs def:preview_masthead() ?>
258<a name="top"></a>
259
260
261<!-- Header -->
262<div id="header-wrapper">
263 <div id="header">
264 <div class="wrap" id="header-wrap">
265 <div class="col_3 logo landing-logo" style="width:240px">
266 <a href="<?cs var:toroot ?>index.html">
267 <img src="<?cs var:toroot ?>preview/images/android.png"
268 style="margin-top:8px" height="16" alt="L Developer Preview" />
269 </a>
270 </div>
271 <div class="col-8" style="margin:0"><h1 style="margin: 8px 0 0 0px;padding:0;line-height:16px;
272color:#666;font-weight:100;font-size:24px;">L Developer Preview</h1></div>
273
274 <?cs # ADD SEARCH AND MENU ?>
275 <?cs call:header_search_widget() ?>
276
277 </div><!-- end header-wrap -->
278 </div><!-- /Header -->
279
280
281 <div id="searchResults" class="wrap" style="display:none;">
282 <h2 id="searchTitle">Results</h2>
283 <div id="leftSearchControl" class="search-control">Loading...</div>
284 </div>
285</div> <!--end header-wrapper -->
286
287<div id="sticky-header">
288 <div>
289 <a class="logo" href="#top"></a>
290 <a class="top" href="#top"></a>
291 <ul class="breadcrumb">
292 <?cs # More <li> elements added here with javascript ?>
293 <?cs if:!section.landing ?><li class="current"><?cs var:page.title ?></li><?cs
294 /if ?>
295 </ul>
296 </div>
297</div>
298
299 <?cs
300/def ?>