Home | History | Annotate | Download | only in templates-sdk
      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 
      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 &#124; Project<?cs else ?>Overview
     16 &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
     17 <?cs /if ?>
     18 &#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
     19     onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);"
     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                     >[&nbsp;<a href="file.SummaryHref">Info</a>&nbsp;]</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
     80                     else ?>cols<?cs /if ?>"
     81                     itemscope itemtype="http://schema.org/SiteNavigationElement">
     82         <div class="<?cs
     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 ?>
     91         <div class="paging-links col-4">
     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 ?>
    116       <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
    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" ?>
    124 
    125 <?cs include:"trailer.cs" ?>
    126 
    127 </body>
    128 </html>
    129 
    130 
    131