Nachdem ich mich gründlich geärgert hatte, dass z.B. im Snippet 'anynews' Änderungen der mitgelieferten
frontend.css wirkungslos blieben, knöpfte ich mir den Core vor und stellte fest, dass diese Dateien überhaupt nicht eingelesen werden.
Folgende Änderung an der
/framework/frontend.functions.php beheben dieses Manko:
360 // define constant indicating that the register_frontent_files was invoked
361 if($file_id == 'css') {
362 if(!defined('MOD_FRONTEND_CSS_REGISTERED')) define('MOD_FRONTEND_CSS_REGISTERED', true);
363 } else {
364 if(!defined('MOD_FRONTEND_JAVASCRIPT_REGISTERED')) Define('MOD_FRONTEND_JAVASCRIPT_REGISTERED', true);
365 }
366 // ensure that frontend.js or frontend.css is only added once per module type
367 if(strpos($head_links, $tmp_link) === false) {
368 $head_links .= $tmp_link ."\n";
369 }
370 };
371 }
372 // Function to add optional snippet Javascript or CSS stylesheets into the <head> section of the frontend
373 // modification by ISTeam, Werner von der Decken 2009
374 // BEGINN mod --------------------------------------------
375 $query_modules = $database->query("SELECT directory AS module FROM " .TABLE_PREFIX ."addons WHERE function = 'snippet'");
376
377 while($row = $query_modules->fetchRow()) {
378 // check if snippet module directory contains a frontend.js or frontend.css file
379 if(file_exists(WB_PATH ."/modules/" .$row['module'] ."/$base_file")) {
380 // create link with frontend.js or frontend.css source for the current module
381 $tmp_link = str_replace("{MODULE_DIRECTORY}", $row['module'], $base_link);
382
383 // define constant indicating that the register_frontent_files was invoked
384 if($file_id == 'css') {
385 if(!defined('MOD_FRONTEND_CSS_REGISTERED')) define('MOD_FRONTEND_CSS_REGISTERED', true);
386 } else {
387 if(!defined('MOD_FRONTEND_JAVASCRIPT_REGISTERED')) define('MOD_FRONTEND_JAVASCRIPT_REGISTERED', true);
388 }
389 // ensure that frontend.js or frontend.css is only added once per module type
390 if(strpos($head_links, $tmp_link) === false) {
391 $head_links .= $tmp_link ."\n";
392 }
393 };
394 }
395 // END mod -----------------------------------------------
396 // include the Javascript email protection function
397 if( $file_id != 'css' && file_exists(WB_PATH .'/modules/droplets/js/mdcr.js')) {