Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/CONTAINER.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jose Maria Rodriguez Millan  >  Siviglia Templating  >  templates/CONTAINER.html  >  Download  
File: templates/CONTAINER.html
Role: Example script
Content type: text/plain
Description: sample template
Class: Siviglia Templating
Template engine that uses PHP as template language
Author: By
Last change:
Date: 2010-07-15 19:06
Size: 820 bytes
 

Contents

Class file image Download
<?php
   $c
=array(array("title"=>"Title 1",
                  
"contents"=>"Lorem ipsum dolor sit amet,"),
            array(
"title"=>"Title 2",
                  
"contents"=>"Curabitur eget neque libero."),
            array(
"title"=>"Title 3",
                  
"contents"=>"Integer vulputate turpis")
            );
?>
[_BOXCONTAINER]
   [_PRE]
    <?php for($__k=0;$__k<count($c);$__k++){?>
   [/PRE] 
   <!-- This comment will not appear in the generated code, 
   as it's outside any widget sub-tag -->
        [_ITEM]
            [_TITLE]
                <?php echo $c[$__k]["title"]?>
            [/TITLE]
            [_CONTENTS]
                <?php echo $c[$__k]["contents"]?>
            [/CONTENTS]
        [/ITEM]
   [_POST]
   <?php ?>
   [/POST]
[/BOXCONTAINER]