diff --git a/docs/en/designers/language-builtin-functions/language-function-section.xml b/docs/en/designers/language-builtin-functions/language-function-section.xml index 266b76e5..82940b2e 100644 --- a/docs/en/designers/language-builtin-functions/language-function-section.xml +++ b/docs/en/designers/language-builtin-functions/language-function-section.xml @@ -79,7 +79,7 @@ boolean No &true; - determines whether or not to show this section + Determines whether or not to show this section @@ -142,7 +142,9 @@ Looping a simple array with {section} -assign() an array to Smarty from the php script + +assign() an array to Smarty + - Looping an associative array's with {section} + Looping an associative array with {section} This is an example of printing an associative array - of data within a {section}. Following is the php script to assign the + of data with a {section}. Following is the php script to assign the $contacts array to Smarty. assign('contacts', $db->getAll($sql)); .index index contains the current array index, starting with zero - or the start attribute if given It increments by one or by + or the start attribute if given. It increments by one or by the step attribute if given. @@ -482,8 +484,8 @@ $smarty->assign('contacts', $db->getAll($sql)); {section} <varname>index</varname> property FYI -$custid[customer.index] and $custid[customer] - are identical in meaning. +$custid[customer.index] and +$custid[customer] are identical. @@ -598,8 +600,8 @@ $smarty->assign('arr',$id); ?> ]]> -Template to output every other element of the $arr -array as step=2 +Template to output every other element of the $arr +array as step=2 ]]> - Another example uses the iteration property to - output a table header block every five rows and - uses {if} - with the mod operator. + Another example that uses the iteration property to + output a table header block every five rows. + Uses the {if} + function with the mod operator. .first - first is set to &true; if the current {section} - iteration is the initial one. + first is set to &true; if the current + {section} iteration is the initial one. @@ -715,7 +717,7 @@ iteration=6 index=15 id=3015
looped. This can be used inside or after the {section}. - {section} property <varname>loop</varname>s + {section} property <varname>loop</varname> .show - show is used as a parameter to section. - show is a boolean value, &true; or &false;. If + show is used as a parameter to section and is + a boolean value. If &false;, the section will not be displayed. If there is a {sectionelse} present, that will be alternately displayed.