1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<?php
/**
* $Horde: mnemo/themes/categoryCSS.php,v 1.1.2.1 2008/05/20 22:00:25 jan Exp $
*
* Copyright 2008 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
*/
@define('AUTH_HANDLER', true);
@define('MNEMO_BASE', dirname(__FILE__) . '/..');
require_once MNEMO_BASE . '/lib/base.php';
require_once 'Horde/Image.php';
require_once 'Horde/Prefs/CategoryManager.php';
header('Content-Type: text/css');
$cManager = new Prefs_CategoryManager();
$colors = $cManager->colors();
$fgColors = $cManager->fgColors();
foreach ($colors as $category => $color) {
if ($category == '_unfiled_' || $category == '_default_') {
continue;
}
$class = '.category' . md5($category);
echo "$class, .linedRow td$class, .overdue td$class, .closed td$class { "
. 'color: ' . (isset($fgColors[$category]) ? $fgColors[$category] : $fgColors['_default_']) . '; '
. 'background: ' . $color . '; '
. "padding: 0 4px; }\n";
}
|