Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Course element : Course Heading.

Course element : Course Heading: Difference between revisions

From MoodleDocs
No edit summary
Line 11: Line 11:
===Default Template===
===Default Template===


   <div class="custombox-courseheading">
   <table class="custombox-courseheading">
   &lt;%%category%%>
  <tr valign="middle" class="custombox-icon courseheading">
   &lt;div class="custombox-heading courseheading"&gt;&lt;h1&gt;<%%courseheading%%> <%%idnumber%%>&lt;/h1&gt;&lt;/div>
  <%%imageL%%>
   &lt;div class="custombox-description courseheading"><%%coursedesc%%>&lt;/div>
  </td>
   &lt;/div>
  <td width="*">
  <%if %%showcategory%% %><div class="custombox-category courseheading"><%%category%%></div><%endif %>
   <div class="custombox-preheading courseheading"><%%moduletype%%></div>
   <div class="custombox-heading courseheading"><%if %%showshortname%% %>(<%%shortname%%>)<%endif %>
          <%%courseheading%%> <%if %%showidnumber%% %>(<%%idnumber%%>)<%endif %></div>
   <%if %%showdescription%% %><div class="custombox-description courseheading"><%%coursedesc%%></div><%endif %>
  </td>
   <%%imageR%%>
  </tr>
  </table>


===CSS Element list===
===CSS Element list===
Line 21: Line 30:
.custombox-courseheading(TABLE) : Overal container
.custombox-courseheading(TABLE) : Overal container


.custombox-heading.courseheading H1 (DIV) : Course Caption container
.custombox-heading.courseheading (DIV) : Course Caption container


.custombox-idnumber.courseheading (DIV) : ID Number container
.custombox-idnumber.courseheading (DIV) : ID Number container

Revision as of 08:45, 15 January 2013

Back to index

The Course Heading is a simple element that provides standard layout and styling for whole course main caption.

Settings form

Default Template

<%%imageL%%> <%%imageR%%>
<%if %%showcategory%% %>
<%%category%%>
<%endif %>
<%%moduletype%%>
<%if %%showshortname%% %>(<%%shortname%%>)<%endif %> <%%courseheading%%> <%if %%showidnumber%% %>(<%%idnumber%%>)<%endif %>
<%if %%showdescription%% %>
<%%coursedesc%%>
<%endif %>

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