Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// register javascripts
qw_apply_filter('enqueue_scripts','qw_admin_enqueue_scripts');
function qw_admin_enqueue_scripts($src){
if (qa_request() == 'themeoptions') {
$src['qw_admin'] = QW_CONTROL_URL . '/js/admin.js';
}
$src['jquery'] = QW_CONTROL_URL. '/js/jquery-1.11.0.min.js';
return $src;
}
// register css
qw_apply_filter('enqueue_css', 'qw_admin_enqueue_css');
function qw_admin_enqueue_css($css_src){
$css_src['qw_admin'] = QW_CONTROL_URL . '/css/admin.css';
if (qa_request() == 'themeoptions') {
$css_src['qw_spectrum'] = QW_CONTROL_URL . '/css/spectrum.css';
}
return $css_src;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.