PHP Classes

File: examples/tags/analytics/tag.php

Recommend this page to a friend!
  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: Update of examples/tags/analytics/tag.php
Date: 11 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']);
    }