diff options
| author | Simon Wisselink <s.wisselink@iwink.nl> | 2024-02-03 00:05:38 +0100 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2024-02-03 00:05:38 +0100 |
| commit | 0912124c33c3b36b3eb2aa65768dfbed19026284 (patch) | |
| tree | edd9d50006484ae58f4db48dc42baa9a561f9d88 /docs | |
| parent | c0306d9942a5717b1dccb0b3278735acf8085dc9 (diff) | |
| download | smarty-0912124c33c3b36b3eb2aa65768dfbed19026284.tar.gz smarty-0912124c33c3b36b3eb2aa65768dfbed19026284.tar.bz2 smarty-0912124c33c3b36b3eb2aa65768dfbed19026284.zip | |
fixed ocumentation on {if is even by } syntax
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/designers/language-builtin-functions/language-function-foreach.md | 2 | ||||
| -rw-r--r-- | docs/designers/language-builtin-functions/language-function-section.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/designers/language-builtin-functions/language-function-foreach.md b/docs/designers/language-builtin-functions/language-function-foreach.md index a0b7b588..38d15116 100644 --- a/docs/designers/language-builtin-functions/language-function-foreach.md +++ b/docs/designers/language-builtin-functions/language-function-foreach.md @@ -252,7 +252,7 @@ iteration. ```smarty {foreach $myNames as $name} - {if $name@iteration is even by 3} + {if $name@index is even by 3} <span style="color: #000">{$name}</span> {else} <span style="color: #eee">{$name}</span> diff --git a/docs/designers/language-builtin-functions/language-function-section.md b/docs/designers/language-builtin-functions/language-function-section.md index ff57e560..afa6366c 100644 --- a/docs/designers/language-builtin-functions/language-function-section.md +++ b/docs/designers/language-builtin-functions/language-function-section.md @@ -478,13 +478,13 @@ header block every five rows. </table> ``` -An example that uses the `iteration` property to alternate a text color every +An example that uses the `index` property to alternate a text color every third row. ```smarty <table> {section name=co loop=$contacts} - {if $smarty.section.co.iteration is even by 3} + {if $smarty.section.co.index is even by 3} <span style="color: #ffffff">{$contacts[co].name}</span> {else} <span style="color: #dddddd">{$contacts[co].name}</span> |
