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===


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


===CSS Element list===
===CSS Element list===

Revision as of 08:46, 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

  <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