summaryrefslogtreecommitdiff
path: root/tw/filter-setup/paranoya.php
blob: 586911573fed1e11ced135976a840201789ab5a9 (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
<?php
	// WARNING:
	//
	// All tags used in configuration must be defined in tw/tw-tags.php file too.
	//

	$tw_paranoya_setup = array(
		
		"a"		=>	array(
						"href"	=> array( TW_RQ_URL ),		// value is required url 
						"name"	=> array( TW_RQ_LINK ),		// value is link (link+href combination must be fixed in base)
						"title"	=> null,
						"target"	=> null,
						),
						
		"hr"	=>	null,	// without attributes
		"br"	=>	null,
		"img"	=>	array(
						"width" => array( TW_NUM ),	// 80 - default, number must be in range <60,120>
						"height"=> array( TW_NUM ),
						"src"	=> array( TW_RQ_URL ),
						"title"	=> null,
						"border"=> array( TW_RQ_NUM,  0,  0,  0),
						),

		"p"		=>	array(
						// null - default value (null = remove attr if value not found in case array)
						"class"	=> array( TW_CASE, null, array("par1","par2","par3") ),
						),
						
		"b"		=>	"strong",		// tag substitution <b> -> <strong>
		"strong"	=>	null,			// new tag must be configured too
		"i"		=>	null,
		"u"		=>	null,
		"div"	=>	array(
						"title"	=> null,
						),
		
		"span"	=>	array(
						"class"	=> array( TW_CASE, null, array("my-class1","my-class2","my-class3") ),
						),
						
		"blockquote"	=>	null,
		"h1"	=>	null,
		"h2"	=>	null,
		"h3"	=>	null,
		
		"table"	=>	null,
		"td"	=>	null,
		"tr"	=>	null,
		"th"	=>	null,
		
		"ul"	=>	null,
		"ol"	=>	null,
		"li"	=>	null,
		"dl"	=>	null,
		"dt"	=>	null,
		"dd"	=>	null,
	);
?>