2 function fusion_set_linkcolor($css, $linkcolor) {
3 $tag = '[[setting:linkcolor]]';
4 $replacement = $linkcolor;
5 if (is_null($replacement)) {
6 $replacement = '#2d83d5';
8 $css = str_replace($tag, $replacement, $css);
14 function fusion_set_customcss($css, $customcss) {
15 $tag = '[[setting:customcss]]';
16 $replacement = $customcss;
17 if (is_null($replacement)) {
20 $css = str_replace($tag, $replacement, $css);
28 function fusion_process_css($css, $theme) {
30 if (!empty($theme->settings
->linkcolor
)) {
31 $linkcolor = $theme->settings
->linkcolor
;
35 $css = fusion_set_linkcolor($css, $linkcolor);
37 if (!empty($theme->settings
->customcss
)) {
38 $customcss = $theme->settings
->customcss
;
42 $css = fusion_set_customcss($css, $customcss);