?> .list-categories > li > a { color: <?php echo $main_color; ?> ; } .categories-links a { background-color: <?php echo $main_color; ?> ; } .categories-links a:hover { background-color: <?php echo ColorDarken($main_color, 20); ?> ; } .pagination a:hover, .pagination a:focus, .pagination span.current { background-color: <?php echo $main_color; ?> ; border-color: <?php echo $main_color; ?> ; }
*/ $css_output = ""; $style_sheets = array("common", "main", "header", "footer", "sidebar", "page", "comments", "responsive", "print", "theme", "accent"); ob_start(); foreach ($style_sheets as $file) { require_once "src/{$file}.css"; } $css_output .= ob_get_contents(); ob_end_clean(); /** * Theme and Accent colours */ $colour = preg_match("/^[a-f0-9]{6}\$/", strtolower($_GET["accent"])) ? strtolower($_GET["accent"]) : "1ba1e2"; $theme = in_array($_GET["theme"], array("light", "dark")) ? $_GET["theme"] : "light"; $template_path = str_replace("/styles/styles.php", "", $_SERVER["PHP_SELF"]); $dark_colour = ColorDarken($colour, 50); if ($theme == "dark") { $theme_colour = "dark"; $font_colour = "ffffff"; $secondary_font_colour = "676767"; $bg_colour = "232323"; } else { $theme_colour = "light"; $font_colour = "000000"; $secondary_font_colour = "888888"; $bg_colour = "ffffff"; } /** * Replace the shit out of everything */ $css_output .= str_replace(array("{BG_COLOUR}", "{FONT_COLOUR}", "{SECONDARY_FONT_COLOUR}", "{COLOUR}", "{DARK_COLOUR}", "{TEMPLATE_PATH}", "{THEME_COLOUR}"), array($bg_colour, $font_colour, $secondary_font_colour, $colour, $dark_colour, $template_path, $theme), $css_output);
$mapKey2 = "name"; array_push($location, array($mapKey1 => explode(',', $value->location), $mapKey2 => @$value->firstname . ' ' . @$value->lastname)); } echo $jsonValue = json_encode($location); break; case "allAppointments": $allAppointments = WSModel::get_ws_service(BASE_WS_URL . $ws_url['allAppointments'], array(), FALSE); $allAppointmentsarr = $allAppointments->response; $events = $result = array(); $rm = 0; foreach ($allAppointmentsarr as $key => $value) { if (!isset($value->doctorName)) { continue; } $random = stringToColorCode($value->doctorName); $bgColor = ColorDarken($random); $mapKey1 = "start"; $mapKey2 = "title"; $mapKey3 = "tip"; $mapKey4 = "CareGiver Name"; $backgroundColor = "backgroundColor"; $borderColor = "borderColor"; if (isset($_POST['src'])) { array_push($events, array($mapKey1 => date('m/d/Y', strtotime($value->appointmentDate)), $mapKey2 => $value->patientName, $mapKey3 => $value->doctorName, $mapKey4 => $value->careGiverName, $backgroundColor => $bgColor, $borderColor => "#f56954")); } else { array_push($events, array($mapKey1 => $value->appointmentDate, $mapKey2 => $value->patientName, $mapKey3 => $value->doctorName, $mapKey4 => $value->careGiverName, $backgroundColor => $bgColor, $borderColor => "#f56954")); } $rm++; } echo $jsonValue = json_encode($events); break;