From b9486857b8f6840a664959d37949e491e33a9434 Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 4 Oct 2005 15:49:00 +0000 Subject: [PATCH] remove popup example, update section var syntax --- demo/templates/index.tpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/demo/templates/index.tpl b/demo/templates/index.tpl index c4d5eeeb..f274cc5e 100644 --- a/demo/templates/index.tpl +++ b/demo/templates/index.tpl @@ -11,8 +11,6 @@ Title: {#title#|capitalize} The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} -Tooltip example: Move your mouse over the Help link to see an example of a tooltip using Smarty's popup function. - The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME} Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME} @@ -27,10 +25,10 @@ variable modifier example of {ldelim}$Name|upper{rdelim} An example of a section loop: {section name=outer loop=$FirstName} -{if %outer.index% is odd by 2} - {%outer.rownum%} . {$FirstName[outer]} {$LastName[outer]} +{if $smarty.section.outer.index is odd by 2} + {$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]} {else} - {%outer.rownum%} * {$FirstName[outer]} {$LastName[outer]} + {$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]} {/if} {sectionelse} none