<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Blocks.php
| Description:
| Adds the blocks to a page
| Created Jul-15-2003
+------------------------------------------------------
*/
/* Class: TagBlocks
* Description:
* Parses block tags
*/
class TagBlocks
{
function register_callbacks( &$callbacks )
{
$callbacks['Block'] = array( 'TagBlocks', 'do_tags' );
}
function do_tags( $tag_name, $context, $attributes, $content, $filename, $settings )
{
global $W2L;
switch( $tag_name )
{
case 'Block':
return $content;
default:
return $content;
}
}
}
$tag_parser[] = new TagBlocks();
?>