1 <?cs def:custom_masthead() ?> 2 <!-- Header --> 3 <div id="header"> 4 <div class="wrap" id="header-wrap"> 5 <div class="col-3 logo"> 6 <a href="<?cs var:toroot ?>index.html"> 7 <img src="<?cs var:toroot ?>assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" /> 8 </a> 9 <div class="btn-quicknav" id="btn-quicknav"> 10 <a href="#" class="arrow-inactive">Quicknav</a> 11 <a href="#" class="arrow-active">Quicknav</a> 12 </div> 13 </div> 14 <ul class="nav-x col-9"> 15 <li class="design"> 16 <a href="<?cs var:toroot ?>design/index.html" 17 zh-TW-lang="設計" 18 zh-CN-lang="设计" 19 ru-lang="Проектирование" 20 ko-lang="디자인" 21 ja-lang="設計" 22 es-lang="Diseñar" 23 >Design</a></li> 24 <li class="develop"><a href="<?cs var:toroot ?>develop/index.html" 25 zh-TW-lang="開發" 26 zh-CN-lang="开发" 27 ru-lang="Разработка" 28 ko-lang="개발" 29 ja-lang="開発" 30 es-lang="Desarrollar" 31 >Develop</a></li> 32 <li class="distribute last"><a href="<?cs var:toroot ?>distribute/index.html" 33 zh-TW-lang="發佈" 34 zh-CN-lang="分发" 35 ru-lang="Распространение" 36 ko-lang="배포" 37 ja-lang="配布" 38 es-lang="Distribuir" 39 >Distribute</a></li> 40 </ul> 41 42 <!-- New Search --> 43 <div class="menu-container"> 44 <div class="moremenu"> 45 <div id="more-btn"></div> 46 </div> 47 <div class="morehover" id="moremenu"> 48 <div class="top"></div> 49 <div class="mid"> 50 <div class="header">Links</div> 51 <ul> 52 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li> 53 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 54 <li><a href="<?cs var:toroot ?>about/index.html">About Android</a></li> 55 </ul> 56 <div class="header">Android Sites</div> 57 <ul> 58 <li><a href="http://www.android.com">Android.com</a></li> 59 <li class="active"><a>Android Developers</a></li> 60 <li><a href="http://source.android.com">Android Open Source Project</a></li> 61 </ul> 62 63 <?cs ############ TODO: Remove when we're happy with Devsite ############# ?> 64 <?cs # Use differenc lang switcher for devsite and gae server ?> 65 <?cs if:devsite ?> 66 <div class="header">Language</div> 67 <?cs elif:android.whichdoc == "online" ?> 68 <div class="header">Language</div> 69 <div id="language" class="locales"> 70 <select name="language" onChange="changeLangPref(this.value, true)"> 71 <option value="en">English</option> 72 <option value="es">Español</option> 73 <option value="ja">日本語</option> 74 <option value="ko">한국어</option> 75 <option value="ru">Русский</option> 76 <option value="zh-CN">中文 (中国)</option> 77 <option value="zh-TW">中文 (台灣)</option> 78 </select> 79 </div> 80 <script type="text/javascript"> 81 <!-- 82 loadLangPref(); 83 //--> 84 </script> 85 <?cs /if ?> 86 <?cs # End of devsite vs. gae version of lang switcher ?> 87 88 89 <br class="clearfix" /> 90 </div> 91 <div class="bottom"></div> 92 </div> 93 <div class="search" id="search-container"> 94 <div class="search-inner"> 95 <div id="search-btn"></div> 96 <div class="left"></div> 97 <form onsubmit="return submit_search()"> 98 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 99 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 100 onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')" 101 onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" /> 102 </form> 103 <div class="right"></div> 104 <a class="close hide">close</a> 105 <div class="left"></div> 106 <div class="right"></div> 107 </div> 108 </div> 109 <div id="search_filtered_wrapper"> 110 <div id="search_filtered_div" class="no-display"> 111 <ul id="search_filtered"> 112 </ul> 113 </div> 114 </div> 115 116 </div> 117 <!-- /New Search> 118 119 120 <!-- Expanded quicknav --> 121 <div id="quicknav" class="col-9"> 122 <ul> 123 <li class="design"> 124 <ul> 125 <li><a href="<?cs var:toroot ?>design/index.html">Get Started</a></li> 126 <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li> 127 <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li> 128 <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li> 129 <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li> 130 <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li> 131 </ul> 132 </li> 133 <li class="develop"> 134 <ul> 135 <li><a href="<?cs var:toroot ?>training/index.html" 136 zh-TW-lang="訓練課程" 137 zh-CN-lang="培训" 138 ru-lang="Курсы" 139 ko-lang="교육" 140 ja-lang="トレーニング" 141 es-lang="Capacitación" 142 >Training</a></li> 143 <li><a href="<?cs var:toroot ?>guide/components/index.html" 144 zh-TW-lang="API 指南" 145 zh-CN-lang="API 指南" 146 ru-lang="Руководства по API" 147 ko-lang="API 가이드" 148 ja-lang="API ガイド" 149 es-lang="Guías de la API" 150 >API Guides</a></li> 151 <li><a href="<?cs var:toroot ?>reference/packages.html" 152 zh-TW-lang="參考資源" 153 zh-CN-lang="参考" 154 ru-lang="Справочник" 155 ko-lang="참조문서" 156 ja-lang="リファレンス" 157 es-lang="Referencia" 158 >Reference</a></li> 159 <li><a href="<?cs var:toroot ?>tools/index.html" 160 zh-TW-lang="相關工具" 161 zh-CN-lang="工具" 162 ru-lang="Инструменты" 163 ko-lang="도구" 164 ja-lang="ツール" 165 es-lang="Herramientas" 166 >Tools</a> 167 <ul><li><a href="<?cs var:toroot ?>sdk/index.html">Get the SDK</a></li></ul> 168 </li> 169 <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a> 170 </li> 171 </ul> 172 </li> 173 <li class="distribute last"> 174 <ul> 175 <li><a href="<?cs var:toroot ?>distribute/index.html">Google Play</a></li> 176 <li><a href="<?cs var:toroot ?>distribute/googleplay/publish/index.html">Publishing</a></li> 177 <li><a href="<?cs var:toroot ?>distribute/googleplay/promote/index.html">Promoting</a></li> 178 <li><a href="<?cs var:toroot ?>distribute/googleplay/quality/index.html">App Quality</a></li> 179 <li><a href="<?cs var:toroot ?>distribute/googleplay/spotlight/index.html">Spotlight</a></li> 180 <li><a href="<?cs var:toroot ?>distribute/open.html">Open Distribution</a></li> 181 </ul> 182 </li> 183 </ul> 184 </div> 185 <!-- /Expanded quicknav --> 186 </div> 187 </div> 188 <!-- /Header --> 189 190 191 <div id="searchResults" class="wrap" style="display:none;"> 192 <h2 id="searchTitle">Results</h2> 193 <div id="leftSearchControl" class="search-control">Loading...</div> 194 </div> 195 196 197 198 <?cs if:training || guide || reference || tools || develop || google ?> 199 <!-- Secondary x-nav --> 200 <div id="nav-x"> 201 <div class="wrap"> 202 <ul class="nav-x col-9 develop" style="width:100%"> 203 <li class="training"><a href="<?cs var:toroot ?>training/index.html" 204 zh-TW-lang="訓練課程" 205 zh-CN-lang="培训" 206 ru-lang="Курсы" 207 ko-lang="교육" 208 ja-lang="トレーニング" 209 es-lang="Capacitación" 210 >Training</a></li> 211 <li class="guide"><a href="<?cs var:toroot ?>guide/components/index.html" 212 zh-TW-lang="API 指南" 213 zh-CN-lang="API 指南" 214 ru-lang="Руководства по API" 215 ko-lang="API 가이드" 216 ja-lang="API ガイド" 217 es-lang="Guías de la API" 218 >API Guides</a></li> 219 <li class="reference"><a href="<?cs var:toroot ?>reference/packages.html" 220 zh-TW-lang="參考資源" 221 zh-CN-lang="参考" 222 ru-lang="Справочник" 223 ko-lang="참조문서" 224 ja-lang="リファレンス" 225 es-lang="Referencia" 226 >Reference</a></li> 227 <li class="tools"><a href="<?cs var:toroot ?>tools/index.html" 228 zh-TW-lang="相關工具" 229 zh-CN-lang="工具" 230 ru-lang="Инструменты" 231 ko-lang="도구" 232 ja-lang="ツール" 233 es-lang="Herramientas" 234 >Tools</a></li> 235 <li class="google"><a href="<?cs var:toroot ?>google/index.html" 236 >Google Services</a> 237 </li> 238 </ul> 239 </div> 240 241 </div> 242 <!-- /Sendondary x-nav --> 243 <?cs /if ?> 244 <?cs 245 /def ?> 246 247 248 249 250 <?cs def:sac_masthead() ?> 251 <!-- Header --> 252 <div id="header"> 253 <div class="wrap" id="header-wrap"> 254 <div class="col-3 saclogo"> 255 <a href="<?cs var:toroot ?>index.html"> 256 <img src="<?cs var:toroot ?>assets/images/sac_logo.png" width="114" height="16" alt="Android Developers" /> 257 </a> 258 </div> 259 <ul class="nav-x col-9"> 260 <li class="source"> 261 <a href="<?cs var:toroot ?>source/index.html" <?cs 262 if:source ?>class="selected"<?cs /if ?> 263 >Source</a></li> 264 <li class="devices"><a href="<?cs var:toroot ?>devices/index.html" <?cs 265 if:devices ?>class="selected"<?cs /if ?> 266 >Devices</a></li> 267 <li class="accessories"><a href="<?cs var:toroot ?>accessories/index.html" <?cs 268 if:accessories ?>class="selected"<?cs /if ?> 269 >Accessories</a></li> 270 <li class="compatibility last"><a href="<?cs var:toroot ?>compatibility/index.html" <?cs 271 if:compatibility ?>class="selected"<?cs /if ?> 272 >Compatibility</a></li> 273 </ul> 274 <!-- New Search --> 275 <div class="menu-container"> 276 <div class="moremenu"> 277 <div id="more-btn"></div> 278 </div> 279 <div class="morehover" id="moremenu"> 280 <div class="top"></div> 281 <div class="mid"> 282 <div class="header">Android Sites</div> 283 <ul> 284 <li class="active"><a>Android Open Source Project</a></li> 285 <li><a href="http://www.android.com">Android.com</a></li> 286 <li><a href="http://developer.android.com">Android Developers</a></li> 287 </ul> 288 <!-- <div class="header">Support</div> 289 <ul> 290 <li><a href="<?cs var:toroot ?>support.html">Developer Support</a></li> 291 </ul> --> 292 <br class="clearfix" /> 293 </div> 294 <div class="bottom"></div> 295 </div> 296 297 <div class="search" id="search-container"> 298 <div class="search-inner"> 299 <div id="search-btn"></div> 300 <div class="left"></div> 301 <form onsubmit="return submit_search()"> 302 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 303 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 304 onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')" 305 onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" /> 306 </form> 307 <div class="right"></div> 308 <a class="close hide">close</a> 309 <div class="left"></div> 310 <div class="right"></div> 311 </div> 312 </div> 313 <div id="search_filtered_wrapper"> 314 <div id="search_filtered_div" class="no-display"> 315 <ul id="search_filtered"> 316 </ul> 317 </div> 318 </div> 319 320 </div> 321 <!-- /New Search> --> 322 </div> 323 </div> 324 <!-- /Header --> 325 326 <div id="searchResults" class="wrap" style="display:none;"> 327 <h2 id="searchTitle">Results</h2> 328 <div id="leftSearchControl" class="search-control">Loading...</div> 329 </div> 330 331 <?cs 332 /def ?> 333