2. The theme configuration
2.1 Basic properties
2.2 Theme configuration
2.3 Reset theme
3. The theme in practice: tips
3.1 Changing background
colors
3.2 Creating stencil files
3.3 Different stencils
3.4 The path to your own
stencil files
In this chapter we only discuss the features that are specific
for this theme. The general features that apply to most themes
are treated in chapter Theme Frugal, paragraph 2.2 Theme configuration.
Please also check The module in practice and For
visually impaired. More Bazaar Style Style features can be
found in chapter Bazaar Style Style.
Example of theme Sophia:
Long description:
In the header, from left to right: a logo, the sections
'Welcome', 'School info', 'News', 'Search' and 'My Page' These
section names are embedded in configurable (default ellipse)
colored shapes. Above the sections are a configurable text and
the top links.
Below the header is the breadcrumb trail.
Below the breadcrumb trail are the menu and content panes. The
menu pane, taking about 20 % of the screen width, is a vertical
pane (the short side of the inverted L), containing a
configurable space (default a demo picture) and below that the
content of the selected section, i.e. pages and/or sub-sections.
At the bottom of the menu pane is a configurable text, in the
demo it contains the address of the Exemplum Primary School and
the name of its principal. The remaining 80 % at the right side
of the menu pane is page content.
The footer contains a configurable line (now an e-mail-address),
the bottom links and the 'Powered by Website@School' link.
<img src="http://exemplum.eu/program/themes/sophia/calendula.jpg" width="120" height="90" alt="">
<div style="margin-bottom: 30px;">
Exemplum Primary School<br>
1, Rock Bottom street<br>
Gummersbach<br>
Principal: Amelia Cackle
</div>
#navigation ul li { background-image: url('http://exemplum.eu/program/themes/sophia/stencil0.png'); }
#navigation ul li.navigation_button5 { background-color: #FF3399;
}
/* Customised colours for navigation buttons (default #666666) */
#navigation ul li.navigation_button1 { background-color: #FF0000; }
#navigation ul li.navigation_button2 { background-color: #3333FF; }
#navigation ul li.navigation_button3 { background-color: #FF9933; }
#navigation ul li.navigation_button4 { background-color: #66CC66; }
#navigation ul li.navigation_button5 { background-color: #9933FF; }
#navigation ul li.navigation_button6 { background-color: #FF3399;
}
#navigation ul li.navigation_button1 { background-color: #FF0000;
}
#navigation ul li { background-image: url('http://exemplum.eu/program/themes/sophia/stencil0.png'); }
#navigation ul li.navigation_button5 { background-color: #FF3399;
}
It's not difficult to create your own stencil file. What is
needed is a paint program with which you can create images with
transparent parts. We highly recommend mtPaint. From the blurb:
"mtPaint is a painting program which Mark Tyler developed from
scratch so he could easily create pixel art and manipulate
digital photos. [...] and runs on PC's via the GNU/Linux or
Windows operating systems. Due to its efficient design it can run
on older PC hardware. [...] mtPaint is free software, which means
you are able to freely use, modify and distribute it according to
the GNU General Public License." mtPaint is available in many
languages and has an excellent manual.
In Linux, Mac and Windows the free GIMP (GNU Image Manipulation Program) can be used.
Stencil file with mtPaint
Proceed as follows to make a stencil file:
Take the following steps which you know from every paint program:
Set the file format to PNG, the Transparency index to 0 (zero) and the PNG compression to 9. Give the file a name and click [OK], where upon you return to the canvass:
'Checkered' means 'transparent'.
Notice the stencils in 'MyPage' and 'Top Menu'. These stencils were created with stencil6.png and stencil8.png.
/* Change the stencil for each section */
#navigation ul li.navigation_button4 { background-image:
url('http://exemplum.eu/program/themes/sophia/stencil6.png'); }
#navigation ul li.navigation_button4 { background-color: #FF0000;
}
#navigation ul li.navigation_button5 { background-image:
url('http://exemplum.eu/program/themes/sophia/stencil8.png'); }
#navigation ul li.navigation_button5 { background-color: #FF3399;
}
Your own created files can best be put in the directory for
the created Area. Use the File manager and navigate to
/areas/<yourarea> and upload your stencil file(s)
and logo file there.
In 'Extra style at area level', use a path like this to a
stencil:
/* Path to a stencil in the area Exemplum Inactive */
#navigation ul li { background-image:
url('http://exemplum.eu/file.php/areas/inactive/themes_sophia_110x70.png');
#navigation ul li.navigation_button5 { background-color: #FF3399;
}
See also the chapter File Manager, paragraph 5. Using files: file paths for the logo file.
Author: Dirk Schouten <dirk (at) websiteatschool (dot) eu> Last updated: 2014-09-06