Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 1 | <?cs # This file defines custom definitions for the masthead (logo, searchbox, tabs, etc) and |
| 2 | left nav (toc) that gets placed on all pages. ?> |
| 3 | |
| 4 | <?cs |
| 5 | def:custom_masthead() ?> |
| 6 | <div id="header"> |
| 7 | <div id="headerLeft"> |
| 8 | <a href="<?cs var:toroot ?>index.html" tabindex="-1"><img |
| 9 | src="<?cs var:toroot ?>assets/images/bg_logo.png" alt="Android Porting Development Kit" /></a> |
| 10 | <ul class="<?cs |
| 11 | if:reference ?> <?cs |
| 12 | elif:guide ?> <?cs |
| 13 | elif:sdk ?> <?cs |
| 14 | elif:home ?> <?cs |
| 15 | elif:community ?> <?cs |
| 16 | elif:publish ?> <?cs |
| 17 | elif:about ?> <?cs /if ?>"> |
| 18 | <li id="home-link"><a href="<?cs var:toroot ?><?cs |
| 19 | if:android.whichdoc != "online-pdk" ?>offline.html<?cs |
| 20 | else ?>index.html<?cs /if ?>"> |
| 21 | <span>Home</span></a></li> |
| 22 | <!--<li id="sdk-link"><a href="<?cs var:toroot ?>index.html"><span>SDK</span></a></li>--> |
| 23 | <li id="guide-link"><a href="<?cs var:toroot ?>guide/index.html" |
| 24 | onClick="return loadLast('guide')"><span>Porting Guide</span></a></li> |
| 25 | <!--<li id="reference-link"><a href="<?cs var:toroot ?>reference/packages.html" |
| 26 | onClick="return loadLast('reference')"><span>Reference</span></a></li> |
| 27 | <li><a href="http://android-developers.blogspot.com"><span>Blog</span></a></li> |
| 28 | <li id="community-link"><a href="<?cs var:toroot ?>community/index.html"><span>Community</span></a></li>--> |
| 29 | </ul> |
| 30 | </div> |
| 31 | <div id="headerRight"> |
| 32 | <div id="headerLinks"> |
| 33 | <!-- <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="" /> --> |
| 34 | <span class="text"> |
| 35 | <!-- <a href="#">English</a> | --> |
| 36 | <a href="http://www.android.com">Android.com</a> |
| 37 | </span> |
| 38 | </div><?cs |
| 39 | call:default_search_box() ?> |
| 40 | </div><!-- headerRight --> |
| 41 | </div><!-- header --><?cs |
| 42 | /def ?><?cs # custom_masthead ?> |
| 43 | |
| 44 | |
| 45 | <?cs |
| 46 | def:guide_nav() ?> |
| 47 | <div class="g-section g-tpl-240" id="body-content"> |
| 48 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 49 | <div id="devdoc-nav"><?cs |
| 50 | include:"../../../../development/pdk/docs/html/guide/guide_toc.cs" ?> |
| 51 | </div> |
| 52 | </div> <!-- end side-nav --> |
| 53 | <script> |
| 54 | addLoadEvent(function() { |
| 55 | scrollIntoView("devdoc-nav"); |
| 56 | }); |
| 57 | </script> |
| 58 | <?cs /def ?> |
| 59 | |
| 60 | <?cs |
| 61 | def:custom_left_nav() ?><?cs |
| 62 | if:guide ?><?cs |
| 63 | call:guide_nav() ?><?cs |
| 64 | else ?><?cs |
| 65 | call:default_left_nav() ?><?cs |
| 66 | /if ?><?cs |
| 67 | /def ?> |
| 68 | |
| 69 | <?cs # appears at the bottom of every page ?><?cs |
| 70 | def:custom_cc_copyright() ?> |
| 71 | Except as noted, this content is |
| 72 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> |
| 73 | Creative Commons Attribution 2.5</a>. For details and |
| 74 | restrictions, see the <a href="<?cs var:toroot ?>license.html">Content |
| 75 | License</a>.<?cs |
| 76 | /def ?> |
| 77 | |
| 78 | <?cs |
| 79 | def:custom_copyright() ?> |
| 80 | Except as noted, this content is licensed under <a |
| 81 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 82 | For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> |
| 83 | Content License</a>.<?cs |
| 84 | /def ?> |
| 85 | |
| 86 | <?cs |
| 87 | def:custom_footerlinks() ?> |
| 88 | <p> |
| 89 | <a href="http://www.android.com/terms.html">Site Terms of Service</a> - |
| 90 | <a href="http://www.android.com/privacy.html">Privacy Policy</a> - |
| 91 | <a href="http://www.android.com/branding.html">Brand Guidelines</a> |
| 92 | </p><?cs |
| 93 | /def ?> |
| 94 | |
| 95 | <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs |
| 96 | def:custom_buildinfo() ?> |
| 97 | Android <?cs var:sdk.platform.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> |
| 98 | <?cs /def ?> |