On 3/6/2011 1:56 PM, Philip Buckley wrote:
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');
The syntax for Stack::add() allows for an additional parameter that
indicates what the newly added item is dependent on.
For example:
Stack::add( 'template_stylesheet', $reset, 'reset');
Stack::add( 'template_stylesheet', $generic, 'generic', 'reset');
The 'generic' item is added with 'reset' as a dependency. Regardless of
the order these lines are executed, the 'generic' sheet will be output
after the 'reset' sheet.
Here are the API docs for Stack::add(): http://asym.us/ghKL46
Hope that helps.
Owen
--
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