Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
custom:ssjs_template [2021/02/19 11:17] – mortifis | custom:ssjs_template [2021/02/19 11:33] – [The SSJS Template Scheme] 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 = '' | + | if(do_header) |
+ | write_template(" | ||
+ | if(do_topnav) | ||
+ | load(topnav_html); | ||
+ | if(do_leftnav) | ||
+ | load(leftnav_html); | ||
- | /* below values are set in ../ | ||
- | 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 ../ |
- | < | + | < |
- | <!-- $Id: bbses.inc,v 0.1 2021/02/18 02:19:55 lamer Exp $ --> | + | <div id=" |
- | + | <div id=" | |
- | <!-- Begin BBS Connect Content --> | + | |
- | + | </ | |
- | @@whatever@@ | + | </div> |
- | + | ||
- | <!-- End Main Content --> | + | |
</ | </ | ||
==== SSJS Theme Support ==== | ==== SSJS Theme Support ==== |