Location: PHPKode > scripts > Siviglia Templating > siviglia-templates/tests/templates/NewsBox6.html
<?php
   $showTitle=true;
   $news=array(
       array("TITLE"=>"First Title","CONTENTS"=>"First Contents"),
       array("TITLE"=>"Second Title","CONTENTS"=>"Second contents"),
       array("TITLE"=>"Third Title","CONTENTS"=>"Third Contents")
       );
?>  
[*NEWSBOX2]        
        [_TITLE<?php if($showTitle){?>]Showing Title[#<?php }?>]                         
        [_NEWS({"title":"$t","contents":"$c"})<?php foreach($news as $curNews){$t=$curNews["TITLE"];$c=$curNews["CONTENTS"]?>]
        [#<?php }?>]
[#]
Return current item: Siviglia Templating