cvs: smarty /demo/templates index.tpl
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1128440946@cvsserver> |
mohrt Tue Oct 4 11:49:06 2005 EDT
Modified files:
/smarty/demo/templates index.tpl
Log:
remove popup example, update section var syntax
http://cvs.php.net/diff.php/smarty/demo/templates/index.tpl?r1=1.60&r2=1.61&ty=u
Index: smarty/demo/templates/index.tpl
diff -u smarty/demo/templates/index.tpl:1.60 smarty/demo/templates/index.tpl:1.61
--- smarty/demo/templates/index.tpl:1.60 Mon Feb 3 10:39:47 2003
+++ smarty/demo/templates/index.tpl Tue Oct 4 11:49:00 2005
@@ -11,8 +11,6 @@
The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-Tooltip example: Move your mouse over the <A HREF="" {popup sticky=true caption="Smarty pop-up text" delay=400 text="This is an example of a tooltip. Tooltips are handy for context sensitive information, and extremely easy to add to your templates with Smarty and the integration of <a href='http://www.bosrup.com/web/overlib/'>overLIB</a> by Erik Bosrup"} onclick="return false;">Help</A> 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 @@
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
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php