blob: f355bb7cacfd870bc952655a51d923651c012415 [file] [log] [blame]
Mike Ritter6c4cd9e2009-04-01 17:30:12 -07001<?cs # This file defines custom definitions for the masthead (logo, searchbox, tabs, etc) and
Gaurav Mathurab28cea2009-08-11 22:24:15 -07002left nav (toc) that gets placed on all pages, for the open source site?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -07003
4<?cs
5def:custom_masthead() ?>
6 <div id="header">
7 <div id="headerLeft">
Gaurav Mathurab28cea2009-08-11 22:24:15 -07008 <a href="http://source.android.com" tabindex="-1"><img
Gaurav Mathuree6df9b2009-05-14 16:02:22 -07009 src="<?cs var:toroot ?>assets/images/open_source.png" alt="Open Source Project: Platform Development Kit" /></a>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070010 <ul class="<?cs
Gaurav Mathurab28cea2009-08-11 22:24:15 -070011 if:releases ?> releases<?cs
12 elif:guide ?> guide<?cs
13 elif:licenses ?>licenses <?cs
14 elif:home ?>home <?cs
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070015 elif:getsource ?>getsource <?cs
16 elif:compatibility ?>compatibility <?cs
Gaurav Mathurab28cea2009-08-11 22:24:15 -070017 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 Mathur29b5b2d2009-10-08 23:54:35 -070025 <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 Mathurab28cea2009-08-11 22:24:15 -070029 <li id="community-link"><a href="<?cs var:toroot ?>community/index.html"
30 onClick="return loadLast('community)'"><span>Community</span></a></li>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070031 </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 <!-- &nbsp;<a href="#">English</a> | -->
38 <a href="http://www.android.com">Android.com</a>
39 </span>
Gaurav Mathuree6df9b2009-05-14 16:02:22 -070040 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070041 </div><!-- headerRight -->
42 </div><!-- header --><?cs
43/def ?><?cs # custom_masthead ?>
44
45
46<?cs
47def: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 Mathuree6df9b2009-05-14 16:02:22 -070051 include:"../../../../development/pdk/docs/guide/pdk_toc.cs" ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070052 </div>
53 </div> <!-- end side-nav -->
54 <script>
55 addLoadEvent(function() {
56 scrollIntoView("devdoc-nav");
57 });
58 </script>
59<?cs /def ?>
60
Gaurav Mathurab28cea2009-08-11 22:24:15 -070061<?cs
62def: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
77def: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 Mathur29b5b2d2009-10-08 23:54:35 -070091<?cs
92def: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
107def: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 Ritter6c4cd9e2009-04-01 17:30:12 -0700122<?cs
Gaurav Mathurab28cea2009-08-11 22:24:15 -0700123def: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 Mathur29b5b2d2009-10-08 23:54:35 -0700130 elif:doc.type == "compatibility" ?><?cs
131 call:compatibility_nav() ?><?cs
132 elif:doc.type == "getsource" ?><?cs
133 call:getsource_nav() ?><?cs
Gaurav Mathurab28cea2009-08-11 22:24:15 -0700134 /if ?><?cs
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700135/def ?>
136
137<?cs # appears at the bottom of every page ?><?cs
138def: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 Mathureea82342009-07-22 20:27:12 -0700142 restrictions, see the <a href="http://developer.android.com/license.html">Content
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700143 License</a>.<?cs
144/def ?>
145
146<?cs
147def: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 Mathureea82342009-07-22 20:27:12 -0700150 For details and restrictions, see the <a href="http://developer.android.com/license.html">
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700151 Content License</a>.<?cs
152/def ?>
153
154<?cs
155def: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
164def:custom_buildinfo() ?>
165 Android <?cs var:sdk.platform.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
166<?cs /def ?>