since the early days of the pluginloader there is the plugin TemplateShift, which has later been rewritten and modernized to become TemplateSwitch. Both plugins are very useful for template designers to present their templates, but apparently they are not too useful for normal CMSimple_XH sites--at least I've rarely seen the plugins used on normal sites. Maybe it is simply too expensive to maintain several templates.
However, at least since HTML 4.01 (December 1999) it should be possible to specify alternative stylesheets, which could be selected by the visitor (some browsers allow this with built-in options, such as Firefox [View->Website Style]; for other browsers there might be add-ons available). Making use of this feature might be a nice improvement for templates, and it can already be used by modifying the template and offering multiple stylesheets. For instance, I've picked "n3005" form Torsten.Behrens (because there are already several alternative stylesheets included), and modified template.htm:
Code: Select all
<link rel="stylesheet" title="blue" href="<?php echo $pth['folder']['template'];?>style.css" media="screen">
<link rel="alternate stylesheet" title="aqua" href="<?php echo $pth['folder']['template'];?>style-1.css" media="screen">
<link rel="alternate stylesheet" title="brown" href="<?php echo $pth['folder']['template'];?>style-2.css" media="screen">
<link rel="alternate stylesheet" title="green" href="<?php echo $pth['folder']['template'];?>style-3.css" media="screen">
<link rel="alternate stylesheet" title="lime" href="<?php echo $pth['folder']['template'];?>style-4.css" media="screen">
<link rel="alternate stylesheet" title="purple" href="<?php echo $pth['folder']['template'];?>style-5.css" media="screen">
However, this solution has the drawback that the user selection is gone after navigation to another page. It might be nice to have a small plugin or addon similar to TemplateSwitch that is able to let the user choose the desired style and stores this selection in a cookie, and uses this cookie to rearrange the alternate stylesheets.
Thoughts?
Christoph