smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 1 | <?cs if:!devsite ?><?cs |
| 2 | include:"doctype.cs" ?><?cs /if ?><?cs |
| 3 | include:"macros.cs" ?><html<?cs if:devsite ?> devsite<?cs /if ?>> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 4 | <?cs include:"head_tag.cs" ?> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 5 | <body<?cs |
| 6 | if:!devsite ?> class="gc-documentation<?cs |
| 7 | # add document classes for navigation header selection (and other stuff) ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 8 | <?cs |
Dirk Dougherty | cf7a3b9 | 2015-05-21 00:52:33 -0700 | [diff] [blame] | 9 | 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 |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 16 | if:(guide||develop||training||reference||tools||sdk||google||samples) ?>develop<?cs |
Dirk Dougherty | cf7a3b9 | 2015-05-21 00:52:33 -0700 | [diff] [blame] | 17 | if:guide ?> guide<?cs /if ?><?cs |
| 18 | if:samples ?> samples<?cs /if ?><?cs |
Dirk Dougherty | cf7a3b9 | 2015-05-21 00:52:33 -0700 | [diff] [blame] | 19 | 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 |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 28 | elif:(design||vision||material||patterns||devices||designdownloads) ?> design<?cs |
| 29 | if:vision ?> vision<?cs /if ?><?cs |
| 30 | if:material ?> material<?cs /if ?><?cs |
| 31 | if:patterns ?> patterns<?cs /if ?><?cs |
| 32 | if:devices ?> devices<?cs /if ?><?cs |
| 33 | if:designdownloads ?> designdownloads<?cs /if ?><?cs |
| 34 | elif:(about||versions||wear||tv||auto) ?> about<?cs |
| 35 | if:versions ?> versions<?cs /if ?><?cs |
| 36 | if:wear ?> wear<?cs /if ?><?cs |
| 37 | if:tv ?> tv<?cs /if ?><?cs |
| 38 | if:auto ?> auto<?cs /if ?><?cs |
| 39 | elif:(preview) ?> preview<?cs |
Dirk Dougherty | cf7a3b9 | 2015-05-21 00:52:33 -0700 | [diff] [blame] | 40 | /if ?><?cs |
| 41 | if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 42 | /if ?>" itemscope itemtype="http://schema.org/Article"><?cs |
| 43 | /if ?>><?cs |
| 44 | include:"header.cs" ?><?cs |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 45 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 46 | if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs |
| 47 | # header logic for docs that provide previous/next buttons ?><?cs |
| 48 | if:(header.hide||devsite) ?><?cs |
| 49 | else ?> |
| 50 | <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>"> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 51 | <?cs if:header.justLinks ?> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 52 | <?cs else ?> |
| 53 | <ul class="dac-header-crumbs"> |
| 54 | <?cs # More <li> elements added here with javascript ?> |
| 55 | </ul> |
| 56 | |
| 57 | <!-- Breadcrumb Setup --> |
| 58 | <script>$('.dac-nav-list').dacCurrentPage().dacCrumbs();</script> |
| 59 | |
| 60 | <h1 itemprop="name"><?cs var:page.title ?> |
| 61 | </h1><?cs |
| 62 | /if ?><?cs |
| 63 | if:training ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 64 | <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 65 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 66 | zh-tw-lang="上一堂課" |
| 67 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 68 | ru-lang="Предыдущий" |
| 69 | ko-lang="이전" |
| 70 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 71 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 72 | >Previous</a> |
| 73 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 74 | zh-tw-lang="下一堂課" |
| 75 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 76 | ru-lang="Следующий" |
| 77 | ko-lang="다음" |
| 78 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 79 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 80 | >Next</a> |
| 81 | <a href="#" class="start-class-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 82 | zh-tw-lang="開始上課" |
| 83 | zh-cn-lang="开始" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 84 | ru-lang="Начало работы" |
| 85 | ko-lang="시작하기" |
| 86 | ja-lang="開始する" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 87 | es-lang="Empezar" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 88 | >Get started</a> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 89 | </div><?cs |
| 90 | elif:!page.trainingcourse ?> |
| 91 | <?cs # <div class="paging-linkss" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 92 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 93 | zh-tw-lang="上一堂課" |
| 94 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 95 | ru-lang="Предыдущий" |
| 96 | ko-lang="이전" |
| 97 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 98 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 99 | >Previous</a> |
| 100 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 101 | zh-tw-lang="下一堂課" |
| 102 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 103 | ru-lang="Следующий" |
| 104 | ko-lang="다음" |
| 105 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 106 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 107 | >Next</a> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 108 | </div> ?><?cs |
| 109 | /if ?><?cs # end if training ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 110 | </div> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 111 | <?cs /if ?><?cs # end if header.hide ?><?cs |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 112 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 113 | elif:samplesProjectIndex ?> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 114 | <div id="api-info-block"> |
| 115 | <div class="sum-details-links"> |
| 116 | Overview |
| 117 | | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a> |
| 118 | | <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a> |
| 119 | </div><!-- end sum-details-links --> |
| 120 | </div><!-- end breadcurmb block --> |
| 121 | <h1 itemprop="name"><?cs var:projectDir ?></h1> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 122 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 123 | <?cs else ?><?cs |
| 124 | if:(!fullpage && !header.hide && !devsite) ?><?cs |
| 125 | if:page.landing ?><?cs # header logic for docs that are landing pages ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 126 | <div class="landing-banner"> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 127 | <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 128 | <div class="cols"> |
| 129 | <div class="col-6"> |
| 130 | <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" /> |
| 131 | </div> |
| 132 | <div class="col-6"> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 133 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 134 | <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> |
| 135 | <p itemprop="description"><?cs var:page.landing.intro ?></p> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 136 | |
Scott Main | b505ca6 | 2012-07-26 18:00:14 -0700 | [diff] [blame] | 137 | <p><a class="next-page-link topic-start-link"></a></p> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 138 | <?cs if:page.landing.image ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 139 | </div> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 140 | </div> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 141 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 142 | </div> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 143 | <?cs else ?><?cs |
| 144 | if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?> |
| 145 | <ul class="dac-header-crumbs"> |
| 146 | <?cs # More <li> elements added here with javascript ?> |
| 147 | </ul> |
| 148 | |
| 149 | <!-- Breadcrumb Setup --> |
| 150 | <p><script>$('.dac-nav-list').dacCurrentPage().dacCrumbs();</script></p> |
| 151 | |
Scott Main | bbffb4b | 2012-11-13 07:40:16 -0800 | [diff] [blame] | 152 | <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs |
| 153 | if:tab1 ?><ul id="title-tabs"> |
| 154 | <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li> |
| 155 | <?cs if:tab2 ?> |
| 156 | <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?> |
| 157 | <?cs if:tab3 ?> |
| 158 | <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?> |
| 159 | </ul> |
Scott Main | e0c11a6 | 2012-11-13 07:47:50 -0800 | [diff] [blame] | 160 | <?cs /if ?> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 161 | <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?><?cs |
| 162 | /if ?><?cs |
| 163 | /if ?><?cs |
| 164 | /if ?><?cs # end if design ?><?cs |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 165 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 166 | if devsite ?><?cs |
| 167 | if:tab1 ?> |
| 168 | <div id="title-tabs-wrapper"> |
| 169 | <ul id="title-tabs"> |
| 170 | <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li> |
| 171 | <?cs if:tab2 ?> |
| 172 | <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?> |
| 173 | <?cs if:tab3 ?> |
| 174 | <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?> |
| 175 | </ul> |
| 176 | </div><!-- end tab-wrapper --><?cs |
| 177 | /if ?><?cs |
| 178 | /if ?><?cs |
| 179 | |
| 180 | # THIS IS THE MAIN DOC CONTENT ?><?cs |
| 181 | if:!devsite ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 182 | <div id="jd-content"> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 183 | <div class="jd-descr" itemprop="articleBody"><?cs |
| 184 | /if ?><?cs |
| 185 | if:(!fullpage && !header.hide && devsite) ?><?cs |
| 186 | if:page.landing ?><?cs # header logic for docs that are landing pages ?> |
| 187 | <div class="landing-banner"> |
| 188 | <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?> |
| 189 | <div class="cols"> |
| 190 | <div class="col-6"> |
| 191 | <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" /> |
| 192 | </div> |
| 193 | <div class="col-6"> |
| 194 | <?cs /if ?> |
| 195 | <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> |
| 196 | <p itemprop="description"><?cs var:page.landing.intro ?></p> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 197 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 198 | <p><a class="next-page-link topic-start-link"></a></p><?cs |
| 199 | if:page.landing.image ?> |
| 200 | </div> |
| 201 | </div><?cs |
| 202 | /if ?> |
| 203 | </div><?cs |
| 204 | /if ?><?cs |
| 205 | /if ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 206 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 207 | <?cs call:tag_list(root.descr) ?><?cs |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 208 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 209 | if:!devsite ?> |
| 210 | </div><!-- end jd-descr --><?cs |
| 211 | /if ?><?cs |
| 212 | |
| 213 | if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse |
| 214 | && !footer.hide && !devsite?> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 215 | <div class="content-footer <?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 216 | if:fullpage ?>wrap<?cs /if ?>" |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 217 | itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 218 | <div class="paging-links"> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 219 | <a href="#" class="prev-page-link hide" |
| 220 | zh-tw-lang="上一堂課" |
| 221 | zh-cn-lang="上一课" |
| 222 | ru-lang="Предыдущий" |
| 223 | ko-lang="이전" |
| 224 | ja-lang="前へ" |
| 225 | es-lang="Anterior" |
| 226 | ><span class="page-link-caption">Previous</span> |
| 227 | </a> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 228 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 229 | zh-tw-lang="下一堂課" |
| 230 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 231 | ru-lang="Следующий" |
| 232 | ko-lang="다음" |
| 233 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 234 | es-lang="Siguiente" |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 235 | ><span class="page-link-caption">Next</span> |
| 236 | </a> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 237 | <a href="#" class="start-class-link hide" |
| 238 | zh-tw-lang="開始上課" |
| 239 | zh-cn-lang="开始" |
| 240 | ru-lang="Начало работы" |
| 241 | ko-lang="시작하기" |
| 242 | ja-lang="開始する" |
| 243 | es-lang="Empezar" |
| 244 | >Get started</a> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 245 | <a href="#" class="next-class-link hide"> |
| 246 | <span class="page-link-caption">Next class</span> |
| 247 | </a> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 248 | </div> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 249 | </div><?cs |
| 250 | /if ?><?cs |
| 251 | if:!devsite ?> |
| 252 | </div> <!-- end jd-content --><?cs |
| 253 | /if ?><?cs |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 254 | |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 255 | if:!devsite ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 256 | <?cs include:"footer.cs" ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 257 | <?cs include:"trailer.cs" ?> |
smain@google.com | 4f3a05a | 2016-08-31 11:30:02 -0700 | [diff] [blame^] | 258 | <?cs /if ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 259 | |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 260 | </body> |
| 261 | </html> |