|
|
|
@ -11,13 +11,13 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
|
|
|
|
*/ |
|
|
|
|
function faq_insert_head_css($flux) { |
|
|
|
|
// On inclut systématiquement les CSS de base |
|
|
|
|
$flux .= '<link rel="stylesheet" href="' . find_in_path('css/faq.css') . '" type="text/css" media="all" />'; |
|
|
|
|
$flux .= '<link rel="stylesheet" href="' . timestamp(find_in_path('css/faq.css')) . '" type="text/css" media="all" />'; |
|
|
|
|
|
|
|
|
|
// On ajoute si la config le demande les CSS propres aux dl |
|
|
|
|
include_spip('inc/config'); |
|
|
|
|
$charger_css = lire_config('faq/charger_css'); |
|
|
|
|
if ($charger_css) { |
|
|
|
|
$flux .= '<link rel="stylesheet" href="' . find_in_path('css/faq_dl.css') . '" type="text/css" media="all" />'; |
|
|
|
|
$flux .= '<link rel="stylesheet" href="' . timestamp(find_in_path('css/faq_dl.css')) . '" type="text/css" media="all" />'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $flux; |
|
|
|
@ -32,7 +32,7 @@ function faq_insert_head($flux) {
|
|
|
|
|
include_spip('inc/config'); |
|
|
|
|
$charger_js = lire_config('faq/charger_js'); |
|
|
|
|
if ($charger_js) { |
|
|
|
|
$flux .= '<script src="' . find_in_path('js/faq.js') . '" type="text/javascript"></script>'; |
|
|
|
|
$flux .= '<script src="' . timestamp(find_in_path('js/faq.js')) . '" type="text/javascript"></script>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $flux; |
|
|
|
|