summaryrefslogtreecommitdiff
path: root/plugins/data.comment.php
blob: b8cf90ba813127b13315c071647d8c0dada2d983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
 * @version  $Revision: 1.8 $
 * @package  liberty
 * @subpackage plugins_data
 */
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
// +----------------------------------------------------------------------+
// | All Rights Reserved. See copyright.txt for details and a complete list of authors.
// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
// |
// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
// | -> see http://phpdocu.sourceforge.net/
// +----------------------------------------------------------------------+
// | Author: StarRider <starrrider@sourceforge.net>
// +----------------------------------------------------------------------+
// $Id: data.comment.php,v 1.8 2006/08/07 22:14:57 squareing Exp $

/******************
 * Initialization *
 ******************/
global $gLibertySystem;
define( 'PLUGIN_GUID_DATACOMMENT', 'datacomment' );
global $gLibertySystem;
$pluginParams = array (
	'tag' => 'COMMENT',
	'auto_activate' => TRUE,
	'requires_pair' => TRUE,
	'load_function' => 'data_comment',
	'title' => 'Comment',
	'help_page' => 'DataPluginComment',
	'description' => tra("This plugin allows Comments (Text that will not be displayed) to be added to a page."),
	'help_function' => 'data__comment_help',
	'syntax' => "{COMMENT}Data Not Displayed{/COMMENT}",
	'path' => LIBERTY_PKG_PATH.'plugins/data.comment.php',
	'security' => 'registered',
	'plugin_type' => DATA_PLUGIN
);
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATACOMMENT, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACOMMENT );
/*****************
 * Help Function *
 *****************/
function data_comment_help() {
	$help =
		'<table class="data help">'
			.'<tr>'
				.'<th>' . tra( "Key" ) . '</th>'
				.'<th>' . tra( "Type" ) . '</th>'
				.'<th>' . tra( "Comments" ) . '</th>'
			.'</tr>'
			.'<tr class="odd">'
				.'<td>' . tra("This plugin uses no parameters. Anything located between the two")
				. ' <strong>{COMMENT}</strong> ' . tra("Blocks is not displayed.") . '</td>'
			.'</tr>'
		.'</table>'
		. tra("Example: ") . "{COMMENT}" . tra("Everything in here is not displayed.") . "{/COMMENT}";
	return $help;
}
/****************
* Load Function *
 ****************/
function data_comment($data, $params) {
	return ' ';
}
?>