PHP Classes

File: templates/show.tpl

Recommend this page to a friend!
  Classes of Vladislav Litovka  >  Simple Template class  >  templates/show.tpl  >  Download  
File: templates/show.tpl
Role: Auxiliary data
Content type: text/plain
Description: sample template
Class: Simple Template class
Template engine based on assigning PHP variables
Author: By
Last change:
Date: 7 years ago
Size: 509 bytes


Class file image Download
	<title><?php echo $this->title; ?></title>
	body {
		margin: 2px;
		font-size: 12px;
		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
		color: #4A4A4A;
<br />
<?php foreach($this->links as $item) { ?>
<a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a>
<?php echo $item['text']; ?><hr />
<?php } ?>

<br /><br />
<b>Somevar</b> value/type is <?php echo $this->somevar.'/('.gettype($this->somevar).')'; ?>