blob: 3e9be06f7f3fc0662a93f15e9ce2de4b937d6a39 [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">
Dan Morrill8a0625b2009-11-06 14:06:06 -08008 <a href="<?cs var:toroot?>" tabindex="-1"><img
9 src="<?cs var:toroot ?>assets/images/open_source.png" alt="Android Open Source Project" /></a>
10 <ul class="<?cs if:home ?>home<?cs
11 elif:doc.type == "source" ?>source<?cs
12 elif:doc.type == "porting" ?>porting<?cs
13 elif:doc.type == "compatibility" ?>compatibility<?cs
14 elif:doc.type == "downloads" ?>downloads<?cs
15 elif:doc.type == "community" ?>community<?cs
16 elif:doc.type == "about" ?>about<?cs /if ?>">
Gaurav Mathurab28cea2009-08-11 22:24:15 -070017 <li id="home-link"><a href="<?cs var:toroot ?>index.html"><span>Home</span></a></li>
Dan Morrill8a0625b2009-11-06 14:06:06 -080018 <li id="source-link"><a href="<?cs var:toroot ?>source/index.html"
19 onClick="return loadLast('source')"><span>Source</span></a></li>
20 <li id="porting-link"><a href="<?cs var:toroot ?>porting/index.html"
21 onClick="return loadLast('porting')"><span>Porting</span></a></li>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070022 <li id="compatibility-link"><a href="<?cs var:toroot ?>compatibility/index.html"
Dan Morrill8a0625b2009-11-06 14:06:06 -080023 onClick="return loadLast('compatibility')"><span>Compatibility</span></a></li>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070024 <li id="community-link"><a href="<?cs var:toroot ?>community/index.html"
Dan Morrill8a0625b2009-11-06 14:06:06 -080025 onClick="return loadLast('community')"><span>Community</span></a></li>
26 <li id="downloads-link"><a href="<?cs var:toroot ?>downloads/index.html"
27 onClick="return loadLast('downloads')"><span>Downloads</span></a></li>
28 <li id="about-link"><a href="<?cs var:toroot ?>about/index.html"
29 onClick="return loadLast('about')"><span>About</span></a></li>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070030 </ul>
31 </div>
32 <div id="headerRight">
33 <div id="headerLinks">
34 <!-- <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="" /> -->
35 <span class="text">
36 <!-- &nbsp;<a href="#">English</a> | -->
37 <a href="http://www.android.com">Android.com</a>
38 </span>
Gaurav Mathuree6df9b2009-05-14 16:02:22 -070039 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070040 </div><!-- headerRight -->
41 </div><!-- header --><?cs
42/def ?><?cs # custom_masthead ?>
43
44
Dan Morrill8a0625b2009-11-06 14:06:06 -080045<?cs def:community_nav() ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070046 <div class="g-section g-tpl-240" id="body-content">
47 <div class="g-unit g-first side-nav-resizable" id="side-nav">
48 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080049 include:"../../../../development/pdk/docs/community/community_toc.cs" ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070050 </div>
51 </div> <!-- end side-nav -->
52 <script>
53 addLoadEvent(function() {
54 scrollIntoView("devdoc-nav");
55 });
56 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080057 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070058<?cs /def ?>
59
Dan Morrill8a0625b2009-11-06 14:06:06 -080060<?cs def:about_nav() ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070061 <div class="g-section g-tpl-240" id="body-content">
62 <div class="g-unit g-first side-nav-resizable" id="side-nav">
63 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080064 include:"../../../../development/pdk/docs/about/about_toc.cs" ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070065 </div>
66 </div> <!-- end side-nav -->
67 <script>
68 addLoadEvent(function() {
69 scrollIntoView("devdoc-nav");
70 });
71 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080072 </div>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070073<?cs /def ?>
74
Dan Morrill8a0625b2009-11-06 14:06:06 -080075<?cs def:porting_nav() ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070076 <div class="g-section g-tpl-240" id="body-content">
77 <div class="g-unit g-first side-nav-resizable" id="side-nav">
78 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080079 include:"../../../../development/pdk/docs/porting/porting_toc.cs" ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070080 </div>
81 </div> <!-- end side-nav -->
82 <script>
83 addLoadEvent(function() {
84 scrollIntoView("devdoc-nav");
85 });
86 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080087 </div>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070088<?cs /def ?>
89
Dan Morrill8a0625b2009-11-06 14:06:06 -080090<?cs def:source_nav() ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070091 <div class="g-section g-tpl-240" id="body-content">
92 <div class="g-unit g-first side-nav-resizable" id="side-nav">
93 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080094 include:"../../../../development/pdk/docs/source/source_toc.cs" ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070095 </div>
96 </div> <!-- end side-nav -->
97 <script>
98 addLoadEvent(function() {
99 scrollIntoView("devdoc-nav");
100 });
101 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -0800102 </div>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700103<?cs /def ?>
104
Dan Morrill8a0625b2009-11-06 14:06:06 -0800105<?cs def:downloads_nav() ?>
106 <div class="g-section g-tpl-240" id="body-content">
107 <div class="g-unit g-first side-nav-resizable" id="side-nav">
108 <div id="devdoc-nav"><?cs
109 include:"../../../../development/pdk/docs/downloads/downloads_toc.cs" ?>
110 </div>
111 </div> <!-- end side-nav -->
112 <script>
113 addLoadEvent(function() {
114 scrollIntoView("devdoc-nav");
115 });
116 </script>
117 </div>
118<?cs /def ?>
119
120<?cs def:compatibility_nav() ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700121 <div class="g-section g-tpl-240" id="body-content">
122 <div class="g-unit g-first side-nav-resizable" id="side-nav">
123 <div id="devdoc-nav"><?cs
124 include:"../../../../development/pdk/docs/compatibility/compatibility_toc.cs" ?>
125 </div>
126 </div> <!-- end side-nav -->
127 <script>
128 addLoadEvent(function() {
129 scrollIntoView("devdoc-nav");
130 });
131 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -0800132 </div>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700133<?cs /def ?>
134
Dan Morrill8a0625b2009-11-06 14:06:06 -0800135<?cs def:custom_left_nav() ?>
136 <?cs if:doc.hidenav != "true" ?>
137 <?cs if:doc.type == "source" ?>
138 <?cs call:source_nav() ?>
139 <?cs elif:doc.type == "porting" ?>
140 <?cs call:porting_nav() ?>
141 <?cs elif:doc.type == "compatibility" ?>
142 <?cs call:compatibility_nav() ?>
143 <?cs elif:doc.type == "downloads" ?>
144 <?cs call:downloads_nav() ?>
145 <?cs elif:doc.type == "community" ?>
146 <?cs call:community_nav() ?>
147 <?cs elif:doc.type == "about" ?>
148 <?cs call:about_nav() ?>
149 <?cs /if ?>
150 <?cs /if ?>
151<?cs /def ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700152
153<?cs # appears at the bottom of every page ?><?cs
154def:custom_cc_copyright() ?>
155 Except as noted, this content is
156 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
157 Creative Commons Attribution 2.5</a>. For details and
Gaurav Mathureea82342009-07-22 20:27:12 -0700158 restrictions, see the <a href="http://developer.android.com/license.html">Content
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700159 License</a>.<?cs
160/def ?>
161
162<?cs
163def:custom_copyright() ?>
164 Except as noted, this content is licensed under <a
165 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
Gaurav Mathureea82342009-07-22 20:27:12 -0700166 For details and restrictions, see the <a href="http://developer.android.com/license.html">
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700167 Content License</a>.<?cs
168/def ?>
169
170<?cs
171def:custom_footerlinks() ?>
172 <p>
173 <a href="http://www.android.com/terms.html">Site Terms of Service</a> -
174 <a href="http://www.android.com/privacy.html">Privacy Policy</a> -
175 <a href="http://www.android.com/branding.html">Brand Guidelines</a>
176 </p><?cs
177/def ?>
178
179<?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs
180def:custom_buildinfo() ?>
181 Android <?cs var:sdk.platform.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
182<?cs /def ?>