cvs: smarty / TODO /plugins function.eval.php function.popup_init.php
| From: | Monte Ohrt | Date: | Sat, 29 Jun 2002 16:04:42 +0000 |
| Subject: | cvs: smarty / TODO /plugins function.eval.php function.popup_init.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-168@lists.php.net to get a copy of this message | ||
mohrt Sat Jun 29 12:04:42 2002 EDT
Modified files:
/smarty TODO
/smarty/plugins function.eval.php function.popup_init.php
Log:
add zindex to popup init, fix error message for eval.
Index: smarty/TODO
diff -u smarty/TODO:1.23 smarty/TODO:1.24
--- smarty/TODO:1.23 Thu Jun 13 16:15:14 2002
+++ smarty/TODO Sat Jun 29 12:04:41 2002
@@ -9,3 +9,4 @@
* caching all but parts of the template
* change plugins so $smarty variable always comes first
* being able to load config files from PHP scripts
+* get cache ttl with function call
Index: smarty/plugins/function.eval.php
diff -u smarty/plugins/function.eval.php:1.2 smarty/plugins/function.eval.php:1.3
--- smarty/plugins/function.eval.php:1.2 Wed Feb 27 17:35:34 2002
+++ smarty/plugins/function.eval.php Sat Jun 29 12:04:41 2002
@@ -12,8 +12,8 @@
{
extract($params);
- if (empty($var)) {
- $this->trigger_error("assign: missing 'var' parameter");
+ if (!isset($var)) {
+ $this->trigger_error("eval: missing 'var' parameter");
return;
}
Index: smarty/plugins/function.popup_init.php
diff -u smarty/plugins/function.popup_init.php:1.4 smarty/plugins/function.popup_init.php:1.5
--- smarty/plugins/function.popup_init.php:1.4 Fri Jun 14 16:58:20 2002
+++ smarty/plugins/function.popup_init.php Sat Jun 29 12:04:41 2002
@@ -10,8 +10,14 @@
*/
function smarty_function_popup_init($params, &$smarty)
{
+ $zindex = 1000;
+
+ if (!empty($params['zindex'])) {
+ $zindex = $params['zindex'];
+ }
+
if (!empty($params['src'])) {
- echo '<div id="overDiv" style="position:absolute; visibility:hidden;
z-index:1000;"></div>'."\n";
+ echo '<div id="overDiv" style="position:absolute; visibility:hidden;
z-index:'.$zindex.';"></div>'."\n";
echo '<script language="JavaScript"
src="'.$params['src'].'"></script>'."\n";
} else {
$smarty->trigger_error("popup_init: missing src parameter");