$timeModules_array .= '"' . html_entity_decode($tmmod, ENT_QUOTES, $default_charset) . '",'; } $smarty->assign('TIMEMODULEARRAY', trim($timeModules_array, ",")); $smarty->assign('TIMEMODULEDETAILS', json_encode($timeModluleDetails)); } //Sunday=0, Monday=1, Tuesday=2, etc. $smarty->assign('FISRTDAY', $Calendar_Settings["number_dayoftheweek"]); if ($Calendar_Settings["hour_format"] == "24") { $is_24 = true; } else { $is_24 = false; } $smarty->assign('IS_24', $is_24); include_once 'modules/Calendar4You/class/color_converter.class.php'; include_once 'modules/Calendar4You/class/color_harmony.class.php'; $Event_Colors = $Calendar4You->getEventColors(); $colorHarmony = new colorHarmony(); $Task_Colors = getEColors("type", "task"); $Task_Colors_Palete = $colorHarmony->Monochromatic($Task_Colors["bg"]); if (!$load_ch || $Ch_Views["1"]["task"]) { $task_checked = true; } else { $task_checked = false; } $Activity_Types = $Module_Types = array(); $Activity_Types["task"] = array("typename" => "Tasks", "label" => $c_mod_strings["LBL_TASK"], "act_type" => "task", "title_color" => $Task_Colors_Palete[0], "color" => $Task_Colors_Palete[1], "textColor" => $Task_Colors["text"], "checked" => $task_checked); $ActTypes = getActTypesForCalendar(); foreach ($ActTypes as $act_id => $act_name) { if (!$load_ch || $Ch_Views["1"][$act_id]) { $event_checked = true; } else {