Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/tags/header/tag.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: reorganized for composer support
Date: 6 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>

'
);
    }