blob: dfebb12582428c54b576492ac70229d8348b87f8 [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
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 Ritter6c4cd9e2009-04-01 17:30:12 -070025 </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 <!-- &nbsp;<a href="#">English</a> | -->
32 <a href="http://www.android.com">Android.com</a>
33 </span>
Gaurav Mathuree6df9b2009-05-14 16:02:22 -070034 </div>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070035 </div><!-- headerRight -->
36 </div><!-- header --><?cs
37/def ?><?cs # custom_masthead ?>
38
39
40<?cs
41def: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 Mathuree6df9b2009-05-14 16:02:22 -070045 include:"../../../../development/pdk/docs/guide/pdk_toc.cs" ?>
Mike Ritter6c4cd9e2009-04-01 17:30:12 -070046 </div>
47 </div> <!-- end side-nav -->
48 <script>
49 addLoadEvent(function() {
50 scrollIntoView("devdoc-nav");
51 });
52 </script>
53<?cs /def ?>
54
Gaurav Mathurab28cea2009-08-11 22:24:15 -070055<?cs
56def: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
71def: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 Ritter6c4cd9e2009-04-01 17:30:12 -070085<?cs
Gaurav Mathurab28cea2009-08-11 22:24:15 -070086def: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 Ritter6c4cd9e2009-04-01 17:30:12 -070094/def ?>
95
96<?cs # appears at the bottom of every page ?><?cs
97def: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 Mathureea82342009-07-22 20:27:12 -0700101 restrictions, see the <a href="http://developer.android.com/license.html">Content
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700102 License</a>.<?cs
103/def ?>
104
105<?cs
106def: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 Mathureea82342009-07-22 20:27:12 -0700109 For details and restrictions, see the <a href="http://developer.android.com/license.html">
Mike Ritter6c4cd9e2009-04-01 17:30:12 -0700110 Content License</a>.<?cs
111/def ?>
112
113<?cs
114def: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
123def:custom_buildinfo() ?>
124 Android <?cs var:sdk.platform.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
125<?cs /def ?>