queue_js_url($url, $options = array())¶
The script link will appear in the head element. This needs to be called either before head() or in a plugin_header hook.
- $url –
- $options (array) – An array of options.
head_js actually outputs the scripts. All themes should already call
so you can just use the queue functions.
$options array is passed as the
$attrs parameter to the
Zend Framework headScript
helper. This can be used to set some attributes on the
<script> tag as
well as to enable some specific functionality of the ZF helper like IE
<?php queue_js_url('//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'); ?>