Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Форумы / Cotonti / Skins / Colour Schemes

More information on colour schemes for themes

#37322 27.03.2013 14:33

Most likely you will need loading 2 CSS files at a time. Move all your common CSS rules to a file called e.g. css/base.css and connect it via MY_SKIN.rc.php:


Then put all colour-specific styles to appropriate files like css/blue.css, css/green.css, etc. and connect them the old way in header.tpl:

<link rel="stylesheet" type="text/css" href="{PHP.cfg.themes_dir}/{PHP.theme}/css/{PHP.scheme}.css">

There's a more tricky way using cot_rc_link_file() in MY_SKIN.php, but the above should just work.

May the Source be with you!