/** * Load javascript to the footer */ function bp_footer() { $script = ''; $this->_bp_script = apply_filters('app_bp_footer_scripts', $this->_bp_script); if ($this->_bp_script) { $script .= '<script type="text/javascript">'; $script .= "jQuery(document).ready(function(\$) {"; $script .= $this->_bp_script; $script .= "});</script>"; } echo $this->_core->esc_rn($script); }