I have a number of stylesheets that I am loading into the Stack in
theme.php with this syntax:
Stack::add( 'template_stylesheet', array(Site::get_url( 'theme', '/
resources/css/reset.css' ) , 'screen'), 'reset');
Stack::add( 'template_stylesheet', array(Site::get_url( 'theme', '/
resources/css/generic.css' ) , 'screen'), 'generic');
Stack::add( 'template_stylesheet', array(Site::get_url( 'theme', '/
resources/css/header.css' ) , 'screen'), 'header');
Stack::add( 'template_stylesheet', array(Site::get_url( 'theme', '/
resources/css/footer.css' ) , 'screen'), 'footer');
... etc. (there are actually 8 in all)
Then outputting them in header.php with:
<?php $theme->header(); ?>
The trouble is that they are coming out in a different order to the
order I am putting them in (it seems to be a random order). So, for
instance, my reset css file is being output late in the list when I
actually want it to be output first. Should they be output in the
order that they are added to the stack? If so, is this a bug?
No doubt when I have finished developing the site I will consolidate
the stylesheets so I am not loading so many separate files, but just
now whilst I am working on the site it is convenient to have them
split into numerous files.
Habari Version 0.7
Habari API Version 4875
Habari DB Version 4785
Thanks
Philip
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev