Course element : Course Heading: Difference between revisions
| Line 8: | Line 8: | ||
[[Image:CourseHeading_settings.jpg|||center]] | [[Image:CourseHeading_settings.jpg|||center]] | ||
===Internal Variables=== | |||
* ''%%imageL%%'' : Provides icon bloc at left pos when set to left | |||
* ''%%imageR%%'' : Provides icon bloc at right pos when set to right | |||
* ''%%category%%'' : Category name | |||
* ''%%shortname%%'' : Course short name | |||
* ''%%courseheading%%'' : Course full name | |||
* ''%%idnumber%%'' : Course ID number | |||
* ''%%shortname%%'' : Course shortname | |||
* ''%%coursedesc%%'' : Course description (same as used in course lists) | |||
* ''%%imagepositionioption%%' : Image switch : left, right, none | |||
* ''%%showidnumber%%'' : Course ID number activator | |||
* ''%%showshortname%%'' : Course shortname activator | |||
* ''%%showdescription%%'' : Course description activator | |||
===Default Template=== | ===Default Template=== | ||
Revision as of 08:53, 15 January 2013
The Course Heading is a simple element that provides standard layout and styling for whole course main caption.

Settings form

Internal Variables
- %%imageL%% : Provides icon bloc at left pos when set to left
- %%imageR%% : Provides icon bloc at right pos when set to right
- %%category%% : Category name
- %%shortname%% : Course short name
- %%courseheading%% : Course full name
- %%idnumber%% : Course ID number
- %%shortname%% : Course shortname
- %%coursedesc%% : Course description (same as used in course lists)
- %%imagepositionioption%%' : Image switch : left, right, none
- %%showidnumber%% : Course ID number activator
- %%showshortname%% : Course shortname activator
- %%showdescription%% : Course description activator
Default Template
<table class="custombox-courseheading"> <tr valign="middle" class="custombox-icon courseheading"> <%%imageL%%> </td> <td width="*"> <%if %%showcategory%% %><div class="custombox-category courseheading"><%%category%%></div><%endif %>
<div class="custombox-preheading courseheading"><%%moduletype%%>
<div class="custombox-heading courseheading"><%if %%showshortname%% %>(<%%shortname%%>)<%endif %>
<%%courseheading%%> <%if %%showidnumber%% %>(<%%idnumber%%>)<%endif %>
<%if %%showdescription%% %><div class="custombox-description courseheading"><%%coursedesc%%></<%endif %> </td> <%%imageR%%> </tr> </table>
CSS Element list
.custombox-courseheading(TABLE) : Overal container
.custombox-heading.courseheading (DIV) : Course Caption container
.custombox-idnumber.courseheading (DIV) : ID Number container
.custombox-category.courseheading (DIV) : Category Name container
.custombox-description.courseheading (TD) : Course Description (summary) container