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 |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame^] | 2 | left nav (toc) that gets placed on all pages, for the open source site?> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 3 | |
| 4 | <?cs |
| 5 | def:custom_masthead() ?> |
| 6 | <div id="header"> |
| 7 | <div id="headerLeft"> |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame^] | 8 | <a href="http://source.android.com" tabindex="-1"><img |
Gaurav Mathur | ee6df9b | 2009-05-14 16:02:22 -0700 | [diff] [blame] | 9 | src="<?cs var:toroot ?>assets/images/open_source.png" alt="Open Source Project: Platform Development Kit" /></a> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 10 | <ul class="<?cs |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame^] | 11 | if:releases ?> releases<?cs |
| 12 | elif:guide ?> guide<?cs |
| 13 | elif:licenses ?>licenses <?cs |
| 14 | elif:home ?>home <?cs |
| 15 | elif:community ?>community <?cs /if ?>"> |
| 16 | <li id="home-link"><a href="<?cs var:toroot ?>index.html"><span>Home</span></a></li> |
| 17 | <li id="guide-link"><a href="<?cs var:toroot ?>guide/index.html" |
| 18 | onClick="return loadLast('guide)'"><span>Guide</span></a></li> |
| 19 | <li id="releases-ink"><a href="<?cs var:toroot ?>releases/index.html" |
| 20 | onClick="return loadLast('releases)'"><span>Releases</span></a></li> |
| 21 | <li id="licenses-link"><a href="<?cs var:toroot ?>licenses/index.html" |
| 22 | onClick="return loadLast('licenses)'"><span>Licenses</span></a></li> |
| 23 | <li id="community-link"><a href="<?cs var:toroot ?>community/index.html" |
| 24 | onClick="return loadLast('community)'"><span>Community</span></a></li> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 25 | </ul> |
| 26 | </div> |
| 27 | <div id="headerRight"> |
| 28 | <div id="headerLinks"> |
| 29 | <!-- <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="" /> --> |
| 30 | <span class="text"> |
| 31 | <!-- <a href="#">English</a> | --> |
| 32 | <a href="http://www.android.com">Android.com</a> |
| 33 | </span> |
Gaurav Mathur | ee6df9b | 2009-05-14 16:02:22 -0700 | [diff] [blame] | 34 | </div> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 35 | </div><!-- headerRight --> |
| 36 | </div><!-- header --><?cs |
| 37 | /def ?><?cs # custom_masthead ?> |
| 38 | |
| 39 | |
| 40 | <?cs |
| 41 | def:guide_nav() ?> |
| 42 | <div class="g-section g-tpl-240" id="body-content"> |
| 43 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 44 | <div id="devdoc-nav"><?cs |
Gaurav Mathur | ee6df9b | 2009-05-14 16:02:22 -0700 | [diff] [blame] | 45 | include:"../../../../development/pdk/docs/guide/pdk_toc.cs" ?> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 46 | </div> |
| 47 | </div> <!-- end side-nav --> |
| 48 | <script> |
| 49 | addLoadEvent(function() { |
| 50 | scrollIntoView("devdoc-nav"); |
| 51 | }); |
| 52 | </script> |
| 53 | <?cs /def ?> |
| 54 | |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame^] | 55 | <?cs |
| 56 | def:licenses_nav() ?> |
| 57 | <div class="g-section g-tpl-240" id="body-content"> |
| 58 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 59 | <div id="devdoc-nav"><?cs |
| 60 | include:"../../../../development/pdk/docs/licenses/licenses_toc.cs" ?> |
| 61 | </div> |
| 62 | </div> <!-- end side-nav --> |
| 63 | <script> |
| 64 | addLoadEvent(function() { |
| 65 | scrollIntoView("devdoc-nav"); |
| 66 | }); |
| 67 | </script> |
| 68 | <?cs /def ?> |
| 69 | |
| 70 | <?cs |
| 71 | def:releases_nav() ?> |
| 72 | <div class="g-section g-tpl-240" id="body-content"> |
| 73 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 74 | <div id="devdoc-nav"><?cs |
| 75 | include:"../../../../development/pdk/docs/releases/releases_toc.cs" ?> |
| 76 | </div> |
| 77 | </div> <!-- end side-nav --> |
| 78 | <script> |
| 79 | addLoadEvent(function() { |
| 80 | scrollIntoView("devdoc-nav"); |
| 81 | }); |
| 82 | </script> |
| 83 | <?cs /def ?> |
| 84 | |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 85 | <?cs |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame^] | 86 | def:custom_left_nav() ?><?cs |
| 87 | if:doc.type == "guide" ?><?cs |
| 88 | call:guide_nav() ?><?cs |
| 89 | elif:doc.type == "licenses" ?><?cs |
| 90 | call:licenses_nav() ?><?cs |
| 91 | elif:doc.type == "releases" ?><?cs |
| 92 | call:releases_nav() ?><?cs |
| 93 | /if ?><?cs |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 94 | /def ?> |
| 95 | |
| 96 | <?cs # appears at the bottom of every page ?><?cs |
| 97 | def:custom_cc_copyright() ?> |
| 98 | Except as noted, this content is |
| 99 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> |
| 100 | Creative Commons Attribution 2.5</a>. For details and |
Gaurav Mathur | eea8234 | 2009-07-22 20:27:12 -0700 | [diff] [blame] | 101 | restrictions, see the <a href="http://developer.android.com/license.html">Content |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 102 | License</a>.<?cs |
| 103 | /def ?> |
| 104 | |
| 105 | <?cs |
| 106 | def:custom_copyright() ?> |
| 107 | Except as noted, this content is licensed under <a |
| 108 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
Gaurav Mathur | eea8234 | 2009-07-22 20:27:12 -0700 | [diff] [blame] | 109 | For details and restrictions, see the <a href="http://developer.android.com/license.html"> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 110 | Content License</a>.<?cs |
| 111 | /def ?> |
| 112 | |
| 113 | <?cs |
| 114 | def:custom_footerlinks() ?> |
| 115 | <p> |
| 116 | <a href="http://www.android.com/terms.html">Site Terms of Service</a> - |
| 117 | <a href="http://www.android.com/privacy.html">Privacy Policy</a> - |
| 118 | <a href="http://www.android.com/branding.html">Brand Guidelines</a> |
| 119 | </p><?cs |
| 120 | /def ?> |
| 121 | |
| 122 | <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs |
| 123 | def:custom_buildinfo() ?> |
| 124 | Android <?cs var:sdk.platform.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> |
| 125 | <?cs /def ?> |