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