Issue Details (XML | Word | Printable)

Key: MDL-16151
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Tim Hunt
Reporter: Tim Hunt
Votes: 5
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Need a require_css function, like require_js

Created: 21/Aug/08 01:14 PM   Updated: 16/Jun/09 10:53 PM
Return to search
Component/s: Lib
Affects Version/s: 1.9.2
Fix Version/s: 2.0

Participants: Olli Savolainen and Tim Hunt
Security Level: None
Resolved date: 16/Jun/09
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
It would be really, really nice to have a require_css function that works a bit like require_js. It would make it much easier for plugins and patches that need to get stylesheet links into the header, but which don't make the print_header call directly. See http://cvs.moodle.org/contrib/plugins/admin/report/userroles/index.php?revision=1.2&view=markup for an implementation. You aslo need to change the $meta .= "\n".require_js(); line in print_header.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Sam Hemelryk committed 1 file to 'Moodle CVS' - 25/Sep/09 04:24 PM
requires-css MDL-16151 Support for css files that use args
MODIFY lib/ajax/ajaxlib.php   Rev. 1.79    (+1 -1 lines)