Scott Main | c438082 | 2011-02-16 10:05:29 -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 | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 4 | <?cs include:"head_tag.cs" ?> |
Scott Main | dc63dda | 2013-08-22 16:03:21 -0700 | [diff] [blame] | 5 | <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> |
Scott Main | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 6 | <?cs include:"header.cs" ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 7 | |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 8 | <!-- start breadcrumb block --> |
| 9 | <div id="api-info-block"> |
| 10 | <div class="sum-details-links"> |
| 11 | |
| 12 | <!-- related links --> |
| 13 | <?cs if:projectStructure ?> |
| 14 | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a> |
| 15 | | Project<?cs else ?>Overview |
| 16 | | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a> |
| 17 | <?cs /if ?> |
Scott Main | 2fbc1c9 | 2013-11-20 15:22:15 -0800 | [diff] [blame] | 18 | | <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip" |
smain@google.com | 633f322 | 2014-10-03 15:49:45 -0700 | [diff] [blame] | 19 | onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);" |
Scott Main | 2fbc1c9 | 2013-11-20 15:22:15 -0800 | [diff] [blame] | 20 | >Download</a> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 21 | |
| 22 | </div><!-- end sum-details-links --> |
Dirk Dougherty | 4bddbb1 | 2013-10-29 14:33:15 -0700 | [diff] [blame] | 23 | |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 24 | </div><!-- end breadcurmb block --> |
| 25 | |
| 26 | <h1 itemprop="name"><?cs var:projectDir ?></h1> |
Scott Main | dc63dda | 2013-08-22 16:03:21 -0700 | [diff] [blame] | 27 | |
| 28 | <div id="jd-content"> |
| 29 | <?cs def:display_files(files) ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 30 | |
Scott Main | dc63dda | 2013-08-22 16:03:21 -0700 | [diff] [blame] | 31 | <?cs each:file = files ?> |
| 32 | <?cs if:file.Type != "dir" ?> |
| 33 | <div class="structure-<?cs var:file.Type ?>"> |
| 34 | <a href="<?cs var:toroot ?><?cs var:file.Href ?>"><?cs var:file.Name ?></a> |
| 35 | </div> |
| 36 | <?cs else ?> |
| 37 | <div class="toggle-content opened structure-dir"> |
| 38 | <a href="#" onclick="return toggleContent(this)"> |
| 39 | <img src="<?cs var:toroot ?>assets/images/triangle-opened.png" |
| 40 | class="toggle-content-img structure-toggle-img" height="9px" width="9px" /> |
| 41 | <?cs var:file.Name ?></a><?cs |
| 42 | if:file.SummaryFlag == "true" ?><span class="dirInfo" |
| 43 | >[ <a href="file.SummaryHref">Info</a> ]</a></span><?cs |
| 44 | /if ?> |
| 45 | <div class="toggle-content-toggleme structure-toggleme"> |
| 46 | <?cs if:file.Sub.0.Name ?> |
| 47 | <?cs call:display_files(file.Sub) ?> |
| 48 | <?cs /if ?> |
| 49 | </div> <?cs # /toggleme ?> |
| 50 | </div> <?cs # /toggle-content ?> |
| 51 | <?cs /if ?> |
| 52 | <?cs /each ?> |
| 53 | <?cs /def ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 54 | |
| 55 | <?cs if:android.whichdoc == "online" ?> |
Scott Main | d4645ea | 2013-08-22 16:25:15 -0700 | [diff] [blame] | 56 | <?cs # If this is the online docs, build the src code navigation links ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 57 | |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 58 | <?cs if:projectStructure ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 59 | |
Scott Main | d4645ea | 2013-08-22 16:25:15 -0700 | [diff] [blame] | 60 | <?cs call:display_files(Files) ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 61 | |
Scott Main | d4645ea | 2013-08-22 16:25:15 -0700 | [diff] [blame] | 62 | <?cs else ?> <?cs # else not project structure doc ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 63 | |
Scott Main | d4645ea | 2013-08-22 16:25:15 -0700 | [diff] [blame] | 64 | <?cs var:summary ?> |
Scott Main | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 65 | |
Scott Main | d4645ea | 2013-08-22 16:25:15 -0700 | [diff] [blame] | 66 | <?cs # Remove project structure from landing pages for now |
| 67 | # <h2>Project Structure</h2> |
| 68 | # <p>Decide what to do with this ...</p> |
| 69 | # <?cs call:display_files(Files) ?> |
Scott Main | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 70 | |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 71 | <?cs /if ?> <?cs # end if projectStructure ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 72 | |
| 73 | <?cs else ?><?cs |
| 74 | # else, this means it's offline docs, |
| 75 | so don't show src links (we dont have the pages!) ?> |
| 76 | |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 77 | <?cs /if ?><?cs # end if/else online docs ?> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 78 | <div class="content-footer <?cs |
| 79 | if:fullpage ?>wrap<?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 80 | else ?>cols<?cs /if ?>" |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 81 | itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 82 | <div class="<?cs |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 83 | if:fullpage ?>col-16<?cs |
| 84 | elif:training||guide ?>col-8<?cs |
| 85 | else ?>col-9<?cs /if ?>" style="padding-top:4px"> |
| 86 | <?cs if:!page.noplus ?><?cs if:fullpage ?><style>#___plusone_0 {float:right !important;}</style><?cs /if ?> |
| 87 | <div class="g-plusone" data-size="medium"></div> |
| 88 | <?cs /if ?> |
| 89 | </div> |
| 90 | <?cs if:!fullscreen ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 91 | <div class="paging-links col-4"> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 92 | <?cs if:(design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?> |
| 93 | <a href="#" class="prev-page-link hide" |
| 94 | zh-tw-lang="上一堂課" |
| 95 | zh-cn-lang="上一课" |
| 96 | ru-lang="Предыдущий" |
| 97 | ko-lang="이전" |
| 98 | ja-lang="前へ" |
| 99 | es-lang="Anterior" |
| 100 | >Previous</a> |
| 101 | <a href="#" class="next-page-link hide" |
| 102 | zh-tw-lang="下一堂課" |
| 103 | zh-cn-lang="下一课" |
| 104 | ru-lang="Следующий" |
| 105 | ko-lang="다음" |
| 106 | ja-lang="次へ" |
| 107 | es-lang="Siguiente" |
| 108 | >Next</a> |
| 109 | <?cs /if ?> |
| 110 | </div> |
| 111 | <?cs /if ?> |
| 112 | </div> |
| 113 | |
| 114 | <?cs # for training classes, provide a different kind of link when the next page is a different class ?> |
| 115 | <?cs if:training && !page.article ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 116 | <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 117 | <a href="#" class="next-class-link hide">Next class: </a> |
| 118 | </div> |
| 119 | <?cs /if ?> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 120 | |
| 121 | </div> <!-- end jd-content --> |
Scott Main | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 122 | |
| 123 | <?cs include:"footer.cs" ?> |
Scott Main | c438082 | 2011-02-16 10:05:29 -0800 | [diff] [blame] | 124 | |
| 125 | <?cs include:"trailer.cs" ?> |
| 126 | |
| 127 | </body> |
| 128 | </html> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 129 | |
| 130 | |