OXID eShop CE  6.3.0
function.oxscript.php File Reference

Functions

 smarty_function_oxscript ($params, &$smarty)
 

Function Documentation

◆ smarty_function_oxscript()

smarty_function_oxscript (   $params,
$smarty 
)

Copyright © OXID eSales AG. All rights reserved. See LICENSE file for license details.

Smarty plugin

File: function.oxscript.php Type: string, html Name: oxscript Purpose: Collect given javascript includes/calls, but include/call them at the bottom of the page.

Add [{oxscript add="oxid.popup.load();"}] to add script call. Add [{oxscript include="oxid.js"}] to include local javascript file. Add [{oxscript include="oxid.js?20120413"}] to include local javascript file with query string part. Add [{oxscript include="http://www.oxid-esales.com/oxid.js"}] to include external javascript file.

IMPORTANT!

Do not forget to add plain [{oxscript}] tag before closing body tag, to output all collected script includes and calls.

Parameters
array$paramsParams
Smarty$smartyClever simulation of a method
Returns
string