|
| 1 | +<?php $this->layout('theme::layout/00_layout') ?> |
| 2 | + |
| 3 | +<?php if ($params['html']['repo']) { |
| 4 | + ?> |
| 5 | + <a href="https://github.com/<?= $params['html']['repo']; ?>" target="_blank" id="github-ribbon" class="Github hidden-print"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
| 6 | +<?php |
| 7 | + |
| 8 | +} ?> |
| 9 | + |
| 10 | +<div class="Navbar hidden-print"> |
| 11 | + <?php $this->insert('theme::partials/navbar_content', ['params' => $params]); ?> |
| 12 | +</div> |
| 13 | +<div class="Columns content"> |
| 14 | + <div class="Columns__left hidden-print Collapsible"> |
| 15 | + <div class="Collapsible__container"> |
| 16 | + <button type="button" class="Button Collapsible__trigger"> |
| 17 | + <span class="Collapsible__trigger--bar"></span> |
| 18 | + <span class="Collapsible__trigger--bar"></span> |
| 19 | + <span class="Collapsible__trigger--bar"></span> |
| 20 | + </button> |
| 21 | + </div> |
| 22 | + |
| 23 | + <div class="Collapsible__content"> |
| 24 | + <!-- Navigation --> |
| 25 | + <?php |
| 26 | + $rendertree = $tree; |
| 27 | + $path = ''; |
| 28 | + |
| 29 | + if ($page['language'] !== '') { |
| 30 | + $rendertree = $tree->value[$page['language']]; |
| 31 | + $path = $page['language']; |
| 32 | + } |
| 33 | + |
| 34 | + echo $this->get_navigation($rendertree, $path, isset($params['request']) ? $params['request'] : '', $base_page, $params['mode']); |
| 35 | + ?> |
| 36 | + |
| 37 | + |
| 38 | + <div class="Links"> |
| 39 | + <?php if (!empty($params['html']['links'])) { |
| 40 | + ?> |
| 41 | + <hr/> |
| 42 | + <?php foreach ($params['html']['links'] as $name => $url) { |
| 43 | + ?> |
| 44 | + <a href="<?= $url ?>" target="_blank"><?= $name ?></a> |
| 45 | + <br /> |
| 46 | + <?php |
| 47 | + |
| 48 | + } ?> |
| 49 | + <?php |
| 50 | + |
| 51 | + } ?> |
| 52 | + |
| 53 | + <?php if ($params['html']['toggle_code']) { |
| 54 | + ?> |
| 55 | + <div class="CodeToggler"> |
| 56 | + <hr/> |
| 57 | + <?php if ($params['html']['float']) { |
| 58 | + ?> |
| 59 | + <span class="CodeToggler__text">Code blocks</span> |
| 60 | + <div class="ButtonGroup" role="group"> |
| 61 | + <button class="Button Button--default Button--small CodeToggler__button CodeToggler__button--hide">No</button> |
| 62 | + <button class="Button Button--default Button--small CodeToggler__button CodeToggler__button--below">Below</button> |
| 63 | + <button class="Button Button--default Button--small CodeToggler__button CodeToggler__button--float">Inline</button> |
| 64 | + </div> |
| 65 | + <?php |
| 66 | + |
| 67 | + } else { |
| 68 | + ?> |
| 69 | + <a class="CodeToggler__button CodeToggler__button--main" href="#">Show Code Blocks Inline</a><br> |
| 70 | + <?php |
| 71 | + |
| 72 | + } ?> |
| 73 | + </div> |
| 74 | + <?php |
| 75 | + |
| 76 | + } ?> |
| 77 | + |
| 78 | + <?php if (!empty($params['html']['twitter'])) { |
| 79 | + ?> |
| 80 | + <hr/> |
| 81 | + <div class="Twitter"> |
| 82 | + <?php foreach ($params['html']['twitter'] as $handle) { |
| 83 | + ?> |
| 84 | + <iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle; ?>&show_count=false"></iframe> |
| 85 | + <br /> |
| 86 | + <br /> |
| 87 | + <?php |
| 88 | + |
| 89 | + } ?> |
| 90 | + </div> |
| 91 | + <?php |
| 92 | + |
| 93 | + } ?> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + <!-- For Mobile --> |
| 97 | + |
| 98 | + |
| 99 | + </div> |
| 100 | + <div class="Columns__right <?= $params['html']['float'] ? 'Columns__right--float' : ''; ?>"> |
| 101 | + |
| 102 | + <div class="Columns__right__content"> |
| 103 | + <div class="doc_content"> |
| 104 | + <?= $this->section('content'); ?> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + </div> |
| 108 | +</div> |
0 commit comments