theme:fordsonfel:userguide:section15

FordsonFEL: An advanced bootstrap theme

Customisation of section styles by teachers

Moodle site administrators can make predefined section styles available to editing teachers, which can be applied as a variant of the default section style.

Teachers can choose to keep the default style or apply a variant, independently for each course section. This possibility only works on “section-based” course formats (including the weekly format).

Setting up the styles

Alternative section styles are set up in the “Colours” category of the general settings of the Fordson FEL theme. Two settings are involved:

The setting: theme_fordson_fel | sectionsstyles

Lets you define a number of section alterations in 2 ways:

  • based on an unnamed set of CSS rules (stylerules): a rule set is a series of CSS attributes enclosed in an unnamed '{}' container: e.g. {background-color:#cd6143;text-decoration;none}
  • based on a class name (stylename) available in the stylesheets loaded in the theme, including presets or files added to presets.

The definition on each line follows the syntax:

 <sectionvariantstylename>:<variantlabel>:<stylerules> or <stylename>
  • sectionvariantstylename: The identifier of the variant (equivalent to a CSS class name)
  • variantlabel: The visible name of the variant in the application form

If the variant is declared as a rule set, this rule set will be added as the STYLE attribute of the section title element. If it is an existing CSS class name, the class will be added to the CLASS attribute of the section title element.

The setting: theme_fordson_fel | sectionsstyleimages

This file area lets you drag images that can be called by “url” in the style rules of the style variants, for example to add a background image.

The url must then be in the form:

 /pluginfile.php/1/theme_fordson_fel<variant>/sectionimages/-1/<filepath><filename>
  • <filepath> is the relative path of the image in the file area and must end with a slash.

Images are stored in the site files.

Selecting a variant for a section (or sections)

Switch to course edit mode.

In the section menu (edit), if section styles are supported by the course format, the “Change style” menu is added at the end of the list.

Select the style to add in the form that follows (the style samples let you preview the effect).


Credits

  • Valéry Frémaux (valery@activeprolearn.com)- Development and tests
  • Florence Labord (florence@activeprolearn.com): Documentation and functional tests

Back to the user guide - Theme index - Back to the plugins index - Back to the catalogue

theme/fordsonfel/userguide/section15.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki