function __scrmActions() { $dirname = plugins_url() . '/' . basename(dirname(__FILE__)); //print "{$dirname}/assets/main.js"; wp_enqueue_style('bootstrap', "{$dirname}/assets/bootstrap/css/bootstrap.min.css", array(), '3.2'); wp_enqueue_style('bootstrap-theme', "{$dirname}/assets/bootstrap/css/bootstrap-theme.min.css", array('bootstrap'), '3.2'); wp_enqueue_script('bootstrap', "{$dirname}/assets/bootstrap/js/bootstrap.min.js", array('jquery'), '20141010'); wp_enqueue_style("stylefile", "{$dirname}/assets/main.css", array('bootstrap'), '3.2'); wp_enqueue_script("myfunc_{$GLOBALS['plgn_shortname']}", "{$dirname}/assets/main.js", array('jquery'), 1.1); wp_enqueue_script("jquery-ui-{$GLOBALS['plgn_shortname']}", "{$dirname}/assets/jquery-ui.min.js", array('jquery'), 1.1); __scrm_localize(); }
function aopAdminScripts() { wp_register_script('aop-jquery-ui', get_template_directory_uri() . '/js/jquery-ui.min.js', array('jquery'), '20120206', true); wp_enqueue_script('aop-jquery-ui'); __scrm_localize(); }