Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/tags/analytics/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/analytics/tag.php  >  Download  
File: examples/tags/analytics/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: 3 months ago
Size: 337 bytes
 

Contents

Class file image Download
<?php

    
namespace CustomTags;

    
/**
     * Analytics Block
     *
     * Outputs analytic scripts.
     *
     * TEMPLATE OPTIONS -
     *     REQUIRED
     *         template    - The template to use. If set it is relative to the blocks template folder.
     */
    
    
function ct_analytics($tag)
    {
        return 
CustomTagsHelper::parseTemplate($tag$tag['attributes']);
    }