blob: 3d80cc8e992758a3da93afc53caaad6114f56e3a [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
Dan Morrill8a0625b2009-11-06 14:06:06 -080014 elif:doc.type == "community" ?>community<?cs
15 elif:doc.type == "about" ?>about<?cs /if ?>">
Gaurav Mathurab28cea2009-08-11 22:24:15 -070016 <li id="home-link"><a href="<?cs var:toroot ?>index.html"><span>Home</span></a></li>
Dan Morrill8a0625b2009-11-06 14:06:06 -080017 <li id="source-link"><a href="<?cs var:toroot ?>source/index.html"
18 onClick="return loadLast('source')"><span>Source</span></a></li>
19 <li id="porting-link"><a href="<?cs var:toroot ?>porting/index.html"
20 onClick="return loadLast('porting')"><span>Porting</span></a></li>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070021 <li id="compatibility-link"><a href="<?cs var:toroot ?>compatibility/index.html"
Dan Morrill8a0625b2009-11-06 14:06:06 -080022 onClick="return loadLast('compatibility')"><span>Compatibility</span></a></li>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070023 <li id="community-link"><a href="<?cs var:toroot ?>community/index.html"
Dan Morrill8a0625b2009-11-06 14:06:06 -080024 onClick="return loadLast('community')"><span>Community</span></a></li>
Dan Morrill8a0625b2009-11-06 14:06:06 -080025 <li id="about-link"><a href="<?cs var:toroot ?>about/index.html"
26 onClick="return loadLast('about')"><span>About</span></a></li>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070027 </ul>
28 </div>
29 <div id="headerRight">
30 <div id="headerLinks">
31 <!-- <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="" /> -->
32 <span class="text">
33 <!-- &nbsp;<a href="#">English</a> | -->
34 <a href="http://www.android.com">Android.com</a>
35 </span>
Gaurav Mathuree6df9b2009-05-14 16:02:22 -070036 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070037 </div><!-- headerRight -->
38 </div><!-- header --><?cs
39/def ?><?cs # custom_masthead ?>
40
41
Dan Morrill8a0625b2009-11-06 14:06:06 -080042<?cs def:community_nav() ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070043 <div class="g-section g-tpl-240" id="body-content">
44 <div class="g-unit g-first side-nav-resizable" id="side-nav">
45 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080046 include:"../../../../development/pdk/docs/community/community_toc.cs" ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070047 </div>
48 </div> <!-- end side-nav -->
49 <script>
50 addLoadEvent(function() {
51 scrollIntoView("devdoc-nav");
52 });
53 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080054 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070055<?cs /def ?>
56
Dan Morrill8a0625b2009-11-06 14:06:06 -080057<?cs def:about_nav() ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070058 <div class="g-section g-tpl-240" id="body-content">
59 <div class="g-unit g-first side-nav-resizable" id="side-nav">
60 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080061 include:"../../../../development/pdk/docs/about/about_toc.cs" ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070062 </div>
63 </div> <!-- end side-nav -->
64 <script>
65 addLoadEvent(function() {
66 scrollIntoView("devdoc-nav");
67 });
68 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080069 </div>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070070<?cs /def ?>
71
Dan Morrill8a0625b2009-11-06 14:06:06 -080072<?cs def:porting_nav() ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070073 <div class="g-section g-tpl-240" id="body-content">
74 <div class="g-unit g-first side-nav-resizable" id="side-nav">
75 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080076 include:"../../../../development/pdk/docs/porting/porting_toc.cs" ?>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070077 </div>
78 </div> <!-- end side-nav -->
79 <script>
80 addLoadEvent(function() {
81 scrollIntoView("devdoc-nav");
82 });
83 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080084 </div>
Gaurav Mathurab28cea2009-08-11 22:24:15 -070085<?cs /def ?>
86
Dan Morrill8a0625b2009-11-06 14:06:06 -080087<?cs def:source_nav() ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070088 <div class="g-section g-tpl-240" id="body-content">
89 <div class="g-unit g-first side-nav-resizable" id="side-nav">
90 <div id="devdoc-nav"><?cs
Dan Morrill8a0625b2009-11-06 14:06:06 -080091 include:"../../../../development/pdk/docs/source/source_toc.cs" ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -070092 </div>
93 </div> <!-- end side-nav -->
94 <script>
95 addLoadEvent(function() {
96 scrollIntoView("devdoc-nav");
97 });
98 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -080099 </div>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700100<?cs /def ?>
101
Dan Morrill8a0625b2009-11-06 14:06:06 -0800102<?cs def:compatibility_nav() ?>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700103 <div class="g-section g-tpl-240" id="body-content">
104 <div class="g-unit g-first side-nav-resizable" id="side-nav">
105 <div id="devdoc-nav"><?cs
106 include:"../../../../development/pdk/docs/compatibility/compatibility_toc.cs" ?>
107 </div>
108 </div> <!-- end side-nav -->
109 <script>
110 addLoadEvent(function() {
111 scrollIntoView("devdoc-nav");
112 });
113 </script>
Dan Morrill8a0625b2009-11-06 14:06:06 -0800114 </div>
Gaurav Mathur29b5b2d2009-10-08 23:54:35 -0700115<?cs /def ?>
116
Dan Morrill8a0625b2009-11-06 14:06:06 -0800117<?cs def:custom_left_nav() ?>
118 <?cs if:doc.hidenav != "true" ?>
119 <?cs if:doc.type == "source" ?>
120 <?cs call:source_nav() ?>
121 <?cs elif:doc.type == "porting" ?>
122 <?cs call:porting_nav() ?>
123 <?cs elif:doc.type == "compatibility" ?>
124 <?cs call:compatibility_nav() ?>
Dan Morrill8a0625b2009-11-06 14:06:06 -0800125 <?cs elif:doc.type == "community" ?>
126 <?cs call:community_nav() ?>
127 <?cs elif:doc.type == "about" ?>
128 <?cs call:about_nav() ?>
129 <?cs /if ?>
130 <?cs /if ?>
131<?cs /def ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700132
133<?cs # appears at the bottom of every page ?><?cs
134def:custom_cc_copyright() ?>
135 Except as noted, this content is
136 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
137 Creative Commons Attribution 2.5</a>. For details and
Gaurav Mathureea82342009-07-22 20:27:12 -0700138 restrictions, see the <a href="http://developer.android.com/license.html">Content
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700139 License</a>.<?cs
140/def ?>
141
142<?cs
143def:custom_copyright() ?>
144 Except as noted, this content is licensed under <a
145 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
Gaurav Mathureea82342009-07-22 20:27:12 -0700146 For details and restrictions, see the <a href="http://developer.android.com/license.html">
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700147 Content License</a>.<?cs
148/def ?>
149
150<?cs
151def:custom_footerlinks() ?>
152 <p>
153 <a href="http://www.android.com/terms.html">Site Terms of Service</a> -
154 <a href="http://www.android.com/privacy.html">Privacy Policy</a> -
155 <a href="http://www.android.com/branding.html">Brand Guidelines</a>
156 </p><?cs
157/def ?>
158
159<?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs
160def:custom_buildinfo() ?>
161 Android <?cs var:sdk.platform.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
162<?cs /def ?>