PHP Classes

File: templates/content.tpl.php

Recommend this page to a friend!
  Classes of Victor V. Nabatov   PHP Template Compiler   templates/content.tpl.php   Download  
File: templates/content.tpl.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Template Compiler
Template engine that compiles logic into PHP code
Author: By
Last change: Fixed bug in "else"
Date: 8 years ago
Size: 429 bytes
 

Contents

Class file image Download
<?php
# PHP Template Compiler v2.0
# Copyright (c) 2016 Victor Nabatov greenray.spb@gmail.com
# Content template
die();?>

<div>
    <!-- IF $title == 'Included content' -->
        <div class="title center"><h[$size]>__$title__</h[$size]></div>
    <!-- ELSE -->
        <div class="title center"><h[$size]>__This text is included__</h[$size]></div>
    <!-- END -->
    <div class="content">
        $content
    </div>
</div>