blob: f1e34e2cbdee75b37b42313404dba54bc2c4db57 [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" ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -07005<body class="gc-documentation
6
7<?cs
8if:(google || reference.gms || reference.gcm) ?>google<?cs /if ?><?cs
9 if:(guide||develop||training||reference||tools||sdk||samples) ?>develop<?cs
10 if:guide ?> guide<?cs /if ?><?cs
11 if:samples ?> samples<?cs /if ?><?cs
12 elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories)
13 ?>distribute<?cs
14 if:googleplay ?> googleplay<?cs /if ?><?cs
15 if:essentials ?> essentials<?cs /if ?><?cs
16 if:users ?> users<?cs /if ?><?cs
17 if:engage ?> engage<?cs /if ?><?cs
18 if:monetize ?> monetize<?cs /if ?><?cs
19 if:disttools ?> disttools<?cs /if ?><?cs
20 if:stories ?> stories<?cs /if ?><?cs
smain@google.com6040ffa2014-06-13 15:06:23 -070021 elif:(about||wear||tv||auto) ?>about<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -070022 elif:design ?>design<?cs
Dirk Doughertyc3921652014-05-13 16:55:26 -070023/if ?><?cs
24if:page.trainingcourse ?> trainingcourse<?cs
25/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
26include:"header.cs" ?>
Scott Mainadc61d62011-11-30 18:55:01 -080027
Dirk Doughertyc3921652014-05-13 16:55:26 -070028<div <?cs
29 if:fullpage
30 ?>class="fullpage"<?cs
31 elif:(design||tools||about||sdk||googleplay||essentials||users||monetize||disttools) && !nonavpage
32 ?>class="col-13" id="doc-col"<?cs
33 elif:!nonavpage
34 ?>class="col-12" id="doc-col"<?cs /if ?> >
Scott Mainadc61d62011-11-30 18:55:01 -080035
Dirk Dougherty18dca5d2012-11-30 12:44:40 -080036<?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 -070037 <?cs if:header.hide ?>
38 <?cs else ?>
39 <div class="layout-content-row content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>">
40 <div class="layout-content-col <?cs if:training ?>span-7<?cs else ?>span-9<?cs /if ?>">
41 <?cs if:header.justLinks ?>&nbsp;
42 <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1>
43 <?cs /if ?>
44 </div>
45 <?cs if:training ?>
46 <div class="training-nav-top layout-content-col span-5" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070047 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070048 zh-tw-lang="上一堂課"
49 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070050 ru-lang="Предыдущий"
51 ko-lang="이전"
52 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080053 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070054 >Previous</a>
55 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070056 zh-tw-lang="下一堂課"
57 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070058 ru-lang="Следующий"
59 ko-lang="다음"
60 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080061 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070062 >Next</a>
63 <a href="#" class="start-class-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070064 zh-tw-lang="開始上課"
65 zh-cn-lang="开始"
Scott Main235f4d42012-10-02 17:12:23 -070066 ru-lang="Начало работы"
67 ko-lang="시작하기"
68 ja-lang="開始する"
Scott Main9ee0fae2014-01-23 10:50:57 -080069 es-lang="Empezar"
Scott Main235f4d42012-10-02 17:12:23 -070070 >Get started</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070071 </div>
Scott Main5a1123e2012-09-26 12:51:28 -070072 <?cs elif:!page.trainingcourse ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070073 <div class="paging-links layout-content-col span-4" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070074 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070075 zh-tw-lang="上一堂課"
76 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070077 ru-lang="Предыдущий"
78 ko-lang="이전"
79 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080080 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070081 >Previous</a>
82 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070083 zh-tw-lang="下一堂課"
84 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070085 ru-lang="Следующий"
86 ko-lang="다음"
87 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080088 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070089 >Next</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070090 </div>
91 <?cs /if ?><?cs # end if training ?>
92 </div>
smain@google.com20ef3822014-06-13 16:05:28 -070093 <?cs /if ?><?cs # end if header.hide ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -070094
Dirk Doughertybb2b5532013-11-16 16:07:51 -080095<?cs elif:samplesProjectIndex ?>
96 <div id="api-info-block">
97 <div class="sum-details-links">
98 Overview
99 &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
100 &#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a>
101 </div><!-- end sum-details-links -->
102 </div><!-- end breadcurmb block -->
103 <h1 itemprop="name"><?cs var:projectDir ?></h1>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700104
Scott Maine4d8f1b2012-06-21 18:03:05 -0700105<?cs else ?>
smain@google.com20ef3822014-06-13 16:05:28 -0700106 <?cs if:training ?>
107<?cs # horrible horrible hack to move TOC up when the next/prev links are not there ?>
108<style>
109 #tb-wrapper {
110 margin-top:6px;
111 }
112</style>
113 <?cs /if ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700114
Scott Maine4d8f1b2012-06-21 18:03:05 -0700115 <?cs if:(!fullpage && !header.hide) ?>
116 <?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?>
117 <div class="landing-banner">
Dirk Doughertybb2b5532013-11-16 16:07:51 -0800118 <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700119 <div class="col-6">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700120 <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" />
Scott Maine4d8f1b2012-06-21 18:03:05 -0700121 </div>
122 <div class="col-6">
Scott Main0e71cee2012-08-07 13:59:43 -0700123 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700124 <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1>
125 <p itemprop="description"><?cs var:page.landing.intro ?></p>
Scott Main9ee0fae2014-01-23 10:50:57 -0800126
Scott Mainb505ca62012-07-26 18:00:14 -0700127 <p><a class="next-page-link topic-start-link"></a></p>
Scott Main0e71cee2012-08-07 13:59:43 -0700128 <?cs if:page.landing.image ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700129 </div>
Scott Main0e71cee2012-08-07 13:59:43 -0700130 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700131 </div>
132 <?cs else ?>
Scott Maine0c11a62012-11-13 07:47:50 -0800133 <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?>
Scott Mainbbffb4b2012-11-13 07:40:16 -0800134 <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs
135 if:tab1 ?><ul id="title-tabs">
136 <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li>
137 <?cs if:tab2 ?>
138 <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?>
139 <?cs if:tab3 ?>
140 <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?>
141 </ul>
Scott Maine0c11a62012-11-13 07:47:50 -0800142 <?cs /if ?>
143 <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800144 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700145 <?cs /if ?>
146<?cs /if ?><?cs # end if design ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800147
148 <?cs # THIS IS THE MAIN DOC CONTENT ?>
149 <div id="jd-content">
Scott Mainadc61d62011-11-30 18:55:01 -0800150
151
Scott Main3652a112012-01-30 13:03:08 -0800152 <div class="jd-descr" itemprop="articleBody">
Scott Mainadc61d62011-11-30 18:55:01 -0800153 <?cs call:tag_list(root.descr) ?>
154 </div>
Scott Main9ee0fae2014-01-23 10:50:57 -0800155
156 <div class="content-footer <?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700157 if:fullpage ?>wrap<?cs
Scott Main9ee0fae2014-01-23 10:50:57 -0800158 else ?>layout-content-row<?cs /if ?>"
Scott Maine4d8f1b2012-06-21 18:03:05 -0700159 itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700160 <?cs if:!fullscreen ?>
smain@google.com5bc3a1a2014-06-17 20:02:53 -0700161 <div class="paging-links layout-content-col col-10">
Scott Main4a9cc382013-09-05 16:29:00 -0700162 <?cs if:(design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
Scott Main235f4d42012-10-02 17:12:23 -0700163 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700164 zh-tw-lang="下一堂課"
165 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -0700166 ru-lang="Следующий"
167 ko-lang="다음"
168 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -0800169 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -0700170 >Next</a>
Scott Main9ee0fae2014-01-23 10:50:57 -0800171 <a href="#" class="start-class-link hide"
172 zh-tw-lang="開始上課"
173 zh-cn-lang="开始"
174 ru-lang="Начало работы"
175 ko-lang="시작하기"
176 ja-lang="開始する"
177 es-lang="Empezar"
178 >Get started</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700179 <?cs /if ?>
180 </div>
smain@google.com5bc3a1a2014-06-17 20:02:53 -0700181 <div class="layout-content-col plus-container col-2" >
182 <?cs if:!page.noplus ?><?cs if:fullpage ?><style>#___plusone_0 {float:right !important;}</style><?cs /if ?>
183 <div class="g-plusone" data-size="medium"></div>
184 <?cs /if ?>
185 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700186 <?cs /if ?>
187 </div>
Scott Main9ee0fae2014-01-23 10:50:57 -0800188
Scott Maine4d8f1b2012-06-21 18:03:05 -0700189 <?cs # for training classes, provide a different kind of link when the next page is a different class ?>
Dirk Dougherty18dca5d2012-11-30 12:44:40 -0800190 <?cs if:training && !page.article ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700191 <div class="layout-content-row content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
smain@google.com5bc3a1a2014-06-17 20:02:53 -0700192 <a href="#" class="next-class-link hide">Next class</a>
Scott Mainadc61d62011-11-30 18:55:01 -0800193 </div>
194 <?cs /if ?>
195
Scott Mainadc61d62011-11-30 18:55:01 -0800196 </div> <!-- end jd-content -->
197
198<?cs include:"footer.cs" ?>
199</div><!-- end doc-content -->
200
Dirk Doughertyc3921652014-05-13 16:55:26 -0700201<?cs include:"trailer.cs" ?>
202 <script src="https://developer.android.com/ytblogger_lists_unified.js" type="text/javascript"></script>
203 <script src="<?cs var:toroot ?>jd_lists_unified.js" type="text/javascript"></script>
204 <script src="<?cs var:toroot ?>jd_extras.js" type="text/javascript"></script>
205 <script src="<?cs var:toroot ?>jd_collections.js" type="text/javascript"></script>
206 <script src="<?cs var:toroot ?>jd_tag_helpers.js" type="text/javascript"></script>
207
Scott Mainadc61d62011-11-30 18:55:01 -0800208</body>
209</html>
210
211
212