mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-05 08:40:54 +02:00
24 lines
694 B
PHP
24 lines
694 B
PHP
![]() |
<?php
|
||
|
|
||
|
/*
|
||
|
* Smarty plugin
|
||
|
* -------------------------------------------------------------
|
||
|
* Type: function
|
||
|
* Name: popup_init
|
||
|
* Purpose: initialize overlib
|
||
|
* -------------------------------------------------------------
|
||
|
*/
|
||
|
function smarty_function_popup_init($args, &$smarty_obj)
|
||
|
{
|
||
|
// be sure to place overlib.js where Smarty can locate it.
|
||
|
// overlib.js came with the distribution of Smarty.
|
||
|
echo '<DIV ID="overDiv" STYLE="position:absolute; visibility:hidden; z-index:1000;"></DIV>'."\n".'<SCRIPT LANGUAGE=javascript>'."\n".'<!--'."\n";
|
||
|
readfile(SMARTY_DIR."overlib.js",1);
|
||
|
echo '// -->'."\n".'</SCRIPT>'."\n";
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
/* vim: set expandtab: */
|
||
|
|
||
|
?>
|