Last active
August 29, 2015 14:02
-
-
Save rahularyan/03fec03dadf5daf05059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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