PHP Classes

File: examples/tags/header/tag.php

Recommend this page to a friend!
  Classes of Oliver Lillie   PHP Custom Tags   examples/tags/header/tag.php   Download  
File: examples/tags/header/tag.php
Role: Auxiliary script
Content type: text/plain
Description: Example script
Class: PHP Custom Tags
Template engine based on tags similar to HTML
Author: By
Last change: Update of examples/tags/header/tag.php
Date: 3 months ago
Size: 381 bytes
 

Contents

Class file image Download
<?php

   
namespace CustomTags;

    function
ct_header($tag)
    {
        return
nl2br('<a class="backtotop" href="./index.php">&larr; Back to index</a>
       
<strong>Custom Tags &copy; Oliver Lillie '
.date('Y').'
This text is an example CustomTag &lt;ct:header /&gt;
This examples name is "'
.$tag['attributes']['example_name'].'" and is set in an attribute of the custom tag.</strong>

'
);
    }