Location: PHPKode > projects > Write2Left > Build/Tags/General.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: General.php
| Description:
|   Adds the generic parts to a page
| Created Jul-12-2003
+------------------------------------------------------
*/

/* Class: TagGeneral 
 * Description:
 *   Parses general tags
 */
class TagGeneral
{
	function register_callbacks( &$callbacks )
	{
		$callbacks['NoParse']   = array( 'TagGeneral', 'do_tags' );
		$callbacks['LogID']     = array( 'TagGeneral', 'do_tags' );
	}

	function do_tags( $tag_name, $context, $attributes, $content, $filename, $settings )
	{
		global $W2L;

		switch( $tag_name )
	    {
			case 'LogID':
				return $settings['log_id'];
			default:
				return $content;
		}
	}
}

$tag_parser[] = new TagGeneral();
?>
Return current item: Write2Left