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