blob: b966977b4ec6a8b37c14d9325423528adce7756a [file] [log] [blame]
Scott Mainadc61d62011-11-30 18:55:01 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
Scott Maine05e6f92013-01-29 13:34:17 -08003<html<?cs if:devsite ?> devsite<?cs /if ?>>
Scott Mainadc61d62011-11-30 18:55:01 -08004<?cs include:"head_tag.cs" ?>
smain@google.comc91ecb72014-06-23 10:22:23 -07005<body class="gc-documentation
Dirk Doughertyc3921652014-05-13 16:55:26 -07006
Joe Fernandeza9d796a2015-05-05 22:07:42 -07007<?cs # add document classes for navigation header selection (and other stuff) ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -07008<?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -07009 if:(google || reference.gms || reference.gcm) ?>google <?cs /if ?><?cs
10 if:ndk ?>ndk<?cs
11 if:guide ?> guide<?cs /if ?><?cs
12 if:samples ?> samples<?cs /if ?><?cs
13 if:reference ?> reference<?cs /if ?><?cs
14 if:downloads ?> downloads<?cs /if ?><?cs
15 else ?><?cs
Quddus Chong2cb2f682015-09-04 14:45:46 -070016 if:(guide||develop||training||reference||tools||sdk||google||samples) ?>develop<?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070017 if:guide ?> guide<?cs /if ?><?cs
18 if:samples ?> samples<?cs /if ?><?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070019 elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>distribute<?cs
20 if:googleplay ?> googleplay<?cs /if ?><?cs
21 if:essentials ?> essentials<?cs /if ?><?cs
22 if:users ?> users<?cs /if ?><?cs
23 if:engage ?> engage<?cs /if ?><?cs
24 if:monetize ?> monetize<?cs /if ?><?cs
25 if:disttools ?> disttools<?cs /if ?><?cs
26 if:stories ?> stories<?cs /if ?><?cs
27 if:analyze ?> analyze<?cs /if ?><?cs
28 elif:(about||wear||tv||auto) ?>about<?cs
29 elif:design ?>design<?cs
30 /if ?><?cs
31 if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs
Dirk Doughertyc3921652014-05-13 16:55:26 -070032/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
33include:"header.cs" ?>
Scott Mainadc61d62011-11-30 18:55:01 -080034
Dirk Doughertyc3921652014-05-13 16:55:26 -070035<div <?cs
36 if:fullpage
37 ?>class="fullpage"<?cs
Dirk Dougherty29e93432015-05-05 18:17:13 -070038 elif:(design||tools||about||sdk||googleplay||essentials||users||engage||monetize||disttools||stories) && !nonavpage
Dirk Doughertyc3921652014-05-13 16:55:26 -070039 ?>class="col-13" id="doc-col"<?cs
40 elif:!nonavpage
41 ?>class="col-12" id="doc-col"<?cs /if ?> >
Scott Mainadc61d62011-11-30 18:55:01 -080042
Dirk Dougherty18dca5d2012-11-30 12:44:40 -080043<?cs if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs # header logic for docs that provide previous/next buttons ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070044 <?cs if:header.hide ?>
45 <?cs else ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070046 <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>">
Scott Maine4d8f1b2012-06-21 18:03:05 -070047 <?cs if:header.justLinks ?>&nbsp;
48 <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1>
49 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070050 <?cs if:training ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070051 <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070052 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070053 zh-tw-lang="上一堂課"
54 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070055 ru-lang="Предыдущий"
56 ko-lang="이전"
57 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080058 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070059 >Previous</a>
60 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070061 zh-tw-lang="下一堂課"
62 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070063 ru-lang="Следующий"
64 ko-lang="다음"
65 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080066 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070067 >Next</a>
68 <a href="#" class="start-class-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070069 zh-tw-lang="開始上課"
70 zh-cn-lang="开始"
Scott Main235f4d42012-10-02 17:12:23 -070071 ru-lang="Начало работы"
72 ko-lang="시작하기"
73 ja-lang="開始する"
Scott Main9ee0fae2014-01-23 10:50:57 -080074 es-lang="Empezar"
Scott Main235f4d42012-10-02 17:12:23 -070075 >Get started</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070076 </div>
Scott Main5a1123e2012-09-26 12:51:28 -070077 <?cs elif:!page.trainingcourse ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070078 <div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070079 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070080 zh-tw-lang="上一堂課"
81 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070082 ru-lang="Предыдущий"
83 ko-lang="이전"
84 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080085 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070086 >Previous</a>
87 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070088 zh-tw-lang="下一堂課"
89 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070090 ru-lang="Следующий"
91 ko-lang="다음"
92 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080093 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070094 >Next</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070095 </div>
96 <?cs /if ?><?cs # end if training ?>
97 </div>
smain@google.com20ef3822014-06-13 16:05:28 -070098 <?cs /if ?><?cs # end if header.hide ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -070099
Dirk Doughertybb2b5532013-11-16 16:07:51 -0800100<?cs elif:samplesProjectIndex ?>
101 <div id="api-info-block">
102 <div class="sum-details-links">
103 Overview
104 &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
105 &#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a>
106 </div><!-- end sum-details-links -->
107 </div><!-- end breadcurmb block -->
108 <h1 itemprop="name"><?cs var:projectDir ?></h1>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700109
Scott Maine4d8f1b2012-06-21 18:03:05 -0700110<?cs else ?>
smain@google.com20ef3822014-06-13 16:05:28 -0700111 <?cs if:training ?>
112<?cs # horrible horrible hack to move TOC up when the next/prev links are not there ?>
113<style>
114 #tb-wrapper {
115 margin-top:6px;
116 }
117</style>
118 <?cs /if ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700119
Scott Maine4d8f1b2012-06-21 18:03:05 -0700120 <?cs if:(!fullpage && !header.hide) ?>
121 <?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?>
122 <div class="landing-banner">
Dirk Doughertybb2b5532013-11-16 16:07:51 -0800123 <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700124 <div class="cols">
125 <div class="col-6">
126 <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" />
127 </div>
128 <div class="col-6">
Scott Main0e71cee2012-08-07 13:59:43 -0700129 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700130 <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1>
131 <p itemprop="description"><?cs var:page.landing.intro ?></p>
Scott Main9ee0fae2014-01-23 10:50:57 -0800132
Scott Mainb505ca62012-07-26 18:00:14 -0700133 <p><a class="next-page-link topic-start-link"></a></p>
Scott Main0e71cee2012-08-07 13:59:43 -0700134 <?cs if:page.landing.image ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700135 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700136 </div>
Scott Main0e71cee2012-08-07 13:59:43 -0700137 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700138 </div>
139 <?cs else ?>
Scott Maine0c11a62012-11-13 07:47:50 -0800140 <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?>
Scott Mainbbffb4b2012-11-13 07:40:16 -0800141 <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs
142 if:tab1 ?><ul id="title-tabs">
143 <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li>
144 <?cs if:tab2 ?>
145 <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?>
146 <?cs if:tab3 ?>
147 <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?>
148 </ul>
Scott Maine0c11a62012-11-13 07:47:50 -0800149 <?cs /if ?>
150 <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800151 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700152 <?cs /if ?>
153<?cs /if ?><?cs # end if design ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800154
155 <?cs # THIS IS THE MAIN DOC CONTENT ?>
156 <div id="jd-content">
Scott Mainadc61d62011-11-30 18:55:01 -0800157
158
Scott Main3652a112012-01-30 13:03:08 -0800159 <div class="jd-descr" itemprop="articleBody">
Scott Mainadc61d62011-11-30 18:55:01 -0800160 <?cs call:tag_list(root.descr) ?>
161 </div>
Scott Main9ee0fae2014-01-23 10:50:57 -0800162
Dirk Dougherty29e93432015-05-05 18:17:13 -0700163 <?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
Scott Main9ee0fae2014-01-23 10:50:57 -0800164 <div class="content-footer <?cs
Dirk Dougherty29e93432015-05-05 18:17:13 -0700165 if:fullpage ?>wrap<?cs /if ?>"
Scott Maine4d8f1b2012-06-21 18:03:05 -0700166 itemscope itemtype="http://schema.org/SiteNavigationElement">
Dirk Dougherty29e93432015-05-05 18:17:13 -0700167 <div class="paging-links">
Scott Main235f4d42012-10-02 17:12:23 -0700168 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700169 zh-tw-lang="下一堂課"
170 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -0700171 ru-lang="Следующий"
172 ko-lang="다음"
173 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -0800174 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -0700175 >Next</a>
Scott Main9ee0fae2014-01-23 10:50:57 -0800176 <a href="#" class="start-class-link hide"
177 zh-tw-lang="開始上課"
178 zh-cn-lang="开始"
179 ru-lang="Начало работы"
180 ko-lang="시작하기"
181 ja-lang="開始する"
182 es-lang="Empezar"
183 >Get started</a>
smain@google.comc91ecb72014-06-23 10:22:23 -0700184 <a href="#" class="next-class-link hide">Next class</a>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700185 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700186 </div>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700187 <?cs /if ?>
Scott Main9ee0fae2014-01-23 10:50:57 -0800188
Scott Mainadc61d62011-11-30 18:55:01 -0800189 </div> <!-- end jd-content -->
190
191<?cs include:"footer.cs" ?>
192</div><!-- end doc-content -->
193
Dirk Doughertyc3921652014-05-13 16:55:26 -0700194<?cs include:"trailer.cs" ?>
Dirk Dougherty8e40c002015-11-20 12:14:57 -0800195 <script src="https://developer.android.com/ytblogger_lists_unified.js?v=17" type="text/javascript"></script>
196 <script src="<?cs var:toroot ?>jd_lists_unified.js?v=17" type="text/javascript"></script>
197 <script src="<?cs var:toroot ?>jd_extras.js?v=17" type="text/javascript"></script>
198 <script src="<?cs var:toroot ?>jd_collections.js?v=17" type="text/javascript"></script>
199 <script src="<?cs var:toroot ?>jd_tag_helpers.js?v=17" type="text/javascript"></script>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700200
Scott Mainadc61d62011-11-30 18:55:01 -0800201</body>
202</html>