I create a template in Drupal by its layout. In the file test.info (configuration of my template) I prescribe the path to the css files. stylesheets[all][] = style.css
is an example of a style connection, but I have many (100+), and writing 100 commands is not very practical. Tell me, please, how to add all the styles.
|
1 answer
You can use the function drupal_add_css in template.php.
As an example:
function test_preprocess_page(&$vars) { foreach (glob(path_to_theme() . "/css/*.css") as $css) { drupal_add_css($css); } }
But just do 100+ css-files - this is a lot, in my opinion. It is better to combine them.
|