The horizontal sidebar is implemented in templates/common/navbar.tpl; the sidebar is implemented using plugins, mostly in subdirectories of the plugins/blocks/ directory. (See Journal Setup, step 5, for the area in which you choose the composition of the sidebar). In either case, Smarty templates are used -- see http://www.smarty.net
for information on syntax.
Public Knowledge Project Team