diff --git a/NEWS b/NEWS index 0df3b718..602a7bcc 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - update popup_init to accept src attribute (Monte, Duncan Forrest) - implemented several optimizations, speeding up Smarty significantly in most cases. (Andrei) - implemented plugin architecture. (Andrei) diff --git a/docs.sgml b/docs.sgml index 5cca2c59..04d1984a 100644 --- a/docs.sgml +++ b/docs.sgml @@ -6269,7 +6269,7 @@ OUTPUT: // this assumes your form elements are named // startDate_Day, startDate_Month, startDate_Year -$startDate = makeTimeStamp($startDate_Year,$startDate_Month,$startDate_day); +$startDate = makeTimeStamp($startDate_Year,$startDate_Month,$startDate_Day); function makeTimeStamp($year="",$month="",$day="") { diff --git a/libs/plugins/function.popup_init.php b/libs/plugins/function.popup_init.php index d6553ef0..5c120f57 100644 --- a/libs/plugins/function.popup_init.php +++ b/libs/plugins/function.popup_init.php @@ -12,9 +12,15 @@ 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 '
'."\n".''."\n"; + extract($args); + echo ''."\n"; + if (empty($src)) { + echo ''."\n"; + } else { + echo ''."\n"; + } return; } diff --git a/plugins/function.popup_init.php b/plugins/function.popup_init.php index d6553ef0..5c120f57 100644 --- a/plugins/function.popup_init.php +++ b/plugins/function.popup_init.php @@ -12,9 +12,15 @@ 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 ''."\n".''."\n"; + extract($args); + echo ''."\n"; + if (empty($src)) { + echo ''."\n"; + } else { + echo ''."\n"; + } return; }