Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| custom:ssjs_template [2021/02/19 11:17] – mortifis | custom:ssjs_template [2021/02/19 11:35] (current) – [The SSJS Template Scheme] beautify (haha) and add useful example mortifis | ||
|---|---|---|---|
| Line 85: | Line 85: | ||
| <code left_nav> | <code left_nav> | ||
| - | template.leftnav.push({html: | + | template.leftnav.push({html: |
| </ | </ | ||
| - | Here we added the link BBS Links to the left side navigation that points to bbses.ssjs. | + | Here we added the link **Logout** |
| - | Now create the script called '' | + | Now create the script called '' |
| <code bbs> | <code bbs> | ||
| - | load("../web/lib/template.ssjs"); | + | < |
| - | template.title= system.name + " | + | template.logout |
| + | write('< | ||
| - | template.whatever | + | user.number |
| - | + | ||
| - | var sub = ''; | + | |
| - | + | ||
| - | /* below values are set in ../ | + | |
| - | if(do_header) | + | |
| - | write_template(" | + | |
| - | if(do_topnav) | + | |
| - | load(topnav_html); | + | |
| - | if(do_leftnav) | + | |
| - | load(leftnav_html); | + | |
| + | if(do_header) | ||
| + | write_template(" | ||
| + | if(do_topnav) | ||
| + | load(topnav_html); | ||
| + | if(do_leftnav) | ||
| + | load(leftnav_html); | ||
| if(do_rightnav) | if(do_rightnav) | ||
| - | write_template(" | + | |
| + | write_template(" | ||
| + | if(do_footer) | ||
| + | write_template(" | ||
| - | write_template(" | ||
| - | |||
| - | if(do_footer) | ||
| - | write_template(" | ||
| </ | </ | ||
| - | Now you need a corresponding ../ | + | Now you need a corresponding ../ |
| - | < | + | < |
| - | < | + | <!-- ../web/templates/ |
| - | <!-- Begin BBS Connect Content --> | + | <div id=" |
| + | <div id=" | ||
| + | @@logout@@ | ||
| + | </ | ||
| + | </ | ||
| + | </code> | ||
| - | @@whatever@@ | ||
| - | <!-- End Main Content --> | ||
| - | </ | ||
| ==== SSJS Theme Support ==== | ==== SSJS Theme Support ==== | ||