init
This commit is contained in:
28
include/Smarty/plugins/function.overlib_includes.php
Executable file
28
include/Smarty/plugins/function.overlib_includes.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*
|
||||
* This is a Smarty plugin to handle the inclusion of the overlib js library.
|
||||
*
|
||||
* @author John Mertic {jmertic@sugarcrm.com}
|
||||
*/
|
||||
|
||||
/**
|
||||
* smarty_function_overlib_includes
|
||||
* This is the constructor for the Smarty plugin.
|
||||
*
|
||||
* @param $params The runtime Smarty key/value arguments
|
||||
* @param $smarty The reference to the Smarty object used in this invocation
|
||||
*/
|
||||
function smarty_function_overlib_includes($params, &$smarty)
|
||||
{
|
||||
$path = getJSPath('include/javascript/sugar_grp_overlib.js');
|
||||
return <<<EOHTML
|
||||
<!-- begin includes for overlib -->
|
||||
<script type="text/javascript" src="$path"></script>
|
||||
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; max-width: 400px;"></div>
|
||||
<!-- end includes for overlib -->
|
||||
EOHTML;
|
||||
}
|
||||
Reference in New Issue
Block a user