mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 17:34:26 +02:00
Typos in documentation (#914)
This commit is contained in:
@@ -85,11 +85,11 @@ The template above includes the example `links.tpl` below
|
|||||||
|
|
||||||
```smarty
|
```smarty
|
||||||
<div id="box">
|
<div id="box">
|
||||||
<h3>{$title}{/h3>
|
<h3>{$title}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{foreach from=$links item=l}
|
{foreach from=$links item=l}
|
||||||
.. do stuff ...
|
.. do stuff ...
|
||||||
</foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
@@ -326,10 +326,10 @@ The template to output the database result in a HTML table
|
|||||||
|
|
||||||
```smarty
|
```smarty
|
||||||
<table>
|
<table>
|
||||||
<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr>
|
<tr><th> </th><th>Name</th><th>Home</th><th>Cell</th><th>Email</th></tr>
|
||||||
{section name=co loop=$contacts}
|
{section name=co loop=$contacts}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="view.php?id={$contacts[co].id}">view<a></td>
|
<td><a href="view.php?id={$contacts[co].id}">view</a></td>
|
||||||
<td>{$contacts[co].name}</td>
|
<td>{$contacts[co].name}</td>
|
||||||
<td>{$contacts[co].home}</td>
|
<td>{$contacts[co].home}</td>
|
||||||
<td>{$contacts[co].cell}</td>
|
<td>{$contacts[co].cell}</td>
|
||||||
@@ -465,7 +465,7 @@ header block every five rows.
|
|||||||
<table>
|
<table>
|
||||||
{section name=co loop=$contacts}
|
{section name=co loop=$contacts}
|
||||||
{if $smarty.section.co.iteration is div by 5}
|
{if $smarty.section.co.iteration is div by 5}
|
||||||
<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr>
|
<tr><th> </th><th>Name</th><th>Home</th><th>Cell</th><th>Email</th></tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="view.php?id={$contacts[co].id}">view<a></td>
|
<td><a href="view.php?id={$contacts[co].id}">view<a></td>
|
||||||
|
Reference in New Issue
Block a user