'; } /** * Loads a css html link * @param string $path - the path to the css file */ public static function link_css(string $path): string { $stamp = Core::asset_stamp("public/$path"); $href = Core::get_url("public/{$path}?timestamp={$stamp}"); return ''; } /** * Loads a css html link * @param string $path - the path to the css file */ public static function embed_css(string $path): string { $file = PUBLIC_ROOT . '/' . $path; if (file_exists($file)) { $text = file_get_contents($file); return ""; } else { return ""; } } /** * Formats a ISO date * @param $iso_date the ISO date */ public static function format_date(string $iso_date): string { return date("Y-m-d D H:i", strtotime($iso_date)) . ' EST'; } }