1 <?cs # This file defines custom definitions for the masthead (logo, searchbox, tabs, etc) and 2 left nav (toc) that gets placed on all pages, for the open source site?> 3 4 <?cs 5 def:custom_masthead() ?> 6 <div id="header"> 7 <div id="headerLeft"> 8 <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 ?>"> 17 <li id="home-link"><a href="<?cs var:toroot ?>index.html"><span>Home</span></a></li> 18 <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> 22 <li id="compatibility-link"><a href="<?cs var:toroot ?>compatibility/index.html" 23 onClick="return loadLast('compatibility')"><span>Compatibility</span></a></li> 24 <li id="community-link"><a href="<?cs var:toroot ?>community/index.html" 25 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> 30 </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 <!-- <a href="#">English</a> | --> 37 <a href="http://www.android.com">Android.com</a> 38 </span> 39 </div> 40 </div><!-- headerRight --> 41 </div><!-- header --><?cs 42 /def ?><?cs # custom_masthead ?> 43 44 45 <?cs def:community_nav() ?> 46 <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 49 include:"../../../../development/pdk/docs/community/community_toc.cs" ?> 50 </div> 51 </div> <!-- end side-nav --> 52 <script> function()53 addLoadEvent(function() { 54 scrollIntoView("devdoc-nav"); 55 }); 56 </script> 57 </div> 58 <?cs /def ?> 59 60 <?cs def:about_nav() ?> 61 <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 64 include:"../../../../development/pdk/docs/about/about_toc.cs" ?> 65 </div> 66 </div> <!-- end side-nav --> 67 <script> function()68 addLoadEvent(function() { 69 scrollIntoView("devdoc-nav"); 70 }); 71 </script> 72 </div> 73 <?cs /def ?> 74 75 <?cs def:porting_nav() ?> 76 <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 79 include:"../../../../development/pdk/docs/porting/porting_toc.cs" ?> 80 </div> 81 </div> <!-- end side-nav --> 82 <script> function()83 addLoadEvent(function() { 84 scrollIntoView("devdoc-nav"); 85 }); 86 </script> 87 </div> 88 <?cs /def ?> 89 90 <?cs def:source_nav() ?> 91 <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 94 include:"../../../../development/pdk/docs/source/source_toc.cs" ?> 95 </div> 96 </div> <!-- end side-nav --> 97 <script> function()98 addLoadEvent(function() { 99 scrollIntoView("devdoc-nav"); 100 }); 101 </script> 102 </div> 103 <?cs /def ?> 104 105 <?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> function()113 addLoadEvent(function() { 114 scrollIntoView("devdoc-nav"); 115 }); 116 </script> 117 </div> 118 <?cs /def ?> 119 120 <?cs def:compatibility_nav() ?> 121 <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> function()128 addLoadEvent(function() { 129 scrollIntoView("devdoc-nav"); 130 }); 131 </script> 132 </div> 133 <?cs /def ?> 134 135 <?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 ?> 152 153 <?cs # appears at the bottom of every page ?><?cs 154 def: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 158 restrictions, see the <a href="http://developer.android.com/license.html">Content 159 License</a>.<?cs 160 /def ?> 161 162 <?cs 163 def: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>. 166 For details and restrictions, see the <a href="http://developer.android.com/license.html"> 167 Content License</a>.<?cs 168 /def ?> 169 170 <?cs 171 def: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 180 def:custom_buildinfo() ?> 181 Android <?cs var:sdk.platform.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> 182 <?cs /def ?> 183