1 <?cs if:!devsite ?><?cs 2 include:"doctype.cs" ?><?cs /if ?><?cs 3 include:"macros.cs" ?><html<?cs if:devsite ?> devsite<?cs /if ?>> 4 <?cs include:"head_tag.cs" ?> 5 <body<?cs 6 if:!devsite ?> class="gc-documentation<?cs 7 # add document classes for navigation header selection (and other stuff) ?> 8 <?cs 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 16 if:(guide||develop||training||reference||tools||sdk||google||samples) ?>develop<?cs 17 if:guide ?> guide<?cs /if ?><?cs 18 if:samples ?> samples<?cs /if ?><?cs 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 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 40 /if ?><?cs 41 if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs 42 /if ?>" itemscope itemtype="http://schema.org/Article"><?cs 43 /if ?>><?cs 44 include:"header.cs" ?><?cs 45 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 ?>"> 51 <?cs if:header.justLinks ?> 52 <?cs else ?> 53 <ul class="dac-header-crumbs"> 54 <?cs # More <li> elements added here with javascript ?> 55 </ul> 56 57 <!-- Breadcrumb Setup --> dacCrumbs()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 ?> 64 <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement"> 65 <a href="#" class="prev-page-link hide" 66 zh-tw-lang="上一堂課" 67 zh-cn-lang="上一课" 68 ru-lang="Предыдущий" 69 ko-lang="이전" 70 ja-lang="前へ" 71 es-lang="Anterior" 72 >Previous</a> 73 <a href="#" class="next-page-link hide" 74 zh-tw-lang="下一堂課" 75 zh-cn-lang="下一课" 76 ru-lang="Следующий" 77 ko-lang="다음" 78 ja-lang="次へ" 79 es-lang="Siguiente" 80 >Next</a> 81 <a href="#" class="start-class-link hide" 82 zh-tw-lang="開始上課" 83 zh-cn-lang="开始" 84 ru-lang="Начало работы" 85 ko-lang="시작하기" 86 ja-lang="開始する" 87 es-lang="Empezar" 88 >Get started</a> 89 </div><?cs 90 elif:!page.trainingcourse ?> 91 <?cs # <div class="paging-linkss" itemscope itemtype="http://schema.org/SiteNavigationElement"> 92 <a href="#" class="prev-page-link hide" 93 zh-tw-lang="上一堂課" 94 zh-cn-lang="上一课" 95 ru-lang="Предыдущий" 96 ko-lang="이전" 97 ja-lang="前へ" 98 es-lang="Anterior" 99 >Previous</a> 100 <a href="#" class="next-page-link hide" 101 zh-tw-lang="下一堂課" 102 zh-cn-lang="下一课" 103 ru-lang="Следующий" 104 ko-lang="다음" 105 ja-lang="次へ" 106 es-lang="Siguiente" 107 >Next</a> 108 </div> ?><?cs 109 /if ?><?cs # end if training ?> 110 </div> 111 <?cs /if ?><?cs # end if header.hide ?><?cs 112 113 elif:samplesProjectIndex ?> 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> 122 123 <?cs else ?><?cs 124 if:(!fullpage && !header.hide && !devsite) ?><?cs 125 if:page.landing ?><?cs # header logic for docs that are landing pages ?> 126 <div class="landing-banner"> 127 <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?> 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"> 133 <?cs /if ?> 134 <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> 135 <p itemprop="description"><?cs var:page.landing.intro ?></p> 136 137 <p><a class="next-page-link topic-start-link"></a></p> 138 <?cs if:page.landing.image ?> 139 </div> 140 </div> 141 <?cs /if ?> 142 </div> 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 --> dacCrumbs()150 <p><script>$('.dac-nav-list').dacCurrentPage().dacCrumbs();</script></p> 151 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> 160 <?cs /if ?> 161 <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?><?cs 162 /if ?><?cs 163 /if ?><?cs 164 /if ?><?cs # end if design ?><?cs 165 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 ?> 182 <div id="jd-content"> 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> 197 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 ?> 206 207 <?cs call:tag_list(root.descr) ?><?cs 208 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?> 215 <div class="content-footer <?cs 216 if:fullpage ?>wrap<?cs /if ?>" 217 itemscope itemtype="http://schema.org/SiteNavigationElement"> 218 <div class="paging-links"> 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> 228 <a href="#" class="next-page-link hide" 229 zh-tw-lang="下一堂課" 230 zh-cn-lang="下一课" 231 ru-lang="Следующий" 232 ko-lang="다음" 233 ja-lang="次へ" 234 es-lang="Siguiente" 235 ><span class="page-link-caption">Next</span> 236 </a> 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> 245 <a href="#" class="next-class-link hide"> 246 <span class="page-link-caption">Next class</span> 247 </a> 248 </div> 249 </div><?cs 250 /if ?><?cs 251 if:!devsite ?> 252 </div> <!-- end jd-content --><?cs 253 /if ?><?cs 254 255 if:!devsite ?> 256 <?cs include:"footer.cs" ?> 257 <?cs include:"trailer.cs" ?> 258 <?cs /if ?> 259 260 </body> 261 </html> 262