Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 1 | <?cs include:"doctype.cs" ?> |
| 2 | <?cs include:"macros.cs" ?> |
| 3 | <html<?cs if:devsite ?> devsite<?cs /if ?>> |
| 4 | <?cs include:"head_tag.cs" ?> |
| 5 | <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> |
| 6 | <?cs include:"header.cs" ?> |
| 7 | |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [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 ?> |
| 18 | | <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip" |
Dirk Dougherty | ff233cc | 2015-05-04 14:37:05 -0700 | [diff] [blame] | 19 | onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);" |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 20 | >Download</a> |
| 21 | |
| 22 | </div><!-- end sum-details-links --> |
| 23 | |
| 24 | </div><!-- end breadcurmb block --> |
| 25 | |
| 26 | <h1 itemprop="name"><?cs var:projectDir ?></h1> |
| 27 | |
| 28 | <div id="jd-content"> |
| 29 | <?cs def:display_files(files) ?> |
| 30 | |
| 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 ?> |
| 54 | |
| 55 | <?cs if:android.whichdoc == "online" ?> |
| 56 | <?cs # If this is the online docs, build the src code navigation links ?> |
| 57 | |
| 58 | <?cs if:projectStructure ?> |
| 59 | |
| 60 | <?cs call:display_files(Files) ?> |
| 61 | |
| 62 | <?cs else ?> <?cs # else not project structure doc ?> |
| 63 | |
| 64 | <?cs var:summary ?> |
| 65 | |
| 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) ?> |
| 70 | |
| 71 | <?cs /if ?> <?cs # end if projectStructure ?> |
| 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 | |
| 77 | <?cs /if ?><?cs # end if/else online docs ?> |
| 78 | <div class="content-footer <?cs |
| 79 | if:fullpage ?>wrap<?cs |
Dirk Dougherty | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 80 | else ?>cols<?cs /if ?>" |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 81 | itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 82 | <div class="<?cs |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -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 | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 91 | <div class="paging-links col-4"> |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -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 | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 116 | <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 117 | <a href="#" class="next-class-link hide">Next class: </a> |
| 118 | </div> |
| 119 | <?cs /if ?> |
| 120 | |
| 121 | </div> <!-- end jd-content --> |
| 122 | |
| 123 | <?cs include:"footer.cs" ?> |
Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 124 | |
| 125 | <?cs include:"trailer.cs" ?> |
| 126 | |
| 127 | </body> |
| 128 | </html> |
| 129 | |
| 130 | |