/** * Retourne le HTML de l'en-tĂȘte pour ajouter un fichier * CSS en comentaire conditionnel * * @param string $src L'URL du fichier javascript * @param string $condition La condition * @param string $media L'attribut media (screen) * @param string $rel L'attribut rel (stylesheet) * @param string $format Le format de la chaine ('<link type="text/css" href="%s" rel="%s" media="%s" />') * @return string */ public static function formatCCFile($src, $condition, $media = 'screen', $rel = 'stylesheet', $format = "<link type=\"text/css\" href=\"%s\" rel=\"%s\" media=\"%s\" />\n") { return htmlPage::formatCC(self::formatHtmlCssFile($src, $media, $rel, $format), $condition); }
/** * Retourne le HTML de l'en-tĂȘte pour ajouter un fichier * javascript en comentaire conditionnel * * @param string $src L'URL du fichier javascript * @param string $condition La condition * @param string $format Le format de la chaine * @return string */ public static function formatCCFile($src, $condition, $format = "<script type=\"text/javascript\" src=\"%s\"></script>\n") { return htmlPage::formatCC(self::formatFile($src, $format), $condition); }