Functions/queue css string

The queue_css_string() helper function is used to add inline styles that will be printed by display_css.

For styles added with this function to be displayed, the queue_css() call must come before the display_css() call. This means you can generally call queue_css() in the following places:

Usage

<?php
queue_css_string($styles, $media = 'all', $conditional = false);
?>

Arguments

string $styles {{#if
| (optional)}}
The inline CSS styles to include.
{{#if: | Default: {{{default}}}}}
string $media {{#if
'all' | (optional)}}
The media type the stylesheet should apply to. This is output as the "media" attribute of the style tag.
{{#if: 'all' | Default: 'all'}}
string $conditional {{#if
false | (optional)}}
An IE-style conditional comment. This is generally used to include IE-only styles. The default is to no use a conditional comment.
{{#if: false | Default: false}}

Return Value

None.

Output

None. display_css() is the corresponding helper that outputs the tags; all Omeka pages will normally call display_css().

Version History

  • Added in Omeka 1.5.