The configuration variables are listed at the top of the index.php file; here is an overview of these options:
$CLASS_NAME_SHORT
This is the subject code and the course number of the class for which the template is being used. i.e. CSCI 4011, MATH 2243, SENG 5011. This will be used to make "Home" links for the left-hand menu, as well as in the title of the page. (The title of each page is made by concatenating $CLASS_NAME_SHORT and the title of the page that is being templated.)
$CLASS_NAME
This is a longer name for the course, such as "CSCI 4011: Formal Languages" or "MATH 2243: Differential Equations." Because this name is used in the header of the template, it should be kept under 30 characters to avoid breaking the layout.
$MENU_EXT
This variable is an array of the file extensions
defining which files should be listed in the left-hand
menu. It should be of the form:
$MENU_EXT = array('html', 'htm');
It defaults to:
array('html');
$TEMP_EXT
This variable is an array of the file
extensions defining which files should not
be listed in the menu, but should be
linked as templated versions inside other files.
This variable should be of the same form as
$MENU_EXT. It defaults to:
array('html', 'htm');
$BG_COLOR
This is the color that is applied to the header graphic on each page. It will have an opacity of 50%, so the color you enter will not be the exact color shown on the screen.
The color can be entered in one of three forms:
- Hex: #RRGGBB
- RGB: rgb(rrr,ggg,bbb)
- Plain English: ie. white, red, green, blue, etc.
$OPAQUE
If you would prefer a solid color background
for our header, you can turn off the opacity
feature of the templates by changing this
variable from TRUE to FALSE.
$FG_COLOR
This is the color of the text that is written over the header graphic, so you should make sure that it has enough contrast with its background. It can be entered in the same formats as $BG_COLOR.
$EXTRA_LINKS
This variable allows you to specify additional links that will be appended to the top section of the left-hand menu. Each link should be entered in the form <a href="link.html">Link</a><br /><br /> in order to maintain proper spacing.
$EXTRA_LINKS_BOTTOM
This allows you to specify additional links that will be appended to the bottom section of the left hand menu. The links should be entered in in the form <br /><br /><a href="link.html">Link</a> in order to maintain proper spacing.
$IGNORED_FILES_LIST
This allows you to define files that should not be included in the left navigation
menu. Since the left menu is generated by the files in the class root directory,
only use the filename, do not include the path, for example:
if you wish http://www-users.itlabs.umn.edu/classes/Spring-2006/cscixxxx/file1.html
to not be in the left navigation menu, add "file1.html" to the array:
array('file1.html');
$IGNORED_FILES_TEMPLATE
This allows you to specify explicitly which files the templating system should ignore. These files
will display "as is" without applying the U of M template. Files are specified in relation to the
class root directory (for example: http://www-users.itlabs.umn.edu/classes/Spring-2006/cscixxxx/).
For example, to add files: "../cscixxxx/dir1/file1.html", "../cscixxxx/file2.html" use:
array('dir1/file1.html', 'file2.html');
$LEFT_NAV_LIST
This allows you to specify the left navigation menu explicitly by providing a list of files in the
class root directory (for example: http://www-users.itlabs.umn.edu/classes/Spring-2006/cscixxxx/).
If this is specified, only files which exist will be added to the left navigation menu
(to prevent broken links). Also, files in the class root directory not specified in the list
are not added to the left navigation menu. The menu appears in order specified by the list. If this list
is unspecified, an alphabetical menu of files in the class root directory is used.
For example, to for a left navigation menu containing:
"../cscixxxx/file1.html", "../cscixxxx/file2.html", use:
array('file1.html', 'file2.html');