blob: 3135a0cbea8ff278a5a9d76435d3e3893b0d6d86 [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">
smain@google.comee5b3b12014-10-14 18:47:36 -07009 <div id="header"><?cs call:butter_bar() ?>
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>
smain@google.comcfb92aa2014-06-24 10:29:50 -070070 <li><a href="<?cs var:toroot ?>design/devices.html">Devices</a></li>
Dirk Doughertyc3921652014-05-13 16:55:26 -070071 <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li>
72 <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li>
73 <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li>
74 <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li>
75 <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li>
76 </ul>
77 </li>
78 <li class="develop">
79 <ul>
80 <li><a href="<?cs var:toroot ?>training/index.html"
81 zh-tw-lang="訓練課程"
82 zh-cn-lang="培训"
83 ru-lang="Курсы"
84 ko-lang="교육"
85 ja-lang="トレーニング"
86 es-lang="Capacitación"
87 >Training</a></li>
88 <li><a href="<?cs var:toroot ?>guide/index.html"
89 zh-tw-lang="API 指南"
90 zh-cn-lang="API 指南"
91 ru-lang="Руководства по API"
92 ko-lang="API 가이드"
93 ja-lang="API ガイド"
94 es-lang="Guías de la API"
95 >API Guides</a></li>
96 <li><a href="<?cs var:toroot ?>reference/packages.html"
97 zh-tw-lang="參考資源"
98 zh-cn-lang="参考"
99 ru-lang="Справочник"
100 ko-lang="참조문서"
101 ja-lang="リファレンス"
102 es-lang="Referencia"
103 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700104 <li><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700105 zh-tw-lang="相關工具"
106 zh-cn-lang="工具"
107 ru-lang="Инструменты"
108 ko-lang="도구"
109 ja-lang="ツール"
110 es-lang="Herramientas"
111 >Tools</a>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700112 </li>
113 <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a>
114 </li>
115 <?cs if:android.hasSamples ?>
116 <li><a href="<?cs var:toroot ?>samples/index.html">Samples</a>
117 </li>
118 <?cs /if ?>
119 </ul>
120 </li>
121 <li class="distribute last">
122 <ul>
123 <li><a href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
124 <li><a href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
125 <li><a href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
126 <li><a href="<?cs var:toroot ?>distribute/engage/index.html">Engage &amp; Retain</a></li>
127 <li><a href="<?cs var:toroot ?>distribute/monetize/index.html">Monetize</a></li>
128 <li><a href="<?cs var:toroot ?>distribute/tools/index.html">Tools &amp; Reference</a></li>
129 <li><a href="<?cs var:toroot ?>distribute/stories/index.html">Developer Stories</a></li>
130 </ul>
131 </li>
132 </ul>
133 </div><!-- /Expanded quicknav -->
134 </div><!-- end header-wrap.wrap -->
135 </div><!-- end header -->
136
smain@google.com6040ffa2014-06-13 15:06:23 -0700137 <?cs if:about || wear || tv || auto ?>
138 <!-- Secondary x-nav -->
139 <div id="nav-x">
140 <div class="wrap">
141 <ul class="nav-x col-9 about" style="width:100%">
142 <li class="about"><a href="<?cs var:toroot ?>about/index.html"
143 >About</a></li>
144 <li class="wear"><a href="<?cs var:toroot ?>wear/index.html"
145 >Wear</a></li>
146 <li class="tv"><a href="<?cs var:toroot ?>tv/index.html"
147 >TV</a></li>
148 <li class="auto"><a href="<?cs var:toroot ?>auto/index.html"
149 >Auto</a></li>
150 </ul>
151 </div>
152 </div>
153 <!-- /Sendondary x-nav ABOUT -->
154
155
156
157 <?cs elif:training || guide || reference || tools || develop || google || samples ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700158 <!-- Secondary x-nav -->
159 <div id="nav-x">
160 <div class="wrap">
Robert Ly40e90992012-11-28 17:46:17 -0800161 <ul class="nav-x col-9 develop" style="width:100%">
Scott Mainac2aef52013-02-12 14:15:23 -0800162 <li class="training"><a href="<?cs var:toroot ?>training/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700163 zh-tw-lang="訓練課程"
164 zh-cn-lang="培训"
Scott Main6eb95f12012-10-02 17:12:23 -0700165 ru-lang="Курсы"
166 ko-lang="교육"
167 ja-lang="トレーニング"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700168 es-lang="Capacitación"
Scott Main6eb95f12012-10-02 17:12:23 -0700169 >Training</a></li>
Scott Main932e3fb2013-12-05 15:17:59 -0800170 <li class="guide"><a href="<?cs var:toroot ?>guide/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700171 zh-tw-lang="API 指南"
172 zh-cn-lang="API 指南"
Scott Main6eb95f12012-10-02 17:12:23 -0700173 ru-lang="Руководства по API"
174 ko-lang="API 가이드"
175 ja-lang="API ガイド"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700176 es-lang="Guías de la API"
Scott Main6eb95f12012-10-02 17:12:23 -0700177 >API Guides</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800178 <li class="reference"><a href="<?cs var:toroot ?>reference/packages.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700179 zh-tw-lang="參考資源"
180 zh-cn-lang="参考"
Scott Main6eb95f12012-10-02 17:12:23 -0700181 ru-lang="Справочник"
182 ko-lang="참조문서"
183 ja-lang="リファレンス"
Dirk Doughertyc3921652014-05-13 16:55:26 -0700184 es-lang="Referencia"
Scott Main6eb95f12012-10-02 17:12:23 -0700185 >Reference</a></li>
smain@google.come39012b2014-06-13 11:41:28 -0700186 <li class="tools"><a href="<?cs var:toroot ?>sdk/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700187 zh-tw-lang="相關工具"
188 zh-cn-lang="工具"
Scott Main6eb95f12012-10-02 17:12:23 -0700189 ru-lang="Инструменты"
190 ko-lang="도구"
191 ja-lang="ツール"
Robert Ly40e90992012-11-28 17:46:17 -0800192 es-lang="Herramientas"
Scott Main6eb95f12012-10-02 17:12:23 -0700193 >Tools</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800194 <li class="google"><a href="<?cs var:toroot ?>google/index.html"
Robert Ly40e90992012-11-28 17:46:17 -0800195 >Google Services</a>
196 </li>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700197 <?cs if:android.hasSamples ?>
Scott Maindc63dda2013-08-22 16:03:21 -0700198 <li class="samples"><a href="<?cs var:toroot ?>samples/index.html"
199 >Samples</a>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700200 </li>
201 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700202 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700203 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700204 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700205 <!-- /Sendondary x-nav DEVELOP -->
Dirk Doughertyc3921652014-05-13 16:55:26 -0700206
207 <?cs elif:distribute || googleplay || essentials || users || engage || monetize || disttools || stories ?>
208 <!-- Secondary distribute x-nav -->
209 <div id="nav-x">
210 <div class="wrap">
211 <ul class="nav-x distribute">
212 <li class="googleplay"><a href="<?cs var:toroot ?>distribute/googleplay/index.html"
213 >Google Play</a></li>
214 <li class="essentials"><a href="<?cs var:toroot ?>distribute/essentials/index.html"
215 >Essentials</a></li>
216 <li class="users"><a href="<?cs var:toroot ?>distribute/users/index.html"
217 >Get Users</a></li>
218 <li class="engage"><a href="<?cs var:toroot ?>distribute/engage/index.html"
219 >Engage &amp; Retain</a></li>
220 <li class="monetize"><a href="<?cs var:toroot ?>distribute/monetize/index.html"
221 >Monetize</a>
222 </li>
223 <li class="disttools"><a href="<?cs var:toroot ?>distribute/tools/index.html"
224 >Tools</a>
225 </li>
226 <li class="stories"><a href="<?cs var:toroot ?>distribute/stories/index.html"
227 >Stories</a>
228 </li>
229 </ul>
230 <a href="https://play.google.com/apps/publish/" class="developer-console-btn">Developer Console</a>
231 </div> <!-- /Secondary distribute x-nav -->
232 </div>
smain@google.com6040ffa2014-06-13 15:06:23 -0700233 <!-- /Sendondary x-nav DISTRIBUTE -->
Scott Main01a25452013-02-12 17:32:27 -0800234 <?cs /if ?>
235
Dirk Doughertyc3921652014-05-13 16:55:26 -0700236 <div id="searchResults" class="wrap" style="display:none;">
237 <h2 id="searchTitle">Results</h2>
238 <div id="leftSearchControl" class="search-control">Loading...</div>
239 </div>
240 </div> <!--end header-wrapper -->
Scott Main01a25452013-02-12 17:32:27 -0800241
Dirk Doughertyc3921652014-05-13 16:55:26 -0700242 <div id="sticky-header">
243 <div>
244 <a class="logo" href="#top"></a>
245 <a class="top" href="#top"></a>
246 <ul class="breadcrumb">
247 <?cs # More <li> elements added here with javascript ?>
248 <?cs if:!section.landing ?><li class="current"><?cs var:page.title ?></li><?cs
249 /if ?>
250 </ul>
251 </div>
252 </div>
253
Robert Lye7eeb402014-06-03 19:35:24 -0700254<?cs /if ?><?cs # end if/else !devsite ?>
255<?cs /if ?><?cs # end if/else preview ?><?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700256/def ?>
Robert Lye7eeb402014-06-03 19:35:24 -0700257
258<?cs def:preview_masthead() ?>
259<a name="top"></a>
260
261
262<!-- Header -->
263<div id="header-wrapper">
smain@google.comee5b3b12014-10-14 18:47:36 -0700264 <div id="header"><?cs call:butter_bar() ?>
Robert Lye7eeb402014-06-03 19:35:24 -0700265 <div class="wrap" id="header-wrap">
266 <div class="col_3 logo landing-logo" style="width:240px">
Robert Ly69a08862014-06-22 23:17:33 -0700267 <a href="<?cs var:toroot ?>preview/index.html">
smain@google.com13f0a0b2014-06-20 16:54:50 -0700268 <img src="<?cs var:toroot ?>assets/images/android.png" height="25" alt="Android"
269 style="margin:-3px 0 0" />
Robert Lye7eeb402014-06-03 19:35:24 -0700270 </a>
271 </div>
Robert Ly69a08862014-06-22 23:17:33 -0700272 <div class="col-8" style="margin:0"><h1 style="margin: 4px 0 0 0px;padding:0;line-height:16px;
smain@google.com13f0a0b2014-06-20 16:54:50 -0700273color:#666;font-weight:100;font-size:27px;">L Developer Preview</h1></div>
Robert Lye7eeb402014-06-03 19:35:24 -0700274
275 <?cs # ADD SEARCH AND MENU ?>
276 <?cs call:header_search_widget() ?>
277
278 </div><!-- end header-wrap -->
279 </div><!-- /Header -->
280
281
282 <div id="searchResults" class="wrap" style="display:none;">
283 <h2 id="searchTitle">Results</h2>
284 <div id="leftSearchControl" class="search-control">Loading...</div>
285 </div>
286</div> <!--end header-wrapper -->
287
288<div id="sticky-header">
289 <div>
290 <a class="logo" href="#top"></a>
291 <a class="top" href="#top"></a>
292 <ul class="breadcrumb">
293 <?cs # More <li> elements added here with javascript ?>
294 <?cs if:!section.landing ?><li class="current"><?cs var:page.title ?></li><?cs
295 /if ?>
296 </ul>
297 </div>
298</div>
299
300 <?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700301/def ?>
smain@google.comee5b3b12014-10-14 18:47:36 -0700302
303
304<?cs # (UN)COMMENT THE INSIDE OF THIS METHOD TO TOGGLE VISIBILITY ?>
305<?cs def:butter_bar() ?>
smain@google.comc69af6f2014-10-15 12:48:58 -0700306
307<?cs # HIDE THE BUTTER BAR
308
smain@google.comee5b3b12014-10-14 18:47:36 -0700309 <div style="height:20px"><!-- spacer to bump header down --></div>
310 <div id="butterbar-wrapper">
311 <div id="butterbar">
312 <a href="http://googleblog.blogspot.com/" id="butterbar-message">
313 The Android 5.0 SDK will be available on October 17th!
314 </a>
315 </div>
316 </div>
smain@google.comc69af6f2014-10-15 12:48:58 -0700317
318?>
319
smain@google.comee5b3b12014-10-14 18:47:36 -0700320<?cs /def ?>