Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created September 25, 2012 20:04
Show Gist options
  • Save jeremyboggs/3784112 to your computer and use it in GitHub Desktop.
Save jeremyboggs/3784112 to your computer and use it in GitHub Desktop.
Queues Omeka theme assets
<?php
function queue_theme_assets() {
queue_js('modernizr.min');
$respondSrc = src('respond.min.js', 'javascripts');
$modernizrLoad = "Modernizr.load([{test: Modernizr.mq(), nope: " . "['$respondSrc']}]);";
queue_js_string($modernizrLoad);
__v()->headScript()->appendFile(src('selectivizr.min.js', 'javascripts'), 'text/javascript', array('conditional' => 'lt IE 9'));
__v()->headLink()->prependStylesheet('http://fonts.googleapis.com/css?family=Bitter:400,700,400italic', 'screen');
queue_css('style');
}
add_plugin_hook('public_theme_header', 'queue_theme_assets');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment