Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 1 | <?cs include:"doctype.cs" ?> |
| 2 | <?cs include:"macros.cs" ?> |
Scott Main | e05e6f9 | 2013-01-29 13:34:17 -0800 | [diff] [blame] | 3 | <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 | c91ecb7 | 2014-06-23 10:22:23 -0700 | [diff] [blame] | 5 | <body class="gc-documentation |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 6 | |
Joe Fernandez | a9d796a | 2015-05-05 22:07:42 -0700 | [diff] [blame] | 7 | <?cs # 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 | f97b2ef | 2015-05-12 21:23:05 -0700 | [diff] [blame] | 9 | if:(google || reference.gms || reference.gcm) ?>google <?cs |
Joe Fernandez | a9d796a | 2015-05-05 22:07:42 -0700 | [diff] [blame] | 10 | /if ?><?cs |
| 11 | if:(guide||develop||training||reference||tools||sdk||google||samples||preview) ?>develop<?cs |
| 12 | if:guide ?> guide<?cs /if ?><?cs |
| 13 | if:samples ?> samples<?cs /if ?><?cs |
| 14 | if:preview ?> preview<?cs /if ?><?cs |
| 15 | elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories) |
| 16 | ?>distribute<?cs |
| 17 | if:googleplay ?> googleplay<?cs /if ?><?cs |
| 18 | if:essentials ?> essentials<?cs /if ?><?cs |
| 19 | if:users ?> users<?cs /if ?><?cs |
| 20 | if:engage ?> engage<?cs /if ?><?cs |
| 21 | if:monetize ?> monetize<?cs /if ?><?cs |
| 22 | if:disttools ?> disttools<?cs /if ?><?cs |
| 23 | if:stories ?> stories<?cs /if ?><?cs |
| 24 | elif:(about||wear||tv||auto) ?>about<?cs |
| 25 | elif:design ?>design<?cs |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 26 | /if ?><?cs |
| 27 | if:page.trainingcourse ?> trainingcourse<?cs |
| 28 | /if ?>" itemscope itemtype="http://schema.org/Article"><?cs |
| 29 | include:"header.cs" ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 30 | |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 31 | <div <?cs |
| 32 | if:fullpage |
| 33 | ?>class="fullpage"<?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 34 | elif:(design||tools||about||sdk||googleplay||essentials||users||engage||monetize||disttools||stories) && !nonavpage |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 35 | ?>class="col-13" id="doc-col"<?cs |
| 36 | elif:!nonavpage |
| 37 | ?>class="col-12" id="doc-col"<?cs /if ?> > |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 38 | |
Dirk Dougherty | 18dca5d | 2012-11-30 12:44:40 -0800 | [diff] [blame] | 39 | <?cs if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs # header logic for docs that provide previous/next buttons ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 40 | <?cs if:header.hide ?> |
| 41 | <?cs else ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 42 | <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>"> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 43 | <?cs if:header.justLinks ?> |
| 44 | <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1> |
| 45 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 46 | <?cs if:training ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 47 | <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 48 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 49 | zh-tw-lang="上一堂課" |
| 50 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 51 | ru-lang="Предыдущий" |
| 52 | ko-lang="이전" |
| 53 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 54 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 55 | >Previous</a> |
| 56 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 57 | zh-tw-lang="下一堂課" |
| 58 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 59 | ru-lang="Следующий" |
| 60 | ko-lang="다음" |
| 61 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 62 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 63 | >Next</a> |
| 64 | <a href="#" class="start-class-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 65 | zh-tw-lang="開始上課" |
| 66 | zh-cn-lang="开始" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 67 | ru-lang="Начало работы" |
| 68 | ko-lang="시작하기" |
| 69 | ja-lang="開始する" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 70 | es-lang="Empezar" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 71 | >Get started</a> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 72 | </div> |
Scott Main | 5a1123e | 2012-09-26 12:51:28 -0700 | [diff] [blame] | 73 | <?cs elif:!page.trainingcourse ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 74 | <div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 75 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 76 | zh-tw-lang="上一堂課" |
| 77 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 78 | ru-lang="Предыдущий" |
| 79 | ko-lang="이전" |
| 80 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 81 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 82 | >Previous</a> |
| 83 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 84 | zh-tw-lang="下一堂課" |
| 85 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 86 | ru-lang="Следующий" |
| 87 | ko-lang="다음" |
| 88 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 89 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 90 | >Next</a> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 91 | </div> |
| 92 | <?cs /if ?><?cs # end if training ?> |
| 93 | </div> |
smain@google.com | 20ef382 | 2014-06-13 16:05:28 -0700 | [diff] [blame] | 94 | <?cs /if ?><?cs # end if header.hide ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 95 | |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 96 | <?cs elif:samplesProjectIndex ?> |
| 97 | <div id="api-info-block"> |
| 98 | <div class="sum-details-links"> |
| 99 | Overview |
| 100 | | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a> |
| 101 | | <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a> |
| 102 | </div><!-- end sum-details-links --> |
| 103 | </div><!-- end breadcurmb block --> |
| 104 | <h1 itemprop="name"><?cs var:projectDir ?></h1> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 105 | |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 106 | <?cs else ?> |
smain@google.com | 20ef382 | 2014-06-13 16:05:28 -0700 | [diff] [blame] | 107 | <?cs if:training ?> |
| 108 | <?cs # horrible horrible hack to move TOC up when the next/prev links are not there ?> |
| 109 | <style> |
| 110 | #tb-wrapper { |
| 111 | margin-top:6px; |
| 112 | } |
| 113 | </style> |
| 114 | <?cs /if ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 115 | |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 116 | <?cs if:(!fullpage && !header.hide) ?> |
| 117 | <?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?> |
| 118 | <div class="landing-banner"> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 119 | <?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] | 120 | <div class="cols"> |
| 121 | <div class="col-6"> |
| 122 | <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" /> |
| 123 | </div> |
| 124 | <div class="col-6"> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 125 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 126 | <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> |
| 127 | <p itemprop="description"><?cs var:page.landing.intro ?></p> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 128 | |
Scott Main | b505ca6 | 2012-07-26 18:00:14 -0700 | [diff] [blame] | 129 | <p><a class="next-page-link topic-start-link"></a></p> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 130 | <?cs if:page.landing.image ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 131 | </div> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 132 | </div> |
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 | </div> |
| 135 | <?cs else ?> |
Scott Main | e0c11a6 | 2012-11-13 07:47:50 -0800 | [diff] [blame] | 136 | <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?> |
Scott Main | bbffb4b | 2012-11-13 07:40:16 -0800 | [diff] [blame] | 137 | <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs |
| 138 | if:tab1 ?><ul id="title-tabs"> |
| 139 | <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li> |
| 140 | <?cs if:tab2 ?> |
| 141 | <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?> |
| 142 | <?cs if:tab3 ?> |
| 143 | <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?> |
| 144 | </ul> |
Scott Main | e0c11a6 | 2012-11-13 07:47:50 -0800 | [diff] [blame] | 145 | <?cs /if ?> |
| 146 | <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 147 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 148 | <?cs /if ?> |
| 149 | <?cs /if ?><?cs # end if design ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 150 | |
| 151 | <?cs # THIS IS THE MAIN DOC CONTENT ?> |
| 152 | <div id="jd-content"> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 153 | |
| 154 | |
Scott Main | 3652a11 | 2012-01-30 13:03:08 -0800 | [diff] [blame] | 155 | <div class="jd-descr" itemprop="articleBody"> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 156 | <?cs call:tag_list(root.descr) ?> |
| 157 | </div> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 158 | |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 159 | <?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 160 | <div class="content-footer <?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 161 | if:fullpage ?>wrap<?cs /if ?>" |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 162 | itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 163 | <div class="paging-links"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 164 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 165 | zh-tw-lang="下一堂課" |
| 166 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 167 | ru-lang="Следующий" |
| 168 | ko-lang="다음" |
| 169 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 170 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 171 | >Next</a> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 172 | <a href="#" class="start-class-link hide" |
| 173 | zh-tw-lang="開始上課" |
| 174 | zh-cn-lang="开始" |
| 175 | ru-lang="Начало работы" |
| 176 | ko-lang="시작하기" |
| 177 | ja-lang="開始する" |
| 178 | es-lang="Empezar" |
| 179 | >Get started</a> |
smain@google.com | c91ecb7 | 2014-06-23 10:22:23 -0700 | [diff] [blame] | 180 | <a href="#" class="next-class-link hide">Next class</a> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 181 | </div> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 182 | </div> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 183 | <?cs /if ?> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 184 | |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 185 | </div> <!-- end jd-content --> |
| 186 | |
| 187 | <?cs include:"footer.cs" ?> |
| 188 | </div><!-- end doc-content --> |
| 189 | |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 190 | <?cs include:"trailer.cs" ?> |
| 191 | <script src="https://developer.android.com/ytblogger_lists_unified.js" type="text/javascript"></script> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 192 | <script src="<?cs var:toroot ?>jd_lists_unified.js?v=8" type="text/javascript"></script> |
| 193 | <script src="<?cs var:toroot ?>jd_extras.js?v=10" type="text/javascript"></script> |
| 194 | <script src="<?cs var:toroot ?>jd_collections.js?v=10" type="text/javascript"></script> |
Dirk Dougherty | f6e48da | 2014-11-03 12:48:08 -0800 | [diff] [blame] | 195 | <script src="<?cs var:toroot ?>jd_tag_helpers.js?v=5" type="text/javascript"></script> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 196 | |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 197 | </body> |
| 198 | </html> |