$value) { $result .= '--board-' . $value['fid'] . '_color:' . (isset($value['color'])&&!empty($value['color'])?$value['color']:'var(--naslov_background)') . ';'; } $result .= '}'; foreach ($forums as $key => $value) { $result .= '#board-' . $value['fid'] . '.naslov, #board-' . $value['fid'] . '.kocka, #board-' . $value['fid'] . '.zapocni-temu, #board-' . $value['fid'] . '.kategorija,#board-' . $value['fid'] . '.badge{background:var(--board-' . $value['fid'] . '_color); }'; $result .= '#board-' . $value['fid'] . ' .kategorija a {color:var(--board-' . $value['fid'] . '_color);}'; } cache_set('bbf_boards_color', $result, 180); return $result; } } if (!function_exists('kumquat_get_setting')) { function kumquat_get_setting($plugin_id, $setting_id) { if (empty($plugin_id) || empty($setting_id)) { return NULL; } else { $plugin_settings = setting_get($plugin_id . '_setting'); if ( isset($plugin_settings) && isset($plugin_settings[$setting_id]) ) { return $plugin_settings[$setting_id]; } else { return NULL; } } } } ?>