I love smarty templates so much. We can write simple templates to complex templates very easy in smarty.
Simple Templates
|
1 2 3 4 |
{$username}
{if $username}
{$username}
{/if} |
Complex Templates
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
{foreach from=$arr_pfacility item=pfacility_text key=pfacility_id}
< tr >
{assign var="id_selected" value=false}
{foreach from=$smarty.post.fp_pfacility item=sel_item}
{if $sel_item==$pfacility_id}
{assign var="id_selected" value=true}
{/if}
{/foreach}
< td width="10" >
{if $id_selected}
< input type="checkbox" name="fp_pfacility[]" value="{$pfacility_id}" checked >
{else}
< input type="checkbox" name="fp_pfacility[]" value="{$pfacility_id}" >
{/if}
< /td >
< td >{$pfacility_text.name}< /td >
< /tr >
{/foreach} |
I am working on to load smarty as a plugin to wordpress. if someone interested in making the templates for their blog admin plugins they can do
Pingback: Wordpress-Theme mit Smarty | hack3r.de