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 |
Gaurav Mathur | 29b5b2d | 2009-10-08 23:54:35 -0700 | [diff] [blame^] | 15 | elif:getsource ?>getsource <?cs |
| 16 | elif:compatibility ?>compatibility <?cs |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame] | 17 | elif:community ?>community <?cs /if ?>"> |
| 18 | <li id="home-link"><a href="<?cs var:toroot ?>index.html"><span>Home</span></a></li> |
| 19 | <li id="guide-link"><a href="<?cs var:toroot ?>guide/index.html" |
| 20 | onClick="return loadLast('guide)'"><span>Guide</span></a></li> |
| 21 | <li id="releases-ink"><a href="<?cs var:toroot ?>releases/index.html" |
| 22 | onClick="return loadLast('releases)'"><span>Releases</span></a></li> |
| 23 | <li id="licenses-link"><a href="<?cs var:toroot ?>licenses/index.html" |
| 24 | onClick="return loadLast('licenses)'"><span>Licenses</span></a></li> |
Gaurav Mathur | 29b5b2d | 2009-10-08 23:54:35 -0700 | [diff] [blame^] | 25 | <li id="getsource-link"><a href="<?cs var:toroot ?>getsource/index.html" |
| 26 | onClick="return loadLast('getsource)'"><span>Get Source</span></a></li> |
| 27 | <li id="compatibility-link"><a href="<?cs var:toroot ?>compatibility/index.html" |
| 28 | onClick="return loadLast('compatibility)'"><span>Compatibility</span></a></li> |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame] | 29 | <li id="community-link"><a href="<?cs var:toroot ?>community/index.html" |
| 30 | onClick="return loadLast('community)'"><span>Community</span></a></li> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 31 | </ul> |
| 32 | </div> |
| 33 | <div id="headerRight"> |
| 34 | <div id="headerLinks"> |
| 35 | <!-- <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="" /> --> |
| 36 | <span class="text"> |
| 37 | <!-- <a href="#">English</a> | --> |
| 38 | <a href="http://www.android.com">Android.com</a> |
| 39 | </span> |
Gaurav Mathur | ee6df9b | 2009-05-14 16:02:22 -0700 | [diff] [blame] | 40 | </div> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 41 | </div><!-- headerRight --> |
| 42 | </div><!-- header --><?cs |
| 43 | /def ?><?cs # custom_masthead ?> |
| 44 | |
| 45 | |
| 46 | <?cs |
| 47 | def:guide_nav() ?> |
| 48 | <div class="g-section g-tpl-240" id="body-content"> |
| 49 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 50 | <div id="devdoc-nav"><?cs |
Gaurav Mathur | ee6df9b | 2009-05-14 16:02:22 -0700 | [diff] [blame] | 51 | include:"../../../../development/pdk/docs/guide/pdk_toc.cs" ?> |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 52 | </div> |
| 53 | </div> <!-- end side-nav --> |
| 54 | <script> |
| 55 | addLoadEvent(function() { |
| 56 | scrollIntoView("devdoc-nav"); |
| 57 | }); |
| 58 | </script> |
| 59 | <?cs /def ?> |
| 60 | |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame] | 61 | <?cs |
| 62 | def:licenses_nav() ?> |
| 63 | <div class="g-section g-tpl-240" id="body-content"> |
| 64 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 65 | <div id="devdoc-nav"><?cs |
| 66 | include:"../../../../development/pdk/docs/licenses/licenses_toc.cs" ?> |
| 67 | </div> |
| 68 | </div> <!-- end side-nav --> |
| 69 | <script> |
| 70 | addLoadEvent(function() { |
| 71 | scrollIntoView("devdoc-nav"); |
| 72 | }); |
| 73 | </script> |
| 74 | <?cs /def ?> |
| 75 | |
| 76 | <?cs |
| 77 | def:releases_nav() ?> |
| 78 | <div class="g-section g-tpl-240" id="body-content"> |
| 79 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 80 | <div id="devdoc-nav"><?cs |
| 81 | include:"../../../../development/pdk/docs/releases/releases_toc.cs" ?> |
| 82 | </div> |
| 83 | </div> <!-- end side-nav --> |
| 84 | <script> |
| 85 | addLoadEvent(function() { |
| 86 | scrollIntoView("devdoc-nav"); |
| 87 | }); |
| 88 | </script> |
| 89 | <?cs /def ?> |
| 90 | |
Gaurav Mathur | 29b5b2d | 2009-10-08 23:54:35 -0700 | [diff] [blame^] | 91 | <?cs |
| 92 | def:getsource_nav() ?> |
| 93 | <div class="g-section g-tpl-240" id="body-content"> |
| 94 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 95 | <div id="devdoc-nav"><?cs |
| 96 | include:"../../../../development/pdk/docs/getsource/getsource_toc.cs" ?> |
| 97 | </div> |
| 98 | </div> <!-- end side-nav --> |
| 99 | <script> |
| 100 | addLoadEvent(function() { |
| 101 | scrollIntoView("devdoc-nav"); |
| 102 | }); |
| 103 | </script> |
| 104 | <?cs /def ?> |
| 105 | |
| 106 | <?cs |
| 107 | def:compatibility_nav() ?> |
| 108 | <div class="g-section g-tpl-240" id="body-content"> |
| 109 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 110 | <div id="devdoc-nav"><?cs |
| 111 | include:"../../../../development/pdk/docs/compatibility/compatibility_toc.cs" ?> |
| 112 | </div> |
| 113 | </div> <!-- end side-nav --> |
| 114 | <script> |
| 115 | addLoadEvent(function() { |
| 116 | scrollIntoView("devdoc-nav"); |
| 117 | }); |
| 118 | </script> |
| 119 | <?cs /def ?> |
| 120 | |
| 121 | |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 122 | <?cs |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame] | 123 | def:custom_left_nav() ?><?cs |
| 124 | if:doc.type == "guide" ?><?cs |
| 125 | call:guide_nav() ?><?cs |
| 126 | elif:doc.type == "licenses" ?><?cs |
| 127 | call:licenses_nav() ?><?cs |
| 128 | elif:doc.type == "releases" ?><?cs |
| 129 | call:releases_nav() ?><?cs |
Gaurav Mathur | 29b5b2d | 2009-10-08 23:54:35 -0700 | [diff] [blame^] | 130 | elif:doc.type == "compatibility" ?><?cs |
| 131 | call:compatibility_nav() ?><?cs |
| 132 | elif:doc.type == "getsource" ?><?cs |
| 133 | call:getsource_nav() ?><?cs |
Gaurav Mathur | ab28cea | 2009-08-11 22:24:15 -0700 | [diff] [blame] | 134 | /if ?><?cs |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 135 | /def ?> |
| 136 | |
| 137 | <?cs # appears at the bottom of every page ?><?cs |
| 138 | def:custom_cc_copyright() ?> |
| 139 | Except as noted, this content is |
| 140 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> |
| 141 | Creative Commons Attribution 2.5</a>. For details and |
Gaurav Mathur | eea8234 | 2009-07-22 20:27:12 -0700 | [diff] [blame] | 142 | restrictions, see the <a href="http://developer.android.com/license.html">Content |
Mike Ritter | 6c4cd9e | 2009-04-01 17:30:12 -0700 | [diff] [blame] | 143 | License</a>.<?cs |
| 144 | /def ?> |
| 145 | |
| 146 | <?cs |
| 147 | def:custom_copyright() ?> |
| 148 | Except as noted, this content is licensed under <a |
| 149 | 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] | 150 | 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] | 151 | Content License</a>.<?cs |
| 152 | /def ?> |
| 153 | |
| 154 | <?cs |
| 155 | def:custom_footerlinks() ?> |
| 156 | <p> |
| 157 | <a href="http://www.android.com/terms.html">Site Terms of Service</a> - |
| 158 | <a href="http://www.android.com/privacy.html">Privacy Policy</a> - |
| 159 | <a href="http://www.android.com/branding.html">Brand Guidelines</a> |
| 160 | </p><?cs |
| 161 | /def ?> |
| 162 | |
| 163 | <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs |
| 164 | def:custom_buildinfo() ?> |
| 165 | Android <?cs var:sdk.platform.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> |
| 166 | <?cs /def ?> |