diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-01 21:10:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-01 21:10:04 -0700 |
commit | e332d1074f1b663ec66d37b0f575df2e41d5535c (patch) | |
tree | 6309a232348eb70ed4db5fbb7ed898f98c5beee8 /view/theme/redbasic/tpl/help.tpl | |
parent | 42ed73ed4ac55ac62214301097f7d72cbcb37238 (diff) | |
download | volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.tar.gz volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.tar.bz2 volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.zip |
move theme specific files to theme dir
Diffstat (limited to 'view/theme/redbasic/tpl/help.tpl')
-rw-r--r-- | view/theme/redbasic/tpl/help.tpl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/view/theme/redbasic/tpl/help.tpl b/view/theme/redbasic/tpl/help.tpl new file mode 100644 index 000000000..43b061dcc --- /dev/null +++ b/view/theme/redbasic/tpl/help.tpl @@ -0,0 +1,33 @@ +<div id="help-content" class="generic-content-wrapper"> + <div class="section-title-wrapper"> + <h2>{{$title}}: {{$heading}}</h2> + </div> + <div class="section-content-wrapper" id="doco-content"> + <h3 id="doco-top-toc-heading"> + <span class="fakelink" onclick="docoTocToggle(); return false;"> + <i class="fa fa-fw fa-caret-right fakelink" id="doco-toc-toggle"></i> + {{$tocHeading}} + </span> + </h3> + <ul id="doco-top-toc" style="margin-bottom: 1.5em; display: none;"></ul> + {{$content}} + </div> +</div> + +<script> + // Generate the table of contents in the side nav menu (see view/tpl/help.tpl) + $(document).ready(function () { + $('#doco-top-toc').toc({content: "#doco-content", headings: "h3,h4,h5,h6"}); + }); + + function docoTocToggle() { + if($('#doco-top-toc').is(':visible')) { + $('#doco-toc-toggle').removeClass('fa-cog').addClass('fa-caret-right'); + } else { + $('#doco-toc-toggle').removeClass('fa-caret-right').addClass('fa-caret-down'); + } + $('#doco-top-toc').toggle(); + + return false; + } +</script> |